metakms

package
v1.2.21 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package metakmsiface provides an interface to enable mocking the METAKMS service client for testing your code.

It is important to note that this interface will have breaking changes when the service model is updated and adds new API operations, paginators, and waiters.

Index

Constants

View Source
const (
	// EnumOfVersionStageForBatchGetSecretValueOutputCurrent is a EnumOfVersionStageForBatchGetSecretValueOutput enum value
	EnumOfVersionStageForBatchGetSecretValueOutputCurrent = "CURRENT"

	// EnumOfVersionStageForBatchGetSecretValueOutputOlder is a EnumOfVersionStageForBatchGetSecretValueOutput enum value
	EnumOfVersionStageForBatchGetSecretValueOutputOlder = "OLDER"
)
View Source
const (
	// EnumOfSecretStateForDescribeSecretOutputEnable is a EnumOfSecretStateForDescribeSecretOutput enum value
	EnumOfSecretStateForDescribeSecretOutputEnable = "Enable"

	// EnumOfSecretStateForDescribeSecretOutputDisable is a EnumOfSecretStateForDescribeSecretOutput enum value
	EnumOfSecretStateForDescribeSecretOutputDisable = "Disable"

	// EnumOfSecretStateForDescribeSecretOutputPendingDelete is a EnumOfSecretStateForDescribeSecretOutput enum value
	EnumOfSecretStateForDescribeSecretOutputPendingDelete = "PendingDelete"
)
View Source
const (
	// EnumOfSecretTypeForDescribeSecretOutputGeneric is a EnumOfSecretTypeForDescribeSecretOutput enum value
	EnumOfSecretTypeForDescribeSecretOutputGeneric = "Generic"

	// EnumOfSecretTypeForDescribeSecretOutputIam is a EnumOfSecretTypeForDescribeSecretOutput enum value
	EnumOfSecretTypeForDescribeSecretOutputIam = "IAM"

	// EnumOfSecretTypeForDescribeSecretOutputRds is a EnumOfSecretTypeForDescribeSecretOutput enum value
	EnumOfSecretTypeForDescribeSecretOutputRds = "RDS"

	// EnumOfSecretTypeForDescribeSecretOutputRedis is a EnumOfSecretTypeForDescribeSecretOutput enum value
	EnumOfSecretTypeForDescribeSecretOutputRedis = "Redis"

	// EnumOfSecretTypeForDescribeSecretOutputEcs is a EnumOfSecretTypeForDescribeSecretOutput enum value
	EnumOfSecretTypeForDescribeSecretOutputEcs = "ECS"
)
View Source
const (
	// EnumOfVersionStageForDescribeSecretVersionsOutputCurrent is a EnumOfVersionStageForDescribeSecretVersionsOutput enum value
	EnumOfVersionStageForDescribeSecretVersionsOutputCurrent = "CURRENT"

	// EnumOfVersionStageForDescribeSecretVersionsOutputOlder is a EnumOfVersionStageForDescribeSecretVersionsOutput enum value
	EnumOfVersionStageForDescribeSecretVersionsOutputOlder = "OLDER"
)
View Source
const (
	// EnumOfSecretStateForDescribeSecretsOutputEnable is a EnumOfSecretStateForDescribeSecretsOutput enum value
	EnumOfSecretStateForDescribeSecretsOutputEnable = "Enable"

	// EnumOfSecretStateForDescribeSecretsOutputDisable is a EnumOfSecretStateForDescribeSecretsOutput enum value
	EnumOfSecretStateForDescribeSecretsOutputDisable = "Disable"

	// EnumOfSecretStateForDescribeSecretsOutputPendingDelete is a EnumOfSecretStateForDescribeSecretsOutput enum value
	EnumOfSecretStateForDescribeSecretsOutputPendingDelete = "PendingDelete"
)
View Source
const (
	// EnumOfSecretTypeForDescribeSecretsOutputGeneric is a EnumOfSecretTypeForDescribeSecretsOutput enum value
	EnumOfSecretTypeForDescribeSecretsOutputGeneric = "Generic"

	// EnumOfSecretTypeForDescribeSecretsOutputIam is a EnumOfSecretTypeForDescribeSecretsOutput enum value
	EnumOfSecretTypeForDescribeSecretsOutputIam = "IAM"

	// EnumOfSecretTypeForDescribeSecretsOutputRds is a EnumOfSecretTypeForDescribeSecretsOutput enum value
	EnumOfSecretTypeForDescribeSecretsOutputRds = "RDS"

	// EnumOfSecretTypeForDescribeSecretsOutputRedis is a EnumOfSecretTypeForDescribeSecretsOutput enum value
	EnumOfSecretTypeForDescribeSecretsOutputRedis = "Redis"

	// EnumOfSecretTypeForDescribeSecretsOutputEcs is a EnumOfSecretTypeForDescribeSecretsOutput enum value
	EnumOfSecretTypeForDescribeSecretsOutputEcs = "ECS"
)
View Source
const (
	ServiceName = "metakms"   // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "metakms"   // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchGetSecretValueInput

type BatchGetSecretValueInput struct {
	SecretNames []*string `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (BatchGetSecretValueInput) GoString

func (s BatchGetSecretValueInput) GoString() string

GoString returns the string representation

func (*BatchGetSecretValueInput) SetSecretNames

func (s *BatchGetSecretValueInput) SetSecretNames(v []*string) *BatchGetSecretValueInput

SetSecretNames sets the SecretNames field's value.

func (BatchGetSecretValueInput) String

func (s BatchGetSecretValueInput) String() string

String returns the string representation

type BatchGetSecretValueOutput

type BatchGetSecretValueOutput struct {
	Metadata *response.ResponseMetadata

	SecretValues []*SecretValueForBatchGetSecretValueOutput `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (BatchGetSecretValueOutput) GoString

func (s BatchGetSecretValueOutput) GoString() string

GoString returns the string representation

func (*BatchGetSecretValueOutput) SetSecretValues

SetSecretValues sets the SecretValues field's value.

func (BatchGetSecretValueOutput) String

func (s BatchGetSecretValueOutput) String() string

String returns the string representation

type DescribeSecretInput

type DescribeSecretInput struct {

	// SecretName is a required field
	SecretName *string `min:"2" max:"128" type:"string" json:",omitempty" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeSecretInput) GoString

func (s DescribeSecretInput) GoString() string

GoString returns the string representation

func (*DescribeSecretInput) SetSecretName

func (s *DescribeSecretInput) SetSecretName(v string) *DescribeSecretInput

SetSecretName sets the SecretName field's value.

func (DescribeSecretInput) String

func (s DescribeSecretInput) String() string

String returns the string representation

func (*DescribeSecretInput) Validate

func (s *DescribeSecretInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeSecretOutput

type DescribeSecretOutput struct {
	Metadata *response.ResponseMetadata

	Secret *SecretForDescribeSecretOutput `type:"structure" json:",omitempty"`
	// contains filtered or unexported fields
}

func (DescribeSecretOutput) GoString

func (s DescribeSecretOutput) GoString() string

GoString returns the string representation

func (*DescribeSecretOutput) SetSecret

SetSecret sets the Secret field's value.

func (DescribeSecretOutput) String

func (s DescribeSecretOutput) String() string

String returns the string representation

type DescribeSecretVersionsInput

type DescribeSecretVersionsInput struct {
	CurrentPage *int32 `min:"1" type:"int32" json:",omitempty"`

	PageSize *int32 `min:"1" max:"100" type:"int32" json:",omitempty"`

	// SecretName is a required field
	SecretName *string `min:"2" max:"128" type:"string" json:",omitempty" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeSecretVersionsInput) GoString

func (s DescribeSecretVersionsInput) GoString() string

GoString returns the string representation

func (*DescribeSecretVersionsInput) SetCurrentPage

SetCurrentPage sets the CurrentPage field's value.

func (*DescribeSecretVersionsInput) SetPageSize

SetPageSize sets the PageSize field's value.

func (*DescribeSecretVersionsInput) SetSecretName

SetSecretName sets the SecretName field's value.

func (DescribeSecretVersionsInput) String

String returns the string representation

func (*DescribeSecretVersionsInput) Validate

func (s *DescribeSecretVersionsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeSecretVersionsOutput

type DescribeSecretVersionsOutput struct {
	Metadata *response.ResponseMetadata

	PageInfo *PageInfoForDescribeSecretVersionsOutput `type:"structure" json:",omitempty"`

	SecretVersions []*SecretVersionForDescribeSecretVersionsOutput `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (DescribeSecretVersionsOutput) GoString

func (s DescribeSecretVersionsOutput) GoString() string

GoString returns the string representation

func (*DescribeSecretVersionsOutput) SetPageInfo

SetPageInfo sets the PageInfo field's value.

func (*DescribeSecretVersionsOutput) SetSecretVersions

SetSecretVersions sets the SecretVersions field's value.

func (DescribeSecretVersionsOutput) String

String returns the string representation

type DescribeSecretsInput

type DescribeSecretsInput struct {
	CurrentPage *int32 `min:"1" type:"int32" json:",omitempty"`

	Filters *string `max:"2048" type:"string" json:",omitempty"`

	PageSize *int32 `min:"1" max:"100" type:"int32" json:",omitempty"`

	ProjectName *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (DescribeSecretsInput) GoString

func (s DescribeSecretsInput) GoString() string

GoString returns the string representation

func (*DescribeSecretsInput) SetCurrentPage

func (s *DescribeSecretsInput) SetCurrentPage(v int32) *DescribeSecretsInput

SetCurrentPage sets the CurrentPage field's value.

func (*DescribeSecretsInput) SetFilters

SetFilters sets the Filters field's value.

func (*DescribeSecretsInput) SetPageSize

func (s *DescribeSecretsInput) SetPageSize(v int32) *DescribeSecretsInput

SetPageSize sets the PageSize field's value.

func (*DescribeSecretsInput) SetProjectName

func (s *DescribeSecretsInput) SetProjectName(v string) *DescribeSecretsInput

SetProjectName sets the ProjectName field's value.

func (DescribeSecretsInput) String

func (s DescribeSecretsInput) String() string

String returns the string representation

func (*DescribeSecretsInput) Validate

func (s *DescribeSecretsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeSecretsOutput

type DescribeSecretsOutput struct {
	Metadata *response.ResponseMetadata

	PageInfo *PageInfoForDescribeSecretsOutput `type:"structure" json:",omitempty"`

	Secrets []*SecretForDescribeSecretsOutput `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (DescribeSecretsOutput) GoString

func (s DescribeSecretsOutput) GoString() string

GoString returns the string representation

func (*DescribeSecretsOutput) SetPageInfo

SetPageInfo sets the PageInfo field's value.

func (*DescribeSecretsOutput) SetSecrets

SetSecrets sets the Secrets field's value.

func (DescribeSecretsOutput) String

func (s DescribeSecretsOutput) String() string

String returns the string representation

type GetSecretValueInput

type GetSecretValueInput struct {

	// SecretName is a required field
	SecretName *string `min:"2" max:"128" type:"string" json:",omitempty" required:"true"`

	VersionID *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (GetSecretValueInput) GoString

func (s GetSecretValueInput) GoString() string

GoString returns the string representation

func (*GetSecretValueInput) SetSecretName

func (s *GetSecretValueInput) SetSecretName(v string) *GetSecretValueInput

SetSecretName sets the SecretName field's value.

func (*GetSecretValueInput) SetVersionID

func (s *GetSecretValueInput) SetVersionID(v string) *GetSecretValueInput

SetVersionID sets the VersionID field's value.

func (GetSecretValueInput) String

func (s GetSecretValueInput) String() string

String returns the string representation

func (*GetSecretValueInput) Validate

func (s *GetSecretValueInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetSecretValueOutput

type GetSecretValueOutput struct {
	Metadata *response.ResponseMetadata

	CreationDate *int64 `type:"int64" json:",omitempty"`

	SecretValue *string `type:"string" json:",omitempty"`

	VersionID *string `type:"string" json:",omitempty"`

	VersionStage *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (GetSecretValueOutput) GoString

func (s GetSecretValueOutput) GoString() string

GoString returns the string representation

func (*GetSecretValueOutput) SetCreationDate

func (s *GetSecretValueOutput) SetCreationDate(v int64) *GetSecretValueOutput

SetCreationDate sets the CreationDate field's value.

func (*GetSecretValueOutput) SetSecretValue

func (s *GetSecretValueOutput) SetSecretValue(v string) *GetSecretValueOutput

SetSecretValue sets the SecretValue field's value.

func (*GetSecretValueOutput) SetVersionID

func (s *GetSecretValueOutput) SetVersionID(v string) *GetSecretValueOutput

SetVersionID sets the VersionID field's value.

func (*GetSecretValueOutput) SetVersionStage

func (s *GetSecretValueOutput) SetVersionStage(v string) *GetSecretValueOutput

SetVersionStage sets the VersionStage field's value.

func (GetSecretValueOutput) String

func (s GetSecretValueOutput) String() string

String returns the string representation

type METAKMS

type METAKMS struct {
	*client.Client
}

METAKMS provides the API operation methods for making requests to METAKMS. See this package's package overview docs for details on the service.

METAKMS methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*volcengine.Config) *METAKMS

New create int can support ssl or region locate set

func (*METAKMS) BatchGetSecretValue

func (c *METAKMS) BatchGetSecretValue(input *BatchGetSecretValueInput) (*BatchGetSecretValueOutput, error)

BatchGetSecretValue API operation for METAKMS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for METAKMS's API operation BatchGetSecretValue for usage and error information.

func (*METAKMS) BatchGetSecretValueCommon

func (c *METAKMS) BatchGetSecretValueCommon(input *map[string]interface{}) (*map[string]interface{}, error)

BatchGetSecretValueCommon API operation for METAKMS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for METAKMS's API operation BatchGetSecretValueCommon for usage and error information.

func (*METAKMS) BatchGetSecretValueCommonRequest

func (c *METAKMS) BatchGetSecretValueCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

BatchGetSecretValueCommonRequest generates a "volcengine/request.Request" representing the client's request for the BatchGetSecretValueCommon operation. The "output" return value will be populated with the BatchGetSecretValueCommon request's response once the request completes successfully.

Use "Send" method on the returned BatchGetSecretValueCommon Request to send the API call to the service. the "output" return value is not valid until after BatchGetSecretValueCommon Send returns without error.

See BatchGetSecretValueCommon for more information on using the BatchGetSecretValueCommon API call, and error handling.

// Example sending a request using the BatchGetSecretValueCommonRequest method.
req, resp := client.BatchGetSecretValueCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*METAKMS) BatchGetSecretValueCommonWithContext

func (c *METAKMS) BatchGetSecretValueCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

BatchGetSecretValueCommonWithContext is the same as BatchGetSecretValueCommon with the addition of the ability to pass a context and additional request options.

See BatchGetSecretValueCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*METAKMS) BatchGetSecretValueRequest

func (c *METAKMS) BatchGetSecretValueRequest(input *BatchGetSecretValueInput) (req *request.Request, output *BatchGetSecretValueOutput)

BatchGetSecretValueRequest generates a "volcengine/request.Request" representing the client's request for the BatchGetSecretValue operation. The "output" return value will be populated with the BatchGetSecretValueCommon request's response once the request completes successfully.

Use "Send" method on the returned BatchGetSecretValueCommon Request to send the API call to the service. the "output" return value is not valid until after BatchGetSecretValueCommon Send returns without error.

See BatchGetSecretValue for more information on using the BatchGetSecretValue API call, and error handling.

// Example sending a request using the BatchGetSecretValueRequest method.
req, resp := client.BatchGetSecretValueRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*METAKMS) BatchGetSecretValueWithContext

func (c *METAKMS) BatchGetSecretValueWithContext(ctx volcengine.Context, input *BatchGetSecretValueInput, opts ...request.Option) (*BatchGetSecretValueOutput, error)

BatchGetSecretValueWithContext is the same as BatchGetSecretValue with the addition of the ability to pass a context and additional request options.

See BatchGetSecretValue for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*METAKMS) DescribeSecret

func (c *METAKMS) DescribeSecret(input *DescribeSecretInput) (*DescribeSecretOutput, error)

DescribeSecret API operation for METAKMS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for METAKMS's API operation DescribeSecret for usage and error information.

func (*METAKMS) DescribeSecretCommon

func (c *METAKMS) DescribeSecretCommon(input *map[string]interface{}) (*map[string]interface{}, error)

DescribeSecretCommon API operation for METAKMS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for METAKMS's API operation DescribeSecretCommon for usage and error information.

func (*METAKMS) DescribeSecretCommonRequest

func (c *METAKMS) DescribeSecretCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

DescribeSecretCommonRequest generates a "volcengine/request.Request" representing the client's request for the DescribeSecretCommon operation. The "output" return value will be populated with the DescribeSecretCommon request's response once the request completes successfully.

Use "Send" method on the returned DescribeSecretCommon Request to send the API call to the service. the "output" return value is not valid until after DescribeSecretCommon Send returns without error.

See DescribeSecretCommon for more information on using the DescribeSecretCommon API call, and error handling.

// Example sending a request using the DescribeSecretCommonRequest method.
req, resp := client.DescribeSecretCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*METAKMS) DescribeSecretCommonWithContext

func (c *METAKMS) DescribeSecretCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

DescribeSecretCommonWithContext is the same as DescribeSecretCommon with the addition of the ability to pass a context and additional request options.

See DescribeSecretCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*METAKMS) DescribeSecretRequest

func (c *METAKMS) DescribeSecretRequest(input *DescribeSecretInput) (req *request.Request, output *DescribeSecretOutput)

DescribeSecretRequest generates a "volcengine/request.Request" representing the client's request for the DescribeSecret operation. The "output" return value will be populated with the DescribeSecretCommon request's response once the request completes successfully.

Use "Send" method on the returned DescribeSecretCommon Request to send the API call to the service. the "output" return value is not valid until after DescribeSecretCommon Send returns without error.

See DescribeSecret for more information on using the DescribeSecret API call, and error handling.

// Example sending a request using the DescribeSecretRequest method.
req, resp := client.DescribeSecretRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*METAKMS) DescribeSecretVersions

func (c *METAKMS) DescribeSecretVersions(input *DescribeSecretVersionsInput) (*DescribeSecretVersionsOutput, error)

DescribeSecretVersions API operation for METAKMS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for METAKMS's API operation DescribeSecretVersions for usage and error information.

func (*METAKMS) DescribeSecretVersionsCommon

func (c *METAKMS) DescribeSecretVersionsCommon(input *map[string]interface{}) (*map[string]interface{}, error)

DescribeSecretVersionsCommon API operation for METAKMS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for METAKMS's API operation DescribeSecretVersionsCommon for usage and error information.

func (*METAKMS) DescribeSecretVersionsCommonRequest

func (c *METAKMS) DescribeSecretVersionsCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

DescribeSecretVersionsCommonRequest generates a "volcengine/request.Request" representing the client's request for the DescribeSecretVersionsCommon operation. The "output" return value will be populated with the DescribeSecretVersionsCommon request's response once the request completes successfully.

Use "Send" method on the returned DescribeSecretVersionsCommon Request to send the API call to the service. the "output" return value is not valid until after DescribeSecretVersionsCommon Send returns without error.

See DescribeSecretVersionsCommon for more information on using the DescribeSecretVersionsCommon API call, and error handling.

// Example sending a request using the DescribeSecretVersionsCommonRequest method.
req, resp := client.DescribeSecretVersionsCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*METAKMS) DescribeSecretVersionsCommonWithContext

func (c *METAKMS) DescribeSecretVersionsCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

DescribeSecretVersionsCommonWithContext is the same as DescribeSecretVersionsCommon with the addition of the ability to pass a context and additional request options.

See DescribeSecretVersionsCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*METAKMS) DescribeSecretVersionsRequest

func (c *METAKMS) DescribeSecretVersionsRequest(input *DescribeSecretVersionsInput) (req *request.Request, output *DescribeSecretVersionsOutput)

DescribeSecretVersionsRequest generates a "volcengine/request.Request" representing the client's request for the DescribeSecretVersions operation. The "output" return value will be populated with the DescribeSecretVersionsCommon request's response once the request completes successfully.

Use "Send" method on the returned DescribeSecretVersionsCommon Request to send the API call to the service. the "output" return value is not valid until after DescribeSecretVersionsCommon Send returns without error.

See DescribeSecretVersions for more information on using the DescribeSecretVersions API call, and error handling.

// Example sending a request using the DescribeSecretVersionsRequest method.
req, resp := client.DescribeSecretVersionsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*METAKMS) DescribeSecretVersionsWithContext

func (c *METAKMS) DescribeSecretVersionsWithContext(ctx volcengine.Context, input *DescribeSecretVersionsInput, opts ...request.Option) (*DescribeSecretVersionsOutput, error)

DescribeSecretVersionsWithContext is the same as DescribeSecretVersions with the addition of the ability to pass a context and additional request options.

See DescribeSecretVersions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*METAKMS) DescribeSecretWithContext

func (c *METAKMS) DescribeSecretWithContext(ctx volcengine.Context, input *DescribeSecretInput, opts ...request.Option) (*DescribeSecretOutput, error)

DescribeSecretWithContext is the same as DescribeSecret with the addition of the ability to pass a context and additional request options.

See DescribeSecret for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*METAKMS) DescribeSecrets

func (c *METAKMS) DescribeSecrets(input *DescribeSecretsInput) (*DescribeSecretsOutput, error)

DescribeSecrets API operation for METAKMS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for METAKMS's API operation DescribeSecrets for usage and error information.

func (*METAKMS) DescribeSecretsCommon

func (c *METAKMS) DescribeSecretsCommon(input *map[string]interface{}) (*map[string]interface{}, error)

DescribeSecretsCommon API operation for METAKMS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for METAKMS's API operation DescribeSecretsCommon for usage and error information.

func (*METAKMS) DescribeSecretsCommonRequest

func (c *METAKMS) DescribeSecretsCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

DescribeSecretsCommonRequest generates a "volcengine/request.Request" representing the client's request for the DescribeSecretsCommon operation. The "output" return value will be populated with the DescribeSecretsCommon request's response once the request completes successfully.

Use "Send" method on the returned DescribeSecretsCommon Request to send the API call to the service. the "output" return value is not valid until after DescribeSecretsCommon Send returns without error.

See DescribeSecretsCommon for more information on using the DescribeSecretsCommon API call, and error handling.

// Example sending a request using the DescribeSecretsCommonRequest method.
req, resp := client.DescribeSecretsCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*METAKMS) DescribeSecretsCommonWithContext

func (c *METAKMS) DescribeSecretsCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

DescribeSecretsCommonWithContext is the same as DescribeSecretsCommon with the addition of the ability to pass a context and additional request options.

See DescribeSecretsCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*METAKMS) DescribeSecretsRequest

func (c *METAKMS) DescribeSecretsRequest(input *DescribeSecretsInput) (req *request.Request, output *DescribeSecretsOutput)

DescribeSecretsRequest generates a "volcengine/request.Request" representing the client's request for the DescribeSecrets operation. The "output" return value will be populated with the DescribeSecretsCommon request's response once the request completes successfully.

Use "Send" method on the returned DescribeSecretsCommon Request to send the API call to the service. the "output" return value is not valid until after DescribeSecretsCommon Send returns without error.

See DescribeSecrets for more information on using the DescribeSecrets API call, and error handling.

// Example sending a request using the DescribeSecretsRequest method.
req, resp := client.DescribeSecretsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*METAKMS) DescribeSecretsWithContext

func (c *METAKMS) DescribeSecretsWithContext(ctx volcengine.Context, input *DescribeSecretsInput, opts ...request.Option) (*DescribeSecretsOutput, error)

DescribeSecretsWithContext is the same as DescribeSecrets with the addition of the ability to pass a context and additional request options.

See DescribeSecrets for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*METAKMS) GetSecretValue

func (c *METAKMS) GetSecretValue(input *GetSecretValueInput) (*GetSecretValueOutput, error)

GetSecretValue API operation for METAKMS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for METAKMS's API operation GetSecretValue for usage and error information.

func (*METAKMS) GetSecretValueCommon

func (c *METAKMS) GetSecretValueCommon(input *map[string]interface{}) (*map[string]interface{}, error)

GetSecretValueCommon API operation for METAKMS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for METAKMS's API operation GetSecretValueCommon for usage and error information.

func (*METAKMS) GetSecretValueCommonRequest

func (c *METAKMS) GetSecretValueCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

GetSecretValueCommonRequest generates a "volcengine/request.Request" representing the client's request for the GetSecretValueCommon operation. The "output" return value will be populated with the GetSecretValueCommon request's response once the request completes successfully.

Use "Send" method on the returned GetSecretValueCommon Request to send the API call to the service. the "output" return value is not valid until after GetSecretValueCommon Send returns without error.

See GetSecretValueCommon for more information on using the GetSecretValueCommon API call, and error handling.

// Example sending a request using the GetSecretValueCommonRequest method.
req, resp := client.GetSecretValueCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*METAKMS) GetSecretValueCommonWithContext

func (c *METAKMS) GetSecretValueCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

GetSecretValueCommonWithContext is the same as GetSecretValueCommon with the addition of the ability to pass a context and additional request options.

See GetSecretValueCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*METAKMS) GetSecretValueRequest

func (c *METAKMS) GetSecretValueRequest(input *GetSecretValueInput) (req *request.Request, output *GetSecretValueOutput)

