Skip to content

Latest commit

 

History

History
548 lines (299 loc) · 15.8 KB

CranUpstream.md

File metadata and controls

548 lines (299 loc) · 15.8 KB

CranUpstream

Properties

Name Type Description Notes
AuthMode Pointer to string The authentication mode to use when accessing this upstream. [optional] [default to "None"]
AuthSecret Pointer to NullableString Secret to provide with requests to upstream. [optional]
AuthUsername Pointer to NullableString Username to provide with requests to upstream. [optional]
CreatedAt Pointer to time.Time The datetime the upstream source was created. [optional] [readonly]
DisableReason Pointer to string [optional] [readonly] [default to "N/A"]
ExtraHeader1 Pointer to NullableString The key for extra header #1 to send to upstream. [optional]
ExtraHeader2 Pointer to NullableString The key for extra header #2 to send to upstream. [optional]
ExtraValue1 Pointer to NullableString The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. [optional]
ExtraValue2 Pointer to NullableString The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. [optional]
IsActive Pointer to bool Whether or not this upstream is active and ready for requests. [optional]
Mode Pointer to string The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. [optional] [default to "Proxy Only"]
Name string A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream.
PendingValidation Pointer to bool When true, this upstream source is pending validation. [optional] [readonly]
Priority Pointer to int64 Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. [optional]
SlugPerm Pointer to string [optional] [readonly]
UpdatedAt Pointer to time.Time [optional] [readonly]
UpstreamUrl string The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository.
VerifySsl Pointer to bool If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. [optional]

Methods

NewCranUpstream

func NewCranUpstream(name string, upstreamUrl string, ) *CranUpstream

NewCranUpstream instantiates a new CranUpstream object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewCranUpstreamWithDefaults

func NewCranUpstreamWithDefaults() *CranUpstream

NewCranUpstreamWithDefaults instantiates a new CranUpstream object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetAuthMode

func (o *CranUpstream) GetAuthMode() string

GetAuthMode returns the AuthMode field if non-nil, zero value otherwise.

GetAuthModeOk

func (o *CranUpstream) GetAuthModeOk() (*string, bool)

GetAuthModeOk returns a tuple with the AuthMode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAuthMode

func (o *CranUpstream) SetAuthMode(v string)

SetAuthMode sets AuthMode field to given value.

HasAuthMode

func (o *CranUpstream) HasAuthMode() bool

HasAuthMode returns a boolean if a field has been set.

GetAuthSecret

func (o *CranUpstream) GetAuthSecret() string

GetAuthSecret returns the AuthSecret field if non-nil, zero value otherwise.

GetAuthSecretOk

func (o *CranUpstream) GetAuthSecretOk() (*string, bool)

GetAuthSecretOk returns a tuple with the AuthSecret field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAuthSecret

func (o *CranUpstream) SetAuthSecret(v string)

SetAuthSecret sets AuthSecret field to given value.

HasAuthSecret

func (o *CranUpstream) HasAuthSecret() bool

HasAuthSecret returns a boolean if a field has been set.

SetAuthSecretNil

func (o *CranUpstream) SetAuthSecretNil(b bool)

SetAuthSecretNil sets the value for AuthSecret to be an explicit nil

UnsetAuthSecret

func (o *CranUpstream) UnsetAuthSecret()

UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil

GetAuthUsername

func (o *CranUpstream) GetAuthUsername() string

GetAuthUsername returns the AuthUsername field if non-nil, zero value otherwise.

GetAuthUsernameOk

func (o *CranUpstream) GetAuthUsernameOk() (*string, bool)

GetAuthUsernameOk returns a tuple with the AuthUsername field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAuthUsername

func (o *CranUpstream) SetAuthUsername(v string)

SetAuthUsername sets AuthUsername field to given value.

HasAuthUsername

func (o *CranUpstream) HasAuthUsername() bool

HasAuthUsername returns a boolean if a field has been set.

SetAuthUsernameNil

func (o *CranUpstream) SetAuthUsernameNil(b bool)

SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil

UnsetAuthUsername

func (o *CranUpstream) UnsetAuthUsername()

UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil

GetCreatedAt

func (o *CranUpstream) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

GetCreatedAtOk

