eic

package
v1.2.9 Latest Latest
Warning

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

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

Documentation

Overview

Package eiciface provides an interface to enable mocking the EIC 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 (
	// EnumOfDiskEvictStrategyForCreateNamespaceInputTtl is a EnumOfDiskEvictStrategyForCreateNamespaceInput enum value
	EnumOfDiskEvictStrategyForCreateNamespaceInputTtl = "TTL"

	// EnumOfDiskEvictStrategyForCreateNamespaceInputLru is a EnumOfDiskEvictStrategyForCreateNamespaceInput enum value
	EnumOfDiskEvictStrategyForCreateNamespaceInputLru = "LRU"
)
View Source
const (
	// EnumOfMemEvictStrategyForCreateNamespaceInputTtl is a EnumOfMemEvictStrategyForCreateNamespaceInput enum value
	EnumOfMemEvictStrategyForCreateNamespaceInputTtl = "TTL"

	// EnumOfMemEvictStrategyForCreateNamespaceInputLru is a EnumOfMemEvictStrategyForCreateNamespaceInput enum value
	EnumOfMemEvictStrategyForCreateNamespaceInputLru = "LRU"
)
View Source
const (
	// EnumOfPromoteStrategyForCreateNamespaceInputNone is a EnumOfPromoteStrategyForCreateNamespaceInput enum value
	EnumOfPromoteStrategyForCreateNamespaceInputNone = "NONE"

	// EnumOfPromoteStrategyForCreateNamespaceInputLazyload is a EnumOfPromoteStrategyForCreateNamespaceInput enum value
	EnumOfPromoteStrategyForCreateNamespaceInputLazyload = "LAZYLOAD"
)
View Source
const (
	// EnumOfStorageTypeForCreateNamespaceInputDram is a EnumOfStorageTypeForCreateNamespaceInput enum value
	EnumOfStorageTypeForCreateNamespaceInputDram = "DRAM"

	// EnumOfStorageTypeForCreateNamespaceInputDramSsd is a EnumOfStorageTypeForCreateNamespaceInput enum value
	EnumOfStorageTypeForCreateNamespaceInputDramSsd = "DRAM_SSD"

	// EnumOfStorageTypeForCreateNamespaceInputSsd is a EnumOfStorageTypeForCreateNamespaceInput enum value
	EnumOfStorageTypeForCreateNamespaceInputSsd = "SSD"
)
View Source
const (
	// EnumOfDiskEvictStrategyForDescribeNamespacesOutputTtl is a EnumOfDiskEvictStrategyForDescribeNamespacesOutput enum value
	EnumOfDiskEvictStrategyForDescribeNamespacesOutputTtl = "TTL"

	// EnumOfDiskEvictStrategyForDescribeNamespacesOutputLru is a EnumOfDiskEvictStrategyForDescribeNamespacesOutput enum value
	EnumOfDiskEvictStrategyForDescribeNamespacesOutputLru = "LRU"
)
View Source
const (
	// EnumOfMemEvictStrategyForDescribeNamespacesOutputTtl is a EnumOfMemEvictStrategyForDescribeNamespacesOutput enum value
	EnumOfMemEvictStrategyForDescribeNamespacesOutputTtl = "TTL"

	// EnumOfMemEvictStrategyForDescribeNamespacesOutputLru is a EnumOfMemEvictStrategyForDescribeNamespacesOutput enum value
	EnumOfMemEvictStrategyForDescribeNamespacesOutputLru = "LRU"
)
View Source
const (
	// EnumOfPromoteStrategyForDescribeNamespacesOutputNone is a EnumOfPromoteStrategyForDescribeNamespacesOutput enum value
	EnumOfPromoteStrategyForDescribeNamespacesOutputNone = "NONE"

	// EnumOfPromoteStrategyForDescribeNamespacesOutputLazyload is a EnumOfPromoteStrategyForDescribeNamespacesOutput enum value
	EnumOfPromoteStrategyForDescribeNamespacesOutputLazyload = "LAZYLOAD"
)
View Source
const (
	// EnumOfStatusForDescribeNamespacesOutputCreating is a EnumOfStatusForDescribeNamespacesOutput enum value
	EnumOfStatusForDescribeNamespacesOutputCreating = "Creating"

	// EnumOfStatusForDescribeNamespacesOutputCreateFailed is a EnumOfStatusForDescribeNamespacesOutput enum value
	EnumOfStatusForDescribeNamespacesOutputCreateFailed = "CreateFailed"

	// EnumOfStatusForDescribeNamespacesOutputAvailable is a EnumOfStatusForDescribeNamespacesOutput enum value
	EnumOfStatusForDescribeNamespacesOutputAvailable = "Available"

	// EnumOfStatusForDescribeNamespacesOutputDeleting is a EnumOfStatusForDescribeNamespacesOutput enum value
	EnumOfStatusForDescribeNamespacesOutputDeleting = "Deleting"

	// EnumOfStatusForDescribeNamespacesOutputDeleted is a EnumOfStatusForDescribeNamespacesOutput enum value
	EnumOfStatusForDescribeNamespacesOutputDeleted = "Deleted"

	// EnumOfStatusForDescribeNamespacesOutputError is a EnumOfStatusForDescribeNamespacesOutput enum value
	EnumOfStatusForDescribeNamespacesOutputError = "Error"
)
View Source
const (
	// EnumOfStatusListForDescribeNamespacesInputCreating is a EnumOfStatusListForDescribeNamespacesInput enum value
	EnumOfStatusListForDescribeNamespacesInputCreating = "Creating"

	// EnumOfStatusListForDescribeNamespacesInputCreateFailed is a EnumOfStatusListForDescribeNamespacesInput enum value
	EnumOfStatusListForDescribeNamespacesInputCreateFailed = "CreateFailed"

	// EnumOfStatusListForDescribeNamespacesInputAvailable is a EnumOfStatusListForDescribeNamespacesInput enum value
	EnumOfStatusListForDescribeNamespacesInputAvailable = "Available"

	// EnumOfStatusListForDescribeNamespacesInputDeleting is a EnumOfStatusListForDescribeNamespacesInput enum value
	EnumOfStatusListForDescribeNamespacesInputDeleting = "Deleting"

	// EnumOfStatusListForDescribeNamespacesInputDeleted is a EnumOfStatusListForDescribeNamespacesInput enum value
	EnumOfStatusListForDescribeNamespacesInputDeleted = "Deleted"

	// EnumOfStatusListForDescribeNamespacesInputError is a EnumOfStatusListForDescribeNamespacesInput enum value
	EnumOfStatusListForDescribeNamespacesInputError = "Error"
)
View Source
const (
	// EnumOfStorageTypeForDescribeNamespacesOutputDram is a EnumOfStorageTypeForDescribeNamespacesOutput enum value
	EnumOfStorageTypeForDescribeNamespacesOutputDram = "DRAM"

	// EnumOfStorageTypeForDescribeNamespacesOutputDramSsd is a EnumOfStorageTypeForDescribeNamespacesOutput enum value
	EnumOfStorageTypeForDescribeNamespacesOutputDramSsd = "DRAM_SSD"

	// EnumOfStorageTypeForDescribeNamespacesOutputSsd is a EnumOfStorageTypeForDescribeNamespacesOutput enum value
	EnumOfStorageTypeForDescribeNamespacesOutputSsd = "SSD"
)
View Source
const (
	// EnumOfPromoteStrategyForModifyNamespaceInputNone is a EnumOfPromoteStrategyForModifyNamespaceInput enum value
	EnumOfPromoteStrategyForModifyNamespaceInputNone = "NONE"

	// EnumOfPromoteStrategyForModifyNamespaceInputLazyload is a EnumOfPromoteStrategyForModifyNamespaceInput enum value
	EnumOfPromoteStrategyForModifyNamespaceInputLazyload = "LAZYLOAD"
)
View Source
const (
	ServiceName = "eic"       // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "eic"       // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateNamespaceInput

type CreateNamespaceInput struct {
	AccessType *string `type:"string" json:",omitempty"`

	DiskEvictStrategy *string `type:"string" json:",omitempty" enum:"EnumOfDiskEvictStrategyForCreateNamespaceInput"`

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

	// InstanceId is a required field
	InstanceId *string `type:"string" json:",omitempty" required:"true"`

	MemEvictStrategy *string `type:"string" json:",omitempty" enum:"EnumOfMemEvictStrategyForCreateNamespaceInput"`

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

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

	PromoteStrategy *string `type:"string" json:",omitempty" enum:"EnumOfPromoteStrategyForCreateNamespaceInput"`

	StorageType *string `type:"string" json:",omitempty" enum:"EnumOfStorageTypeForCreateNamespaceInput"`

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

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

func (CreateNamespaceInput) GoString

func (s CreateNamespaceInput) GoString() string

GoString returns the string representation

func (*CreateNamespaceInput) SetAccessType

func (s *CreateNamespaceInput) SetAccessType(v string) *CreateNamespaceInput

SetAccessType sets the AccessType field's value.

func (*CreateNamespaceInput) SetDiskEvictStrategy

func (s *CreateNamespaceInput) SetDiskEvictStrategy(v string) *CreateNamespaceInput

SetDiskEvictStrategy sets the DiskEvictStrategy field's value.

func (*CreateNamespaceInput) SetDiskTTLSeconds

func (s *CreateNamespaceInput) SetDiskTTLSeconds(v int32) *CreateNamespaceInput

SetDiskTTLSeconds sets the DiskTTLSeconds field's value.

func (*CreateNamespaceInput) SetInstanceId

func (s *CreateNamespaceInput) SetInstanceId(v string) *CreateNamespaceInput

SetInstanceId sets the InstanceId field's value.

func (*CreateNamespaceInput) SetMemEvictStrategy

func (s *CreateNamespaceInput) SetMemEvictStrategy(v string) *CreateNamespaceInput

SetMemEvictStrategy sets the MemEvictStrategy field's value.

func (*CreateNamespaceInput) SetMemTTLSeconds

func (s *CreateNamespaceInput) SetMemTTLSeconds(v int32) *CreateNamespaceInput

SetMemTTLSeconds sets the MemTTLSeconds field's value.

func (*CreateNamespaceInput) SetNamespaceName

func (s *CreateNamespaceInput) SetNamespaceName(v string) *CreateNamespaceInput

SetNamespaceName sets the NamespaceName field's value.

func (*CreateNamespaceInput) SetPromoteStrategy

func (s *CreateNamespaceInput) SetPromoteStrategy(v string) *CreateNamespaceInput

SetPromoteStrategy sets the PromoteStrategy field's value.

func (*CreateNamespaceInput) SetStorageType

func (s *CreateNamespaceInput) SetStorageType(v string) *CreateNamespaceInput

SetStorageType sets the StorageType field's value.

func (*CreateNamespaceInput) SetUnderStorageInstanceId

func (s *CreateNamespaceInput) SetUnderStorageInstanceId(v string) *CreateNamespaceInput

SetUnderStorageInstanceId sets the UnderStorageInstanceId field's value.

func (*CreateNamespaceInput) SetUnderStorageType

func (s *CreateNamespaceInput) SetUnderStorageType(v string) *CreateNamespaceInput

SetUnderStorageType sets the UnderStorageType field's value.

func (CreateNamespaceInput) String

func (s CreateNamespaceInput) String() string

String returns the string representation

func (*CreateNamespaceInput) Validate

func (s *CreateNamespaceInput) Validate() error

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

type CreateNamespaceOutput

type CreateNamespaceOutput struct {
	Metadata *response.ResponseMetadata
	// contains filtered or unexported fields
}

func (CreateNamespaceOutput) GoString

func (s CreateNamespaceOutput) GoString() string

GoString returns the string representation

func (CreateNamespaceOutput) String

func (s CreateNamespaceOutput) String() string

String returns the string representation

type DeleteNamespaceInput

type DeleteNamespaceInput struct {
	Force *bool `type:"boolean" json:",omitempty"`

	// InstanceId is a required field
	InstanceId *string `type:"string" json:",omitempty" required:"true"`

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

func (DeleteNamespaceInput) GoString

func (s DeleteNamespaceInput) GoString() string

GoString returns the string representation

func (*DeleteNamespaceInput) SetForce

SetForce sets the Force field's value.

func (*DeleteNamespaceInput) SetInstanceId

func (s *DeleteNamespaceInput) SetInstanceId(v string) *DeleteNamespaceInput

SetInstanceId sets the InstanceId field's value.

func (*DeleteNamespaceInput) SetNamespaceName

func (s *DeleteNamespaceInput) SetNamespaceName(v string) *DeleteNamespaceInput

SetNamespaceName sets the NamespaceName field's value.

func (DeleteNamespaceInput) String

func (s DeleteNamespaceInput) String() string

String returns the string representation

func (*DeleteNamespaceInput) Validate

func (s *DeleteNamespaceInput) Validate() error

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

type DeleteNamespaceOutput

type DeleteNamespaceOutput struct {
	Metadata *response.ResponseMetadata
	// contains filtered or unexported fields
}

func (DeleteNamespaceOutput) GoString

func (s DeleteNamespaceOutput) GoString() string

GoString returns the string representation

func (DeleteNamespaceOutput) String

func (s DeleteNamespaceOutput) String() string

String returns the string representation

type DescribeNamespacesInput

type DescribeNamespacesInput struct {

	// InstanceId is a required field
	InstanceId *string `type:"string" json:",omitempty" required:"true"`

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

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

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

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

func (DescribeNamespacesInput) GoString

func (s DescribeNamespacesInput) GoString() string

GoString returns the string representation

func (*DescribeNamespacesInput) SetInstanceId

SetInstanceId sets the InstanceId field's value.

func (*DescribeNamespacesInput) SetName

SetName sets the Name field's value.

func (*DescribeNamespacesInput) SetPageNumber

SetPageNumber sets the PageNumber field's value.

func (*DescribeNamespacesInput) SetPageSize

SetPageSize sets the PageSize field's value.

func (*DescribeNamespacesInput) SetStatus

SetStatus sets the Status field's value.

func (DescribeNamespacesInput) String

func (s DescribeNamespacesInput) String() string

String returns the string representation

func (*DescribeNamespacesInput) Validate

func (s *DescribeNamespacesInput) Validate() error

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

type DescribeNamespacesOutput

type DescribeNamespacesOutput struct {
	Metadata *response.ResponseMetadata

	Namespaces []*NamespaceForDescribeNamespacesOutput `type:"list" json:",omitempty"`

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

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

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

func (DescribeNamespacesOutput) GoString

func (s DescribeNamespacesOutput) GoString() string

GoString returns the string representation

func (*DescribeNamespacesOutput) SetNamespaces

SetNamespaces sets the Namespaces field's value.

func (*DescribeNamespacesOutput) SetPageNumber

SetPageNumber sets the PageNumber field's value.

func (*DescribeNamespacesOutput) SetPageSize

SetPageSize sets the PageSize field's value.

func (*DescribeNamespacesOutput) SetTotalCount

SetTotalCount sets the TotalCount field's value.

func (DescribeNamespacesOutput) String

func (s DescribeNamespacesOutput) String() string

String returns the string representation

type EIC

type EIC struct {
	*client.Client
}

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

EIC 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) *EIC

New create int can support ssl or region locate set

func (*EIC) CreateNamespace

func (c *EIC) CreateNamespace(input *CreateNamespaceInput) (*CreateNamespaceOutput, error)

CreateNamespace API operation for EIC.

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 EIC's API operation CreateNamespace for usage and error information.

func (*EIC) CreateNamespaceCommon

func (c *EIC) CreateNamespaceCommon(input *map[string]interface{}) (*map[string]interface{}, error)

CreateNamespaceCommon API operation for EIC.

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 EIC's API operation CreateNamespaceCommon for usage and error information.

func (*EIC) CreateNamespaceCommonRequest

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

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

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

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

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

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

func (*EIC) CreateNamespaceCommonWithContext

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

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

See CreateNamespaceCommon 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 (*EIC) CreateNamespaceRequest

func (c *EIC) CreateNamespaceRequest(input *CreateNamespaceInput) (req *request.Request, output *CreateNamespaceOutput)

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

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

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

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

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

func (*EIC) CreateNamespaceWithContext

func (c *EIC) CreateNamespaceWithContext(ctx volcengine.Context, input *CreateNamespaceInput, opts ...request.Option) (*CreateNamespaceOutput, error)

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

See CreateNamespace 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 (*EIC) DeleteNamespace

func (c *EIC) DeleteNamespace(input *DeleteNamespaceInput) (*DeleteNamespaceOutput, error)

DeleteNamespace API operation for EIC.

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 EIC's API operation DeleteNamespace for usage and error information.

func (*EIC) DeleteNamespaceCommon

func (c *EIC) DeleteNamespaceCommon(input *map[string]interface{}) (*map[string]interface{}, error)

DeleteNamespaceCommon API operation for EIC.

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 EIC's API operation DeleteNamespaceCommon for usage and error information.

func (*EIC) DeleteNamespaceCommonRequest

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

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

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

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

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

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

func (*EIC) DeleteNamespaceCommonWithContext

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

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

See DeleteNamespaceCommon 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 (*EIC) DeleteNamespaceRequest

func (c *EIC) DeleteNamespaceRequest(input *DeleteNamespaceInput) (req *request.Request, output *DeleteNamespaceOutput)

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

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

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

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

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

func (*EIC) DeleteNamespaceWithContext

func (c *EIC) DeleteNamespaceWithContext(ctx volcengine.Context, input *DeleteNamespaceInput, opts ...request.Option) (*DeleteNamespaceOutput, error)

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

See DeleteNamespace 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 (*EIC) DescribeNamespaces

func (c *EIC) DescribeNamespaces(input *DescribeNamespacesInput) (*DescribeNamespacesOutput, error)

DescribeNamespaces API operation for EIC.

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 EIC's API operation DescribeNamespaces for usage and error information.

func (*EIC) DescribeNamespacesCommon

func (c *EIC) DescribeNamespacesCommon(input *map[string]interface{}) (*map[string]interface{}, error)

DescribeNamespacesCommon API operation for EIC.

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 EIC's API operation DescribeNamespacesCommon for usage and error information.

func (*EIC) DescribeNamespacesCommonRequest

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

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

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

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

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

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

func (*EIC) DescribeNamespacesCommonWithContext

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

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

See DescribeNamespacesCommon 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 (*EIC) DescribeNamespacesRequest

func (c *EIC) DescribeNamespacesRequest(input *DescribeNamespacesInput) (req *request.Request, output *DescribeNamespacesOutput)

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

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

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

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

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

func (*EIC) DescribeNamespacesWithContext

func (c *EIC) DescribeNamespacesWithContext(ctx volcengine.Context, input *DescribeNamespacesInput, opts ...request.Option) (*DescribeNamespacesOutput, error)

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

See DescribeNamespaces 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 (*EIC) ModifyNamespace

func (c *EIC) ModifyNamespace(input *ModifyNamespaceInput) (*ModifyNamespaceOutput, error)

ModifyNamespace API operation for EIC.

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 EIC's API operation ModifyNamespace for usage and error information.

func (*EIC) ModifyNamespaceCommon

func (c *EIC) ModifyNamespaceCommon(input *map[string]interface{}) (*map[string]interface{}, error)

ModifyNamespaceCommon API operation for EIC.

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 EIC's API operation ModifyNamespaceCommon for usage and error information.

func (*EIC) ModifyNamespaceCommonRequest

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

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

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

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

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

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

func (*EIC) ModifyNamespaceCommonWithContext

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

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

See ModifyNamespaceCommon 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 (*EIC) ModifyNamespaceRequest

func (c *EIC) ModifyNamespaceRequest(input *ModifyNamespaceInput) (req *request.Request, output *ModifyNamespaceOutput)

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

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

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

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

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

func (*EIC) ModifyNamespaceWithContext

func (c *EIC) ModifyNamespaceWithContext(ctx volcengine.Context, input *ModifyNamespaceInput, opts ...request.Option) (*ModifyNamespaceOutput, error)

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

See ModifyNamespace 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 EICAPI

type EICAPI interface {
	CreateNamespaceCommon(*map[string]interface{}) (*map[string]interface{}, error)
	CreateNamespaceCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	CreateNamespaceCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	CreateNamespace(*CreateNamespaceInput) (*CreateNamespaceOutput, error)
	CreateNamespaceWithContext(volcengine.Context, *CreateNamespaceInput, ...request.Option) (*CreateNamespaceOutput, error)
	CreateNamespaceRequest(*CreateNamespaceInput) (*request.Request, *CreateNamespaceOutput)

	DeleteNamespaceCommon(*map[string]interface{}) (*map[string]interface{}, error)
	DeleteNamespaceCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	DeleteNamespaceCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	DeleteNamespace(*DeleteNamespaceInput) (*DeleteNamespaceOutput, error)
	DeleteNamespaceWithContext(volcengine.Context, *DeleteNamespaceInput, ...request.Option) (*DeleteNamespaceOutput, error)
	DeleteNamespaceRequest(*DeleteNamespaceInput) (*request.Request, *DeleteNamespaceOutput)

	DescribeNamespacesCommon(*map[string]interface{}) (*map[string]interface{}, error)
	DescribeNamespacesCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	DescribeNamespacesCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	DescribeNamespaces(*DescribeNamespacesInput) (*DescribeNamespacesOutput, error)
	DescribeNamespacesWithContext(volcengine.Context, *DescribeNamespacesInput, ...request.Option) (*DescribeNamespacesOutput, error)
	DescribeNamespacesRequest(*DescribeNamespacesInput) (*request.Request, *DescribeNamespacesOutput)

	ModifyNamespaceCommon(*map[string]interface{}) (*map[string]interface{}, error)
	ModifyNamespaceCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	ModifyNamespaceCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	ModifyNamespace(*ModifyNamespaceInput) (*ModifyNamespaceOutput, error)
	ModifyNamespaceWithContext(volcengine.Context, *ModifyNamespaceInput, ...request.Option) (*ModifyNamespaceOutput, error)
	ModifyNamespaceRequest(*ModifyNamespaceInput) (*request.Request, *ModifyNamespaceOutput)
}

EICAPI provides an interface to enable mocking the eic.EIC service client's API operation,

// volcengine sdk func uses an SDK service client to make a request to
// EIC.
func myFunc(svc EICAPI) bool {
    // Make svc.CreateNamespace request
}

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

    myFunc(svc)
}

type ModifyNamespaceInput

type ModifyNamespaceInput struct {
	DiskTTLSeconds *int32 `type:"int32" json:",omitempty"`

	// InstanceId is a required field
	InstanceId *string `type:"string" json:",omitempty" required:"true"`

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

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

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

func (ModifyNamespaceInput) GoString

func (s ModifyNamespaceInput) GoString() string

GoString returns the string representation

func (*ModifyNamespaceInput) SetDiskTTLSeconds

func (s *ModifyNamespaceInput) SetDiskTTLSeconds(v int32) *ModifyNamespaceInput

SetDiskTTLSeconds sets the DiskTTLSeconds field's value.

func (*ModifyNamespaceInput) SetInstanceId

func (s *ModifyNamespaceInput) SetInstanceId(v string) *ModifyNamespaceInput

SetInstanceId sets the InstanceId field's value.

func (*ModifyNamespaceInput) SetMemTTLSeconds

func (s *ModifyNamespaceInput) SetMemTTLSeconds(v int32) *ModifyNamespaceInput

SetMemTTLSeconds sets the MemTTLSeconds field's value.

func (*ModifyNamespaceInput) SetNamespaceName

func (s *ModifyNamespaceInput) SetNamespaceName(v string) *ModifyNamespaceInput

SetNamespaceName sets the NamespaceName field's value.

func (*ModifyNamespaceInput) SetPromoteStrategy

func (s *ModifyNamespaceInput) SetPromoteStrategy(v string) *ModifyNamespaceInput

SetPromoteStrategy sets the PromoteStrategy field's value.

func (ModifyNamespaceInput) String

func (s ModifyNamespaceInput) String() string

String returns the string representation

func (*ModifyNamespaceInput) Validate

func (s *ModifyNamespaceInput) Validate() error

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

type ModifyNamespaceOutput

type ModifyNamespaceOutput struct {
	Metadata *response.ResponseMetadata
	// contains filtered or unexported fields
}

func (ModifyNamespaceOutput) GoString

func (s ModifyNamespaceOutput) GoString() string

GoString returns the string representation

func (ModifyNamespaceOutput) String

func (s ModifyNamespaceOutput) String() string

String returns the string representation

type NamespaceForDescribeNamespacesOutput

type NamespaceForDescribeNamespacesOutput struct {
	AccessType *string `type:"string" json:",omitempty"`

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

	DiskEvictStrategy *string `type:"string" json:",omitempty" enum:"EnumOfDiskEvictStrategyForDescribeNamespacesOutput"`

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

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

	MemEvictStrategy *string `type:"string" json:",omitempty" enum:"EnumOfMemEvictStrategyForDescribeNamespacesOutput"`

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

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

	PromoteStrategy *string `type:"string" json:",omitempty" enum:"EnumOfPromoteStrategyForDescribeNamespacesOutput"`

	Status *string `type:"string" json:",omitempty" enum:"EnumOfStatusForDescribeNamespacesOutput"`

	StorageType *string `type:"string" json:",omitempty" enum:"EnumOfStorageTypeForDescribeNamespacesOutput"`

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

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

func (NamespaceForDescribeNamespacesOutput) GoString

GoString returns the string representation

func (*NamespaceForDescribeNamespacesOutput) SetAccessType

SetAccessType sets the AccessType field's value.

func (*NamespaceForDescribeNamespacesOutput) SetCreatedAt

SetCreatedAt sets the CreatedAt field's value.

func (*NamespaceForDescribeNamespacesOutput) SetDiskEvictStrategy

SetDiskEvictStrategy sets the DiskEvictStrategy field's value.

func (*NamespaceForDescribeNamespacesOutput) SetDiskTTLSeconds

SetDiskTTLSeconds sets the DiskTTLSeconds field's value.

func (*NamespaceForDescribeNamespacesOutput) SetInstanceId

SetInstanceId sets the InstanceId field's value.

func (*NamespaceForDescribeNamespacesOutput) SetMemEvictStrategy

SetMemEvictStrategy sets the MemEvictStrategy field's value.

func (*NamespaceForDescribeNamespacesOutput) SetMemTTLSeconds

SetMemTTLSeconds sets the MemTTLSeconds field's value.

func (*NamespaceForDescribeNamespacesOutput) SetNamespaceName

SetNamespaceName sets the NamespaceName field's value.

func (*NamespaceForDescribeNamespacesOutput) SetPromoteStrategy

SetPromoteStrategy sets the PromoteStrategy field's value.

func (*NamespaceForDescribeNamespacesOutput) SetStatus

SetStatus sets the Status field's value.

func (*NamespaceForDescribeNamespacesOutput) SetStorageType

SetStorageType sets the StorageType field's value.

func (*NamespaceForDescribeNamespacesOutput) SetUnderStorageInstanceId

SetUnderStorageInstanceId sets the UnderStorageInstanceId field's value.

func (*NamespaceForDescribeNamespacesOutput) SetUnderStorageType

SetUnderStorageType sets the UnderStorageType field's value.

func (NamespaceForDescribeNamespacesOutput) String

String returns the string representation

Jump to

Keyboard shortcuts

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