secrets

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2025 License: MPL-2.0 Imports: 3 Imported by: 0

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 CreateSecretData struct {
	AWSSecretKeyID     string `json:"aws_access_key_id"`
	AWSSecretAccessKey string `json:"aws_secret_access_key"`
}

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

Create registry credential.

func Get

func Get(c *gcorecloud.ServiceClient, name string) (r GetResult)

Get registry credential.

func Update

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

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 SecretData struct {
	AWSSecretKeyID     string `json:"aws_access_key_id"`
	AWSSecretAccessKey string `json:"aws_secret_access_key"`
}

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL