Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRegistryCredentialOpts ¶
type CreateRegistryCredentialOpts struct { Name string `json:"name"` Username string `json:"username"` Password string `json:"password"` RegistryURL string `json:"registry_url"` }
CreateRegistryCredentialOpts represents options used to create a function.
func (CreateRegistryCredentialOpts) ToRegistryCredentialCreateMap ¶
func (opts CreateRegistryCredentialOpts) ToRegistryCredentialCreateMap() (map[string]interface{}, error)
ToRegistryCredentialCreateMap builds a request body from CreateRegistryCredentialOpts.
type CreateRegistryCredentialOptsBuilder ¶
type CreateRegistryCredentialOptsBuilder interface {
ToRegistryCredentialCreateMap() (map[string]interface{}, error)
}
CreateRegistryCredentialOptsBuilder allows extensions to add additional parameters to the request.
type DeleteResult ¶
type DeleteResult struct {
gcorecloud.ErrResult
}
DeleteResult represents the result of a delete operation
func Delete ¶
func Delete(c *gcorecloud.ServiceClient, name string) (r DeleteResult)
Delete accepts a unique name and deletes the registry credential associated with it.
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
GetResult represents the result of a get operation. Call its Extract method to interpret it as a InferenceDeployment.
func Create ¶
func Create(c *gcorecloud.ServiceClient, opts CreateRegistryCredentialOptsBuilder) (r GetResult)
Create registry credential.
func Get ¶
func Get(c *gcorecloud.ServiceClient, name string) (r GetResult)
Get registry credential.
func Update ¶
func Update(c *gcorecloud.ServiceClient, name string, opts UpdateRegistryCredentialOptsBuilder) (r GetResult)
Update existing registry credential.
func (GetResult) Extract ¶
func (r GetResult) Extract() (*RegistryCredentials, error)
Extract is a function that accepts a result and extracts a registry credentials resource.
func (GetResult) ExtractInto ¶
func (r GetResult) ExtractInto(v interface{}) error
type ListResult ¶
type ListResult struct {
gcorecloud.Result
}
func (ListResult) Extract ¶
func (r ListResult) Extract() ([]RegistryCredentials, error)
Extract is a function that accepts a result and extracts a registry credentials resource.
func (ListResult) ExtractInto ¶
func (r ListResult) ExtractInto(v interface{}) error
type RegistryCredentials ¶
type RegistryCredentials struct { ProjectID int `json:"project_id"` Name string `json:"name"` Username string `json:"username"` Password string `json:"password"` RegistryURL string `json:"registry_url"` }
func ListAll ¶
func ListAll(c *gcorecloud.ServiceClient) ([]RegistryCredentials, error)
ListAll registry credentials.
type UpdateRegistryCredentialOpts ¶
type UpdateRegistryCredentialOpts struct { Username string `json:"username"` Password string `json:"password"` RegistryURL string `json:"registry_url"` }
UpdateRegistryCredentialOpts represents options used to update a function.
func (UpdateRegistryCredentialOpts) ToRegistryCredentialUpdateMap ¶
func (opts UpdateRegistryCredentialOpts) ToRegistryCredentialUpdateMap() (map[string]interface{}, error)
ToRegistryCredentialUpdateMap builds a request body from UpdateRegistryCredentialOpts.
type UpdateRegistryCredentialOptsBuilder ¶
type UpdateRegistryCredentialOptsBuilder interface {
ToRegistryCredentialUpdateMap() (map[string]interface{}, error)
}
UpdateRegistryCredentialOptsBuilder allows extensions to add additional parameters to the request.