Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateInferenceSecretOpts ¶
type CreateInferenceSecretOpts struct { Name string `json:"name"` Type string `json:"type"` Data CreateSecretData `json:"data"` }
CreateInferenceSecretOpts represents options used to create a function.
func (CreateInferenceSecretOpts) ToInferenceSecretCreateMap ¶
func (opts CreateInferenceSecretOpts) ToInferenceSecretCreateMap() (map[string]interface{}, error)
ToInferenceSecretCreateMap builds a request body from CreateInferenceSecretOpts.
type CreateInferenceSecretOptsBuilder ¶
type CreateInferenceSecretOptsBuilder interface {
ToInferenceSecretCreateMap() (map[string]interface{}, error)
}
CreateInferenceSecretOptsBuilder allows extensions to add additional parameters to the request.
type CreateSecretData ¶
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 CreateInferenceSecretOptsBuilder) (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 UpdateInferenceSecretOptsBuilder) (r GetResult)
Update existing registry credential.
func (GetResult) Extract ¶
func (r GetResult) Extract() (*InferenceSecret, 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 InferenceSecret ¶
type InferenceSecret struct { Name string `json:"name"` Type string `json:"type"` Data SecretData `json:"data"` }
func ListAll ¶
func ListAll(c *gcorecloud.ServiceClient) ([]InferenceSecret, error)
ListAll registry credentials.
type ListResult ¶
type ListResult struct {
gcorecloud.Result
}
func (ListResult) Extract ¶
func (r ListResult) Extract() ([]InferenceSecret, 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 SecretData ¶
type UpdateInferenceSecretOpts ¶
type UpdateInferenceSecretOpts struct { Type string `json:"type"` Data CreateSecretData `json:"data"` }
UpdateInferenceSecretOpts represents options used to update a function.
func (UpdateInferenceSecretOpts) ToInferenceSecretUpdateMap ¶
func (opts UpdateInferenceSecretOpts) ToInferenceSecretUpdateMap() (map[string]interface{}, error)
ToInferenceSecretUpdateMap builds a request body from UpdateInferenceSecretOpts.
type UpdateInferenceSecretOptsBuilder ¶
type UpdateInferenceSecretOptsBuilder interface {
ToInferenceSecretUpdateMap() (map[string]interface{}, error)
}
UpdateInferenceSecretOptsBuilder allows extensions to add additional parameters to the request.