func (o *CranUpstream) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCreatedAt

func (o *CranUpstream) SetCreatedAt(v time.Time)

SetCreatedAt sets CreatedAt field to given value.

HasCreatedAt

func (o *CranUpstream) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

GetDisableReason

func (o *CranUpstream) GetDisableReason() string

GetDisableReason returns the DisableReason field if non-nil, zero value otherwise.

GetDisableReasonOk

func (o *CranUpstream) GetDisableReasonOk() (*string, bool)

GetDisableReasonOk returns a tuple with the DisableReason field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDisableReason

func (o *CranUpstream) SetDisableReason(v string)

SetDisableReason sets DisableReason field to given value.

HasDisableReason

func (o *CranUpstream) HasDisableReason() bool

HasDisableReason returns a boolean if a field has been set.

GetExtraHeader1

func (o *CranUpstream) GetExtraHeader1() string

GetExtraHeader1 returns the ExtraHeader1 field if non-nil, zero value otherwise.

GetExtraHeader1Ok

func (o *CranUpstream) GetExtraHeader1Ok() (*string, bool)

GetExtraHeader1Ok returns a tuple with the ExtraHeader1 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetExtraHeader1

func (o *CranUpstream) SetExtraHeader1(v string)

SetExtraHeader1 sets ExtraHeader1 field to given value.

HasExtraHeader1

func (o *CranUpstream) HasExtraHeader1() bool

HasExtraHeader1 returns a boolean if a field has been set.

SetExtraHeader1Nil

func (o *CranUpstream) SetExtraHeader1Nil(b bool)

SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil

UnsetExtraHeader1

func (o *CranUpstream) UnsetExtraHeader1()

UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil

GetExtraHeader2

func (o *CranUpstream) GetExtraHeader2() string

GetExtraHeader2 returns the ExtraHeader2 field if non-nil, zero value otherwise.

GetExtraHeader2Ok

func (o *CranUpstream) GetExtraHeader2Ok() (*string, bool)

GetExtraHeader2Ok returns a tuple with the ExtraHeader2 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetExtraHeader2

func (o *CranUpstream) SetExtraHeader2(v string)

SetExtraHeader2 sets ExtraHeader2 field to given value.

HasExtraHeader2

func (o *CranUpstream) HasExtraHeader2() bool

HasExtraHeader2 returns a boolean if a field has been set.

SetExtraHeader2Nil

func (o *CranUpstream) SetExtraHeader2Nil(b bool)

SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil

UnsetExtraHeader2

func (o *CranUpstream) UnsetExtraHeader2()

UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil

GetExtraValue1

func (o *CranUpstream) GetExtraValue1() string

GetExtraValue1 returns the ExtraValue1 field if non-nil, zero value otherwise.

GetExtraValue1Ok

func (o *CranUpstream) GetExtraValue1Ok() (*string, bool)

GetExtraValue1Ok returns a tuple with the ExtraValue1 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetExtraValue1

func (o *CranUpstream) SetExtraValue1(v string)

SetExtraValue1 sets ExtraValue1 field to given value.

HasExtraValue1

func (o *CranUpstream) HasExtraValue1() bool

HasExtraValue1 returns a boolean if a field has been set.

SetExtraValue1Nil

func (o *CranUpstream) SetExtraValue1Nil(b bool)

SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil

UnsetExtraValue1

func (o *CranUpstream) UnsetExtraValue1()

UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil

GetExtraValue2

func (o *CranUpstream) GetExtraValue2() string

GetExtraValue2 returns the ExtraValue2 field if non-nil, zero value otherwise.

GetExtraValue2Ok

func (o *CranUpstream) GetExtraValue2Ok() (*string, bool)

GetExtraValue2Ok returns a tuple with the ExtraValue2 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetExtraValue2

func (o *CranUpstream) SetExtraValue2(v string)

SetExtraValue2 sets ExtraValue2 field to given value.

HasExtraValue2

func (o *CranUpstream) HasExtraValue2() bool

HasExtraValue2 returns a boolean if a field has been set.

SetExtraValue2Nil

func (o *CranUpstream) SetExtraValue2Nil(b bool)

SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil

UnsetExtraValue2

func (o *CranUpstream) UnsetExtraValue2()

UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil

GetIsActive

func (o *CranUpstream) GetIsActive() bool

GetIsActive returns the IsActive field if non-nil, zero value otherwise.

GetIsActiveOk

func (o *CranUpstream) GetIsActiveOk() (*bool, bool)

GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetIsActive

func (o *CranUpstream) SetIsActive(v bool)

SetIsActive sets IsActive field to given value.

HasIsActive

func (o *CranUpstream) HasIsActive() bool

HasIsActive returns a boolean if a field has been set.

GetMode

func (o *CranUpstream) GetMode() string

GetMode returns the Mode field if non-nil, zero value otherwise.

GetModeOk

func (o *CranUpstream) GetModeOk() (*string, bool)

GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMode

func (o *CranUpstream) SetMode(v string)

SetMode sets Mode field to given value.

HasMode

func (o *CranUpstream) HasMode() bool

HasMode returns a boolean if a field has been set.

GetName

func (o *CranUpstream) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *CranUpstream) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *CranUpstream) SetName(v string)

SetName sets Name field to given value.

GetPendingValidation

func (o *CranUpstream) GetPendingValidation() bool

GetPendingValidation returns the PendingValidation field if non-nil, zero value otherwise.

GetPendingValidationOk

func (o *CranUpstream) GetPendingValidationOk() (*bool, bool)

GetPendingValidationOk returns a tuple with the PendingValidation field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPendingValidation

func (o *CranUpstream) SetPendingValidation(v bool)

SetPendingValidation sets PendingValidation field to given value.

HasPendingValidation

func (o *CranUpstream) HasPendingValidation() bool

HasPendingValidation returns a boolean if a field has been set.

GetPriority

func (o *CranUpstream) GetPriority() int64

GetPriority returns the Priority field if non-nil, zero value otherwise.

GetPriorityOk

func (o *CranUpstream) GetPriorityOk() (*int64, bool)

GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPriority

func (o *CranUpstream) SetPriority(v int64)

SetPriority sets Priority field to given value.

HasPriority

func (o *CranUpstream) HasPriority() bool

HasPriority returns a boolean if a field has been set.

GetSlugPerm

func (o *CranUpstream) GetSlugPerm() string

GetSlugPerm returns the SlugPerm field if non-nil, zero value otherwise.

GetSlugPermOk

func (o *CranUpstream) GetSlugPermOk() (*string, bool)

GetSlugPermOk returns a tuple with the SlugPerm field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSlugPerm

func (o *CranUpstream) SetSlugPerm(v string)

SetSlugPerm sets SlugPerm field to given value.

HasSlugPerm

func (o *CranUpstream) HasSlugPerm() bool

HasSlugPerm returns a boolean if a field has been set.

GetUpdatedAt

func (o *CranUpstream) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.

GetUpdatedAtOk

func (o *CranUpstream) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetUpdatedAt

func (o *CranUpstream) SetUpdatedAt(v time.Time)

SetUpdatedAt sets UpdatedAt field to given value.

HasUpdatedAt

func (o *CranUpstream) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

GetUpstreamUrl

func (o *CranUpstream) GetUpstreamUrl() string

GetUpstreamUrl returns the UpstreamUrl field if non-nil, zero value otherwise.

GetUpstreamUrlOk

func (o *CranUpstream) GetUpstreamUrlOk() (*string, bool)

GetUpstreamUrlOk returns a tuple with the UpstreamUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetUpstreamUrl

func (o *CranUpstream) SetUpstreamUrl(v string)

SetUpstreamUrl sets UpstreamUrl field to given value.

GetVerifySsl

func (o *CranUpstream) GetVerifySsl() bool

GetVerifySsl returns the VerifySsl field if non-nil, zero value otherwise.

GetVerifySslOk

func (o *CranUpstream) GetVerifySslOk() (*bool, bool)

GetVerifySslOk returns a tuple with the VerifySsl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetVerifySsl

func (o *CranUpstream) SetVerifySsl(v bool)

SetVerifySsl sets VerifySsl field to given value.

HasVerifySsl

func (o *CranUpstream) HasVerifySsl() bool

HasVerifySsl returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]