GetSecretValueRequest generates a "volcengine/request.Request" representing the client's request for the GetSecretValue operation. The "output" return value will be populated with the GetSecretValueCommon request's response once the request completes successfully.

Use "Send" method on the returned GetSecretValueCommon Request to send the API call to the service. the "output" return value is not valid until after GetSecretValueCommon Send returns without error.

See GetSecretValue for more information on using the GetSecretValue API call, and error handling.

// Example sending a request using the GetSecretValueRequest method.
req, resp := client.GetSecretValueRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*METAKMS) GetSecretValueWithContext

func (c *METAKMS) GetSecretValueWithContext(ctx volcengine.Context, input *GetSecretValueInput, opts ...request.Option) (*GetSecretValueOutput, error)

GetSecretValueWithContext is the same as GetSecretValue with the addition of the ability to pass a context and additional request options.

See GetSecretValue for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type METAKMSAPI

type METAKMSAPI interface {
	BatchGetSecretValueCommon(*map[string]interface{}) (*map[string]interface{}, error)
	BatchGetSecretValueCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	BatchGetSecretValueCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	BatchGetSecretValue(*BatchGetSecretValueInput) (*BatchGetSecretValueOutput, error)
	BatchGetSecretValueWithContext(volcengine.Context, *BatchGetSecretValueInput, ...request.Option) (*BatchGetSecretValueOutput, error)
	BatchGetSecretValueRequest(*BatchGetSecretValueInput) (*request.Request, *BatchGetSecretValueOutput)

	DescribeSecretCommon(*map[string]interface{}) (*map[string]interface{}, error)
	DescribeSecretCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	DescribeSecretCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	DescribeSecret(*DescribeSecretInput) (*DescribeSecretOutput, error)
	DescribeSecretWithContext(volcengine.Context, *DescribeSecretInput, ...request.Option) (*DescribeSecretOutput, error)
	DescribeSecretRequest(*DescribeSecretInput) (*request.Request, *DescribeSecretOutput)

	DescribeSecretVersionsCommon(*map[string]interface{}) (*map[string]interface{}, error)
	DescribeSecretVersionsCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	DescribeSecretVersionsCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	DescribeSecretVersions(*DescribeSecretVersionsInput) (*DescribeSecretVersionsOutput, error)
	DescribeSecretVersionsWithContext(volcengine.Context, *DescribeSecretVersionsInput, ...request.Option) (*DescribeSecretVersionsOutput, error)
	DescribeSecretVersionsRequest(*DescribeSecretVersionsInput) (*request.Request, *DescribeSecretVersionsOutput)

	DescribeSecretsCommon(*map[string]interface{}) (*map[string]interface{}, error)
	DescribeSecretsCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	DescribeSecretsCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	DescribeSecrets(*DescribeSecretsInput) (*DescribeSecretsOutput, error)
	DescribeSecretsWithContext(volcengine.Context, *DescribeSecretsInput, ...request.Option) (*DescribeSecretsOutput, error)
	DescribeSecretsRequest(*DescribeSecretsInput) (*request.Request, *DescribeSecretsOutput)

	GetSecretValueCommon(*map[string]interface{}) (*map[string]interface{}, error)
	GetSecretValueCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	GetSecretValueCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	GetSecretValue(*GetSecretValueInput) (*GetSecretValueOutput, error)
	GetSecretValueWithContext(volcengine.Context, *GetSecretValueInput, ...request.Option) (*GetSecretValueOutput, error)
	GetSecretValueRequest(*GetSecretValueInput) (*request.Request, *GetSecretValueOutput)
}

METAKMSAPI provides an interface to enable mocking the metakms.METAKMS service client's API operation,

// volcengine sdk func uses an SDK service client to make a request to
// METAKMS.
func myFunc(svc METAKMSAPI) bool {
    // Make svc.BatchGetSecretValue request
}

func main() {
    sess := session.New()
    svc := metakms.New(sess)

    myFunc(svc)
}

type PageInfoForDescribeSecretVersionsOutput

type PageInfoForDescribeSecretVersionsOutput struct {
	Count *int32 `type:"int32" json:",omitempty"`

	CurrentPage *int32 `type:"int32" json:",omitempty"`

	PageSize *int32 `type:"int32" json:",omitempty"`

	TotalCount *int32 `type:"int32" json:",omitempty"`
	// contains filtered or unexported fields
}

func (PageInfoForDescribeSecretVersionsOutput) GoString

GoString returns the string representation

func (*PageInfoForDescribeSecretVersionsOutput) SetCount

SetCount sets the Count field's value.

func (*PageInfoForDescribeSecretVersionsOutput) SetCurrentPage

SetCurrentPage sets the CurrentPage field's value.

func (*PageInfoForDescribeSecretVersionsOutput) SetPageSize

SetPageSize sets the PageSize field's value.

func (*PageInfoForDescribeSecretVersionsOutput) SetTotalCount

SetTotalCount sets the TotalCount field's value.

func (PageInfoForDescribeSecretVersionsOutput) String

String returns the string representation

type PageInfoForDescribeSecretsOutput

type PageInfoForDescribeSecretsOutput struct {
	Count *int32 `type:"int32" json:",omitempty"`

	CurrentPage *int32 `type:"int32" json:",omitempty"`

	PageSize *int32 `type:"int32" json:",omitempty"`

	TotalCount *int32 `type:"int32" json:",omitempty"`
	// contains filtered or unexported fields
}

func (PageInfoForDescribeSecretsOutput) GoString

GoString returns the string representation

func (*PageInfoForDescribeSecretsOutput) SetCount

SetCount sets the Count field's value.

func (*PageInfoForDescribeSecretsOutput) SetCurrentPage

SetCurrentPage sets the CurrentPage field's value.

func (*PageInfoForDescribeSecretsOutput) SetPageSize

SetPageSize sets the PageSize field's value.

func (*PageInfoForDescribeSecretsOutput) SetTotalCount

SetTotalCount sets the TotalCount field's value.

func (PageInfoForDescribeSecretsOutput) String

String returns the string representation

type SecretForDescribeSecretOutput

type SecretForDescribeSecretOutput struct {
	CreationDate *int64 `type:"int64" json:",omitempty"`

	Description *string `type:"string" json:",omitempty"`

	EncryptionKey *string `type:"string" json:",omitempty"`

	ExtendedConfig *string `max:"1024" type:"string" json:",omitempty"`

	ID *string `type:"string" json:",omitempty"`

	LastRotationTime *string `type:"string" json:",omitempty"`

	Managed *bool `type:"boolean" json:",omitempty"`

	ProjectName *string `type:"string" json:",omitempty"`

	RotationInterval *int32 `type:"int32" json:",omitempty"`

	RotationState *string `type:"string" json:",omitempty"`

	ScheduleDeleteTime *string `type:"string" json:",omitempty"`

	ScheduleRotationTime *string `type:"string" json:",omitempty"`

	SecretName *string `type:"string" json:",omitempty"`

	SecretState *string `type:"string" json:",omitempty" enum:"EnumOfSecretStateForDescribeSecretOutput"`

	SecretType *string `type:"string" json:",omitempty" enum:"EnumOfSecretTypeForDescribeSecretOutput"`

	Trn *string `type:"string" json:",omitempty"`

	UID *string `type:"string" json:",omitempty"`

	UpdateDate *int64 `type:"int64" json:",omitempty"`
	// contains filtered or unexported fields
}

func (SecretForDescribeSecretOutput) GoString

GoString returns the string representation

func (*SecretForDescribeSecretOutput) SetCreationDate

SetCreationDate sets the CreationDate field's value.

func (*SecretForDescribeSecretOutput) SetDescription

SetDescription sets the Description field's value.

func (*SecretForDescribeSecretOutput) SetEncryptionKey

SetEncryptionKey sets the EncryptionKey field's value.

func (*SecretForDescribeSecretOutput) SetExtendedConfig

SetExtendedConfig sets the ExtendedConfig field's value.

func (*SecretForDescribeSecretOutput) SetID

SetID sets the ID field's value.

func (*SecretForDescribeSecretOutput) SetLastRotationTime

SetLastRotationTime sets the LastRotationTime field's value.

func (*SecretForDescribeSecretOutput) SetManaged

SetManaged sets the Managed field's value.

func (*SecretForDescribeSecretOutput) SetProjectName

SetProjectName sets the ProjectName field's value.

func (*SecretForDescribeSecretOutput) SetRotationInterval

SetRotationInterval sets the RotationInterval field's value.

func (*SecretForDescribeSecretOutput) SetRotationState

SetRotationState sets the RotationState field's value.

func (*SecretForDescribeSecretOutput) SetScheduleDeleteTime

SetScheduleDeleteTime sets the ScheduleDeleteTime field's value.

func (*SecretForDescribeSecretOutput) SetScheduleRotationTime

SetScheduleRotationTime sets the ScheduleRotationTime field's value.

func (*SecretForDescribeSecretOutput) SetSecretName

SetSecretName sets the SecretName field's value.

func (*SecretForDescribeSecretOutput) SetSecretState

SetSecretState sets the SecretState field's value.

func (*SecretForDescribeSecretOutput) SetSecretType

SetSecretType sets the SecretType field's value.

func (*SecretForDescribeSecretOutput) SetTrn

SetTrn sets the Trn field's value.

func (*SecretForDescribeSecretOutput) SetUID

SetUID sets the UID field's value.

func (*SecretForDescribeSecretOutput) SetUpdateDate

SetUpdateDate sets the UpdateDate field's value.

func (SecretForDescribeSecretOutput) String

String returns the string representation

type SecretForDescribeSecretsOutput

type SecretForDescribeSecretsOutput struct {
	CreationDate *int64 `type:"int64" json:",omitempty"`

	Description *string `type:"string" json:",omitempty"`

	EncryptionKey *string `type:"string" json:",omitempty"`

	ExtendedConfig *string `max:"1024" type:"string" json:",omitempty"`

	ID *string `type:"string" json:",omitempty"`

	LastRotationTime *string `type:"string" json:",omitempty"`

	Managed *bool `type:"boolean" json:",omitempty"`

	ProjectName *string `type:"string" json:",omitempty"`

	RotationInterval *int32 `type:"int32" json:",omitempty"`

	RotationState *string `type:"string" json:",omitempty"`

	ScheduleDeleteTime *string `type:"string" json:",omitempty"`

	ScheduleRotationTime *string `type:"string" json:",omitempty"`

	SecretName *string `type:"string" json:",omitempty"`

	SecretState *string `type:"string" json:",omitempty" enum:"EnumOfSecretStateForDescribeSecretsOutput"`

	SecretType *string `type:"string" json:",omitempty" enum:"EnumOfSecretTypeForDescribeSecretsOutput"`

	Trn *string `type:"string" json:",omitempty"`

	UID *string `type:"string" json:",omitempty"`

	UpdateDate *int64 `type:"int64" json:",omitempty"`
	// contains filtered or unexported fields
}

func (SecretForDescribeSecretsOutput) GoString

GoString returns the string representation

func (*SecretForDescribeSecretsOutput) SetCreationDate

SetCreationDate sets the CreationDate field's value.

func (*SecretForDescribeSecretsOutput) SetDescription

SetDescription sets the Description field's value.

func (*SecretForDescribeSecretsOutput) SetEncryptionKey

SetEncryptionKey sets the EncryptionKey field's value.

func (*SecretForDescribeSecretsOutput) SetExtendedConfig

SetExtendedConfig sets the ExtendedConfig field's value.

func (*SecretForDescribeSecretsOutput) SetID

SetID sets the ID field's value.

func (*SecretForDescribeSecretsOutput) SetLastRotationTime

SetLastRotationTime sets the LastRotationTime field's value.

func (*SecretForDescribeSecretsOutput) SetManaged

SetManaged sets the Managed field's value.

func (*SecretForDescribeSecretsOutput) SetProjectName

SetProjectName sets the ProjectName field's value.

func (*SecretForDescribeSecretsOutput) SetRotationInterval

SetRotationInterval sets the RotationInterval field's value.

func (*SecretForDescribeSecretsOutput) SetRotationState

SetRotationState sets the RotationState field's value.

func (*SecretForDescribeSecretsOutput) SetScheduleDeleteTime

SetScheduleDeleteTime sets the ScheduleDeleteTime field's value.

func (*SecretForDescribeSecretsOutput) SetScheduleRotationTime

SetScheduleRotationTime sets the ScheduleRotationTime field's value.

func (*SecretForDescribeSecretsOutput) SetSecretName

SetSecretName sets the SecretName field's value.

func (*SecretForDescribeSecretsOutput) SetSecretState

SetSecretState sets the SecretState field's value.

func (*SecretForDescribeSecretsOutput) SetSecretType

SetSecretType sets the SecretType field's value.

func (*SecretForDescribeSecretsOutput) SetTrn

SetTrn sets the Trn field's value.

func (*SecretForDescribeSecretsOutput) SetUID

SetUID sets the UID field's value.

func (*SecretForDescribeSecretsOutput) SetUpdateDate

SetUpdateDate sets the UpdateDate field's value.

func (SecretForDescribeSecretsOutput) String

String returns the string representation

type SecretValueForBatchGetSecretValueOutput

type SecretValueForBatchGetSecretValueOutput struct {
	CreationDate *int64 `type:"int64" json:",omitempty"`

	SecretName *string `type:"string" json:",omitempty"`

	SecretValue *string `type:"string" json:",omitempty"`

	VersionID *string `type:"string" json:",omitempty"`

	VersionStage *string `type:"string" json:",omitempty" enum:"EnumOfVersionStageForBatchGetSecretValueOutput"`
	// contains filtered or unexported fields
}

func (SecretValueForBatchGetSecretValueOutput) GoString

GoString returns the string representation

func (*SecretValueForBatchGetSecretValueOutput) SetCreationDate

SetCreationDate sets the CreationDate field's value.

func (*SecretValueForBatchGetSecretValueOutput) SetSecretName

SetSecretName sets the SecretName field's value.

func (*SecretValueForBatchGetSecretValueOutput) SetSecretValue

SetSecretValue sets the SecretValue field's value.

func (*SecretValueForBatchGetSecretValueOutput) SetVersionID

SetVersionID sets the VersionID field's value.

func (*SecretValueForBatchGetSecretValueOutput) SetVersionStage

SetVersionStage sets the VersionStage field's value.

func (SecretValueForBatchGetSecretValueOutput) String

String returns the string representation

type SecretVersionForDescribeSecretVersionsOutput

type SecretVersionForDescribeSecretVersionsOutput struct {
	CreationDate *int64 `type:"int64" json:",omitempty"`

	VersionID *string `type:"string" json:",omitempty"`

	VersionStage *string `type:"string" json:",omitempty" enum:"EnumOfVersionStageForDescribeSecretVersionsOutput"`
	// contains filtered or unexported fields
}

func (SecretVersionForDescribeSecretVersionsOutput) GoString

GoString returns the string representation

func (*SecretVersionForDescribeSecretVersionsOutput) SetCreationDate

SetCreationDate sets the CreationDate field's value.

func (*SecretVersionForDescribeSecretVersionsOutput) SetVersionID

SetVersionID sets the VersionID field's value.

func (*SecretVersionForDescribeSecretVersionsOutput) SetVersionStage

SetVersionStage sets the VersionStage field's value.

func (SecretVersionForDescribeSecretVersionsOutput) String

String returns the string representation

Jump to

Keyboard shortcuts

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