3.1 KiB
RegistryRegistryToken
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Expires | Pointer to int64 | Expires is the token's lifetime in seconds. | [optional] |
| Ref | Pointer to string | Ref is the one repository reference the token can pull. | [optional] |
| Token | Pointer to string | Token is the bearer to present on the OCI wire (`Authorization: Bearer …` against the host's /v2/ routes). | [optional] |
Methods
NewRegistryRegistryToken
func NewRegistryRegistryToken() *RegistryRegistryToken
NewRegistryRegistryToken instantiates a new RegistryRegistryToken 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
NewRegistryRegistryTokenWithDefaults
func NewRegistryRegistryTokenWithDefaults() *RegistryRegistryToken
NewRegistryRegistryTokenWithDefaults instantiates a new RegistryRegistryToken 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
GetExpires
func (o *RegistryRegistryToken) GetExpires() int64
GetExpires returns the Expires field if non-nil, zero value otherwise.
GetExpiresOk
func (o *RegistryRegistryToken) GetExpiresOk() (*int64, bool)
GetExpiresOk returns a tuple with the Expires field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetExpires
func (o *RegistryRegistryToken) SetExpires(v int64)
SetExpires sets Expires field to given value.
HasExpires
func (o *RegistryRegistryToken) HasExpires() bool
HasExpires returns a boolean if a field has been set.
GetRef
func (o *RegistryRegistryToken) GetRef() string
GetRef returns the Ref field if non-nil, zero value otherwise.
GetRefOk
func (o *RegistryRegistryToken) GetRefOk() (*string, bool)
GetRefOk returns a tuple with the Ref field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetRef
func (o *RegistryRegistryToken) SetRef(v string)
SetRef sets Ref field to given value.
HasRef
func (o *RegistryRegistryToken) HasRef() bool
HasRef returns a boolean if a field has been set.
GetToken
func (o *RegistryRegistryToken) GetToken() string
GetToken returns the Token field if non-nil, zero value otherwise.
GetTokenOk
func (o *RegistryRegistryToken) GetTokenOk() (*string, bool)
GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetToken
func (o *RegistryRegistryToken) SetToken(v string)
SetToken sets Token field to given value.
HasToken
func (o *RegistryRegistryToken) HasToken() bool
HasToken returns a boolean if a field has been set.