acep

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package acepiface provides an interface to enable mocking the ACEP 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 (
	ServiceName = "acep"      // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "acep"      // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type ACEP

type ACEP struct {
	*client.Client
}

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

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

New create int can support ssl or region locate set

func (*ACEP) ListPod

func (c *ACEP) ListPod(input *ListPodInput) (*ListPodOutput, error)

ListPod API operation for ACEP.

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

func (*ACEP) ListPodCommon

func (c *ACEP) ListPodCommon(input *map[string]interface{}) (*map[string]interface{}, error)

ListPodCommon API operation for ACEP.

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

func (*ACEP) ListPodCommonRequest

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

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

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

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

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

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

func (*ACEP) ListPodCommonWithContext

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

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

See ListPodCommon 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 (*ACEP) ListPodRequest

func (c *ACEP) ListPodRequest(input *ListPodInput) (req *request.Request, output *ListPodOutput)

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

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

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

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

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

func (*ACEP) ListPodWithContext

func (c *ACEP) ListPodWithContext(ctx volcengine.Context, input *ListPodInput, opts ...request.Option) (*ListPodOutput, error)

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

See ListPod 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 ACEPAPI

type ACEPAPI interface {
	ListPodCommon(*map[string]interface{}) (*map[string]interface{}, error)
	ListPodCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	ListPodCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	ListPod(*ListPodInput) (*ListPodOutput, error)
	ListPodWithContext(volcengine.Context, *ListPodInput, ...request.Option) (*ListPodOutput, error)
	ListPodRequest(*ListPodInput) (*request.Request, *ListPodOutput)
}

ACEPAPI provides an interface to enable mocking the acep.ACEP service client's API operation,

// volcengine sdk func uses an SDK service client to make a request to
// ACEP.
func myFunc(svc ACEPAPI) bool {
    // Make svc.ListPod request
}

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

    myFunc(svc)
}

type ConfigurationForListPodOutput

type ConfigurationForListPodOutput struct {
	ConfigurationCode *string `type:"string" json:",omitempty"`

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

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

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

func (ConfigurationForListPodOutput) GoString

GoString returns the string representation

func (*ConfigurationForListPodOutput) SetConfigurationCode

SetConfigurationCode sets the ConfigurationCode field's value.

func (*ConfigurationForListPodOutput) SetConfigurationName

SetConfigurationName sets the ConfigurationName field's value.

func (*ConfigurationForListPodOutput) SetConfigurationType

SetConfigurationType sets the ConfigurationType field's value.

func (*ConfigurationForListPodOutput) SetServerTypeCode

SetServerTypeCode sets the ServerTypeCode field's value.

func (ConfigurationForListPodOutput) String

String returns the string representation

type DcInfoForListPodOutput

type DcInfoForListPodOutput struct {
	Dc *string `type:"string" json:",omitempty"`

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

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

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

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

func (DcInfoForListPodOutput) GoString

func (s DcInfoForListPodOutput) GoString() string

GoString returns the string representation

func (*DcInfoForListPodOutput) SetDc

SetDc sets the Dc field's value.

func (*DcInfoForListPodOutput) SetDcName

SetDcName sets the DcName field's value.

func (*DcInfoForListPodOutput) SetIsp

SetIsp sets the Isp field's value.

func (*DcInfoForListPodOutput) SetRegion

SetRegion sets the Region field's value.

func (*DcInfoForListPodOutput) SetZoneId

SetZoneId sets the ZoneId field's value.

func (DcInfoForListPodOutput) String

func (s DcInfoForListPodOutput) String() string

String returns the string representation

type ListPodInput

type ListPodInput struct {
	AuthorityStatus *int32 `type:"int32" json:",omitempty"`

	ConfigurationCodeList []*string `type:"list" json:",omitempty"`

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

	DcList []*string `type:"list" json:",omitempty"`

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

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

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

	OnlineList []*int32 `type:"list" json:",omitempty"`

	PodIdList []*string `type:"list" json:",omitempty"`

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

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

	RegionList []*string `type:"list" json:",omitempty"`

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

	StreamStatusList []*int32 `type:"list" json:",omitempty"`

	TagIdList []*string `type:"list" json:",omitempty"`

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

func (ListPodInput) GoString

func (s ListPodInput) GoString() string

GoString returns the string representation

func (*ListPodInput) SetAuthorityStatus

func (s *ListPodInput) SetAuthorityStatus(v int32) *ListPodInput

SetAuthorityStatus sets the AuthorityStatus field's value.

func (*ListPodInput) SetConfigurationCodeList

func (s *ListPodInput) SetConfigurationCodeList(v []*string) *ListPodInput

SetConfigurationCodeList sets the ConfigurationCodeList field's value.

func (*ListPodInput) SetDNSId

func (s *ListPodInput) SetDNSId(v string) *ListPodInput

SetDNSId sets the DNSId field's value.

func (*ListPodInput) SetDcList

func (s *ListPodInput) SetDcList(v []*string) *ListPodInput

SetDcList sets the DcList field's value.

func (*ListPodInput) SetHostId

func (s *ListPodInput) SetHostId(v string) *ListPodInput

SetHostId sets the HostId field's value.

func (*ListPodInput) SetMaxResults

func (s *ListPodInput) SetMaxResults(v int32) *ListPodInput

SetMaxResults sets the MaxResults field's value.

func (*ListPodInput) SetNextToken

func (s *ListPodInput) SetNextToken(v string) *ListPodInput

SetNextToken sets the NextToken field's value.

func (*ListPodInput) SetOnlineList

func (s *ListPodInput) SetOnlineList(v []*int32) *ListPodInput

SetOnlineList sets the OnlineList field's value.

func (*ListPodInput) SetPodIdList

func (s *ListPodInput) SetPodIdList(v []*string) *ListPodInput

SetPodIdList sets the PodIdList field's value.

func (*ListPodInput) SetPodName

func (s *ListPodInput) SetPodName(v string) *ListPodInput

SetPodName sets the PodName field's value.

func (*ListPodInput) SetProductId

func (s *ListPodInput) SetProductId(v string) *ListPodInput

SetProductId sets the ProductId field's value.

func (*ListPodInput) SetRegionList

func (s *ListPodInput) SetRegionList(v []*string) *ListPodInput

SetRegionList sets the RegionList field's value.

func (*ListPodInput) SetServerTypeCode

func (s *ListPodInput) SetServerTypeCode(v string) *ListPodInput

SetServerTypeCode sets the ServerTypeCode field's value.

func (*ListPodInput) SetStreamStatusList

func (s *ListPodInput) SetStreamStatusList(v []*int32) *ListPodInput

SetStreamStatusList sets the StreamStatusList field's value.

func (*ListPodInput) SetTagIdList

func (s *ListPodInput) SetTagIdList(v []*string) *ListPodInput

SetTagIdList sets the TagIdList field's value.

func (*ListPodInput) SetZoneId

func (s *ListPodInput) SetZoneId(v string) *ListPodInput

SetZoneId sets the ZoneId field's value.

func (ListPodInput) String

func (s ListPodInput) String() string

String returns the string representation

func (*ListPodInput) Validate

func (s *ListPodInput) Validate() error

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

type ListPodOutput

type ListPodOutput struct {
	Metadata *response.ResponseMetadata

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

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

func (ListPodOutput) GoString

func (s ListPodOutput) GoString() string

GoString returns the string representation

func (*ListPodOutput) SetNextToken

func (s *ListPodOutput) SetNextToken(v string) *ListPodOutput

SetNextToken sets the NextToken field's value.

func (*ListPodOutput) SetRow

SetRow sets the Row field's value.

func (ListPodOutput) String

func (s ListPodOutput) String() string

String returns the string representation

type PortMappingRuleListForListPodOutput

type PortMappingRuleListForListPodOutput struct {
	PortMappingRuleId *string `type:"string" json:",omitempty"`

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

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

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

	PublicPortInfoList []*PublicPortInfoListForListPodOutput `type:"list" json:",omitempty"`

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

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

func (PortMappingRuleListForListPodOutput) GoString

GoString returns the string representation

func (*PortMappingRuleListForListPodOutput) SetPortMappingRuleId

SetPortMappingRuleId sets the PortMappingRuleId field's value.

func (*PortMappingRuleListForListPodOutput) SetProtocol

SetProtocol sets the Protocol field's value.

func (*PortMappingRuleListForListPodOutput) SetPublicIp

SetPublicIp sets the PublicIp field's value.

func (*PortMappingRuleListForListPodOutput) SetPublicPort

SetPublicPort sets the PublicPort field's value.

func (*PortMappingRuleListForListPodOutput) SetPublicPortInfoList

SetPublicPortInfoList sets the PublicPortInfoList field's value.

func (*PortMappingRuleListForListPodOutput) SetSourcePort

SetSourcePort sets the SourcePort field's value.

func (*PortMappingRuleListForListPodOutput) SetStatus

SetStatus sets the Status field's value.

func (PortMappingRuleListForListPodOutput) String

String returns the string representation

type PublicPortInfoListForListPodOutput

type PublicPortInfoListForListPodOutput struct {
	Isp *int32 `type:"int32" json:",omitempty"`

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

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

func (PublicPortInfoListForListPodOutput) GoString

GoString returns the string representation

func (*PublicPortInfoListForListPodOutput) SetIsp

SetIsp sets the Isp field's value.

func (*PublicPortInfoListForListPodOutput) SetPublicIp

SetPublicIp sets the PublicIp field's value.

func (*PublicPortInfoListForListPodOutput) SetPublicPort

SetPublicPort sets the PublicPort field's value.

func (PublicPortInfoListForListPodOutput) String

String returns the string representation

type RowForListPodOutput

type RowForListPodOutput struct {
	Adb *string `type:"string" json:",omitempty"`

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

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

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

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

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

	Configuration *ConfigurationForListPodOutput `type:"structure" json:",omitempty"`

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

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

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

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

	DcInfo *DcInfoForListPodOutput `type:"structure" json:",omitempty"`

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

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

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

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

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

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

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

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

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

	PortMappingRuleList []*PortMappingRuleListForListPodOutput `type:"list" json:",omitempty"`

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

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

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

	Tag *TagForListPodOutput `type:"structure" json:",omitempty"`

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

func (RowForListPodOutput) GoString

func (s RowForListPodOutput) GoString() string

GoString returns the string representation

func (*RowForListPodOutput) SetAdb

SetAdb sets the Adb field's value.

func (*RowForListPodOutput) SetAdbExpireTime

func (s *RowForListPodOutput) SetAdbExpireTime(v int64) *RowForListPodOutput

SetAdbExpireTime sets the AdbExpireTime field's value.

func (*RowForListPodOutput) SetAdbStatus

func (s *RowForListPodOutput) SetAdbStatus(v int32) *RowForListPodOutput

SetAdbStatus sets the AdbStatus field's value.

func (*RowForListPodOutput) SetAospVersion

func (s *RowForListPodOutput) SetAospVersion(v string) *RowForListPodOutput

SetAospVersion sets the AospVersion field's value.

func (*RowForListPodOutput) SetAuthorityExpireTime

func (s *RowForListPodOutput) SetAuthorityExpireTime(v int64) *RowForListPodOutput

SetAuthorityExpireTime sets the AuthorityExpireTime field's value.

func (*RowForListPodOutput) SetAuthorityStatus

func (s *RowForListPodOutput) SetAuthorityStatus(v int32) *RowForListPodOutput

SetAuthorityStatus sets the AuthorityStatus field's value.

func (*RowForListPodOutput) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*RowForListPodOutput) SetCreateAt

func (s *RowForListPodOutput) SetCreateAt(v int64) *RowForListPodOutput

SetCreateAt sets the CreateAt field's value.

func (*RowForListPodOutput) SetDNSId

SetDNSId sets the DNSId field's value.

func (*RowForListPodOutput) SetDataSize

func (s *RowForListPodOutput) SetDataSize(v string) *RowForListPodOutput

SetDataSize sets the DataSize field's value.

func (*RowForListPodOutput) SetDataSizeUsed

func (s *RowForListPodOutput) SetDataSizeUsed(v string) *RowForListPodOutput

SetDataSizeUsed sets the DataSizeUsed field's value.

func (*RowForListPodOutput) SetDcInfo

SetDcInfo sets the DcInfo field's value.

func (*RowForListPodOutput) SetDisplayLayoutId

func (s *RowForListPodOutput) SetDisplayLayoutId(v string) *RowForListPodOutput

SetDisplayLayoutId sets the DisplayLayoutId field's value.

func (*RowForListPodOutput) SetDownBandwidthLimit

func (s *RowForListPodOutput) SetDownBandwidthLimit(v int32) *RowForListPodOutput

SetDownBandwidthLimit sets the DownBandwidthLimit field's value.

func (*RowForListPodOutput) SetHostId

SetHostId sets the HostId field's value.

func (*RowForListPodOutput) SetImageId

SetImageId sets the ImageId field's value.

func (*RowForListPodOutput) SetImageName

func (s *RowForListPodOutput) SetImageName(v string) *RowForListPodOutput

SetImageName sets the ImageName field's value.

func (*RowForListPodOutput) SetIntranetIP

func (s *RowForListPodOutput) SetIntranetIP(v string) *RowForListPodOutput

SetIntranetIP sets the IntranetIP field's value.

func (*RowForListPodOutput) SetOnline

SetOnline sets the Online field's value.

func (*RowForListPodOutput) SetPodId

SetPodId sets the PodId field's value.

func (*RowForListPodOutput) SetPodName

SetPodName sets the PodName field's value.

func (*RowForListPodOutput) SetPortMappingRuleList

SetPortMappingRuleList sets the PortMappingRuleList field's value.

func (*RowForListPodOutput) SetProductId

func (s *RowForListPodOutput) SetProductId(v string) *RowForListPodOutput

SetProductId sets the ProductId field's value.

func (*RowForListPodOutput) SetServerTypeCode

func (s *RowForListPodOutput) SetServerTypeCode(v string) *RowForListPodOutput

SetServerTypeCode sets the ServerTypeCode field's value.

func (*RowForListPodOutput) SetStreamStatus

func (s *RowForListPodOutput) SetStreamStatus(v int32) *RowForListPodOutput

SetStreamStatus sets the StreamStatus field's value.

func (*RowForListPodOutput) SetTag

SetTag sets the Tag field's value.

func (*RowForListPodOutput) SetUpBandwidthLimit

func (s *RowForListPodOutput) SetUpBandwidthLimit(v int32) *RowForListPodOutput

SetUpBandwidthLimit sets the UpBandwidthLimit field's value.

func (RowForListPodOutput) String

func (s RowForListPodOutput) String() string

String returns the string representation

type TagForListPodOutput

type TagForListPodOutput struct {
	PodNum *int64 `type:"int64" json:",omitempty"`

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

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

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

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

func (TagForListPodOutput) GoString

func (s TagForListPodOutput) GoString() string

GoString returns the string representation

func (*TagForListPodOutput) SetPodNum

SetPodNum sets the PodNum field's value.

func (*TagForListPodOutput) SetProductId

func (s *TagForListPodOutput) SetProductId(v string) *TagForListPodOutput

SetProductId sets the ProductId field's value.

func (*TagForListPodOutput) SetTagDesc

SetTagDesc sets the TagDesc field's value.

func (*TagForListPodOutput) SetTagId

SetTagId sets the TagId field's value.

func (*TagForListPodOutput) SetTagName

SetTagName sets the TagName field's value.

func (TagForListPodOutput) String

func (s TagForListPodOutput) String() string

String returns the string representation

Jump to

Keyboard shortcuts

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