Documentation
¶
Overview ¶
Package vefaasdeviface provides an interface to enable mocking the VEFAAS_DEV 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
- type CompileResultForRunCodeOutput
- func (s CompileResultForRunCodeOutput) GoString() string
- func (s *CompileResultForRunCodeOutput) SetCpuTime(v string) *CompileResultForRunCodeOutput
- func (s *CompileResultForRunCodeOutput) SetExecutionTime(v string) *CompileResultForRunCodeOutput
- func (s *CompileResultForRunCodeOutput) SetStatus(v string) *CompileResultForRunCodeOutput
- func (s *CompileResultForRunCodeOutput) SetStderr(v string) *CompileResultForRunCodeOutput
- func (s *CompileResultForRunCodeOutput) SetStdout(v string) *CompileResultForRunCodeOutput
- func (s CompileResultForRunCodeOutput) String() string
- type CreateSandboxInput
- func (s CreateSandboxInput) GoString() string
- func (s *CreateSandboxInput) SetEnvs(v []*EnvForCreateSandboxInput) *CreateSandboxInput
- func (s *CreateSandboxInput) SetFunctionId(v string) *CreateSandboxInput
- func (s *CreateSandboxInput) SetMetadata(v *MetadataForCreateSandboxInput) *CreateSandboxInput
- func (s *CreateSandboxInput) SetTimeout(v int32) *CreateSandboxInput
- func (s CreateSandboxInput) String() string
- func (s *CreateSandboxInput) Validate() error
- type CreateSandboxOutput
- type EnvForCreateSandboxInput
- type ErrorForWriteFilesOutput
- type FilesContentForReadFilesOutput
- func (s FilesContentForReadFilesOutput) GoString() string
- func (s *FilesContentForReadFilesOutput) SetContent(v string) *FilesContentForReadFilesOutput
- func (s *FilesContentForReadFilesOutput) SetError(v string) *FilesContentForReadFilesOutput
- func (s *FilesContentForReadFilesOutput) SetPath(v string) *FilesContentForReadFilesOutput
- func (s *FilesContentForReadFilesOutput) SetSuccess(v bool) *FilesContentForReadFilesOutput
- func (s FilesContentForReadFilesOutput) String() string
- type FilesForRunCodeInput
- type FilesForRunCodeOutput
- type KillSandboxInput
- type KillSandboxOutput
- type ListSandboxesInput
- func (s ListSandboxesInput) GoString() string
- func (s *ListSandboxesInput) SetFunctionId(v string) *ListSandboxesInput
- func (s *ListSandboxesInput) SetMetadata(v *MetadataForListSandboxesInput) *ListSandboxesInput
- func (s *ListSandboxesInput) SetPageNumber(v int32) *ListSandboxesInput
- func (s *ListSandboxesInput) SetPageSize(v int32) *ListSandboxesInput
- func (s *ListSandboxesInput) SetSandboxId(v string) *ListSandboxesInput
- func (s ListSandboxesInput) String() string
- func (s *ListSandboxesInput) Validate() error
- type ListSandboxesOutput
- type MetadataForCreateSandboxInput
- type MetadataForListSandboxesInput
- type MetadataForListSandboxesOutput
- type ReadFilesInput
- func (s ReadFilesInput) GoString() string
- func (s *ReadFilesInput) SetFilesPath(v []*string) *ReadFilesInput
- func (s *ReadFilesInput) SetFunctionId(v string) *ReadFilesInput
- func (s *ReadFilesInput) SetSandboxId(v string) *ReadFilesInput
- func (s ReadFilesInput) String() string
- func (s *ReadFilesInput) Validate() error
- type ReadFilesOutput
- type RunCodeInput
- func (s RunCodeInput) GoString() string
- func (s *RunCodeInput) SetCode(v string) *RunCodeInput
- func (s *RunCodeInput) SetData(v string) *RunCodeInput
- func (s *RunCodeInput) SetFetchFiles(v []*string) *RunCodeInput
- func (s *RunCodeInput) SetFiles(v *FilesForRunCodeInput) *RunCodeInput
- func (s *RunCodeInput) SetFunctionId(v string) *RunCodeInput
- func (s *RunCodeInput) SetLanguage(v string) *RunCodeInput
- func (s *RunCodeInput) SetSandboxId(v string) *RunCodeInput
- func (s RunCodeInput) String() string
- func (s *RunCodeInput) Validate() error
- type RunCodeOutput
- func (s RunCodeOutput) GoString() string
- func (s *RunCodeOutput) SetCompileResult(v *CompileResultForRunCodeOutput) *RunCodeOutput
- func (s *RunCodeOutput) SetExecutorPodName(v string) *RunCodeOutput
- func (s *RunCodeOutput) SetFiles(v *FilesForRunCodeOutput) *RunCodeOutput
- func (s *RunCodeOutput) SetResult(v string) *RunCodeOutput
- func (s *RunCodeOutput) SetRunResult(v *RunResultForRunCodeOutput) *RunCodeOutput
- func (s *RunCodeOutput) SetStatus(v string) *RunCodeOutput
- func (s RunCodeOutput) String() string
- type RunResultForRunCodeOutput
- func (s RunResultForRunCodeOutput) GoString() string
- func (s *RunResultForRunCodeOutput) SetCpuTime(v string) *RunResultForRunCodeOutput
- func (s *RunResultForRunCodeOutput) SetExecutionTime(v string) *RunResultForRunCodeOutput
- func (s *RunResultForRunCodeOutput) SetStatus(v string) *RunResultForRunCodeOutput
- func (s *RunResultForRunCodeOutput) SetStderr(v string) *RunResultForRunCodeOutput
- func (s *RunResultForRunCodeOutput) SetStdout(v string) *RunResultForRunCodeOutput
- func (s RunResultForRunCodeOutput) String() string
- type SandboxForListSandboxesOutput
- func (s SandboxForListSandboxesOutput) GoString() string
- func (s *SandboxForListSandboxesOutput) SetAvailabilityZone(v string) *SandboxForListSandboxesOutput
- func (s *SandboxForListSandboxesOutput) SetCreatedAt(v string) *SandboxForListSandboxesOutput
- func (s *SandboxForListSandboxesOutput) SetExpireAt(v string) *SandboxForListSandboxesOutput
- func (s *SandboxForListSandboxesOutput) SetFunctionId(v string) *SandboxForListSandboxesOutput
- func (s *SandboxForListSandboxesOutput) SetId(v string) *SandboxForListSandboxesOutput
- func (s *SandboxForListSandboxesOutput) SetInstanceType(v string) *SandboxForListSandboxesOutput
- func (s *SandboxForListSandboxesOutput) SetMetadata(v *MetadataForListSandboxesOutput) *SandboxForListSandboxesOutput
- func (s *SandboxForListSandboxesOutput) SetRevisionNumber(v int32) *SandboxForListSandboxesOutput
- func (s *SandboxForListSandboxesOutput) SetStatus(v string) *SandboxForListSandboxesOutput
- func (s SandboxForListSandboxesOutput) String() string
- type SetSandboxTimeoutInput
- func (s SetSandboxTimeoutInput) GoString() string
- func (s *SetSandboxTimeoutInput) SetFunctionId(v string) *SetSandboxTimeoutInput
- func (s *SetSandboxTimeoutInput) SetSandboxId(v string) *SetSandboxTimeoutInput
- func (s *SetSandboxTimeoutInput) SetTimeout(v int32) *SetSandboxTimeoutInput
- func (s SetSandboxTimeoutInput) String() string
- func (s *SetSandboxTimeoutInput) Validate() error
- type SetSandboxTimeoutOutput
- func (s SetSandboxTimeoutOutput) GoString() string
- func (s *SetSandboxTimeoutOutput) SetExpireAt(v string) *SetSandboxTimeoutOutput
- func (s *SetSandboxTimeoutOutput) SetFunctionId(v string) *SetSandboxTimeoutOutput
- func (s *SetSandboxTimeoutOutput) SetSandboxId(v string) *SetSandboxTimeoutOutput
- func (s SetSandboxTimeoutOutput) String() string
- type TransitionSandboxInput
- func (s TransitionSandboxInput) GoString() string
- func (s *TransitionSandboxInput) SetAction(v string) *TransitionSandboxInput
- func (s *TransitionSandboxInput) SetFunctionId(v string) *TransitionSandboxInput
- func (s *TransitionSandboxInput) SetSandboxId(v string) *TransitionSandboxInput
- func (s *TransitionSandboxInput) SetStatus(v string) *TransitionSandboxInput
- func (s TransitionSandboxInput) String() string
- func (s *TransitionSandboxInput) Validate() error
- type TransitionSandboxOutput
- func (s TransitionSandboxOutput) GoString() string
- func (s *TransitionSandboxOutput) SetFunctionId(v string) *TransitionSandboxOutput
- func (s *TransitionSandboxOutput) SetSandboxId(v string) *TransitionSandboxOutput
- func (s *TransitionSandboxOutput) SetStatus(v string) *TransitionSandboxOutput
- func (s TransitionSandboxOutput) String() string
- type VEFAASDEV
- func (c *VEFAASDEV) CreateSandbox(input *CreateSandboxInput) (*CreateSandboxOutput, error)
- func (c *VEFAASDEV) CreateSandboxCommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *VEFAASDEV) CreateSandboxCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *VEFAASDEV) CreateSandboxCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *VEFAASDEV) CreateSandboxRequest(input *CreateSandboxInput) (req *request.Request, output *CreateSandboxOutput)
- func (c *VEFAASDEV) CreateSandboxWithContext(ctx volcengine.Context, input *CreateSandboxInput, opts ...request.Option) (*CreateSandboxOutput, error)
- func (c *VEFAASDEV) KillSandbox(input *KillSandboxInput) (*KillSandboxOutput, error)
- func (c *VEFAASDEV) KillSandboxCommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *VEFAASDEV) KillSandboxCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *VEFAASDEV) KillSandboxCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *VEFAASDEV) KillSandboxRequest(input *KillSandboxInput) (req *request.Request, output *KillSandboxOutput)
- func (c *VEFAASDEV) KillSandboxWithContext(ctx volcengine.Context, input *KillSandboxInput, opts ...request.Option) (*KillSandboxOutput, error)
- func (c *VEFAASDEV) ListSandboxes(input *ListSandboxesInput) (*ListSandboxesOutput, error)
- func (c *VEFAASDEV) ListSandboxesCommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *VEFAASDEV) ListSandboxesCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *VEFAASDEV) ListSandboxesCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *VEFAASDEV) ListSandboxesRequest(input *ListSandboxesInput) (req *request.Request, output *ListSandboxesOutput)
- func (c *VEFAASDEV) ListSandboxesWithContext(ctx volcengine.Context, input *ListSandboxesInput, opts ...request.Option) (*ListSandboxesOutput, error)
- func (c *VEFAASDEV) ReadFiles(input *ReadFilesInput) (*ReadFilesOutput, error)
- func (c *VEFAASDEV) ReadFilesCommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *VEFAASDEV) ReadFilesCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *VEFAASDEV) ReadFilesCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *VEFAASDEV) ReadFilesRequest(input *ReadFilesInput) (req *request.Request, output *ReadFilesOutput)
- func (c *VEFAASDEV) ReadFilesWithContext(ctx volcengine.Context, input *ReadFilesInput, opts ...request.Option) (*ReadFilesOutput, error)
- func (c *VEFAASDEV) RunCode(input *RunCodeInput) (*RunCodeOutput, error)
- func (c *VEFAASDEV) RunCodeCommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *VEFAASDEV) RunCodeCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *VEFAASDEV) RunCodeCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *VEFAASDEV) RunCodeRequest(input *RunCodeInput) (req *request.Request, output *RunCodeOutput)
- func (c *VEFAASDEV) RunCodeWithContext(ctx volcengine.Context, input *RunCodeInput, opts ...request.Option) (*RunCodeOutput, error)
- func (c *VEFAASDEV) SetSandboxTimeout(input *SetSandboxTimeoutInput) (*SetSandboxTimeoutOutput, error)
- func (c *VEFAASDEV) SetSandboxTimeoutCommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *VEFAASDEV) SetSandboxTimeoutCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *VEFAASDEV) SetSandboxTimeoutCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *VEFAASDEV) SetSandboxTimeoutRequest(input *SetSandboxTimeoutInput) (req *request.Request, output *SetSandboxTimeoutOutput)
- func (c *VEFAASDEV) SetSandboxTimeoutWithContext(ctx volcengine.Context, input *SetSandboxTimeoutInput, opts ...request.Option) (*SetSandboxTimeoutOutput, error)
- func (c *VEFAASDEV) TransitionSandbox(input *TransitionSandboxInput) (*TransitionSandboxOutput, error)
- func (c *VEFAASDEV) TransitionSandboxCommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *VEFAASDEV) TransitionSandboxCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *VEFAASDEV) TransitionSandboxCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *VEFAASDEV) TransitionSandboxRequest(input *TransitionSandboxInput) (req *request.Request, output *TransitionSandboxOutput)
- func (c *VEFAASDEV) TransitionSandboxWithContext(ctx volcengine.Context, input *TransitionSandboxInput, opts ...request.Option) (*TransitionSandboxOutput, error)
- func (c *VEFAASDEV) WriteFiles(input *WriteFilesInput) (*WriteFilesOutput, error)
- func (c *VEFAASDEV) WriteFilesCommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *VEFAASDEV) WriteFilesCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *VEFAASDEV) WriteFilesCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *VEFAASDEV) WriteFilesRequest(input *WriteFilesInput) (req *request.Request, output *WriteFilesOutput)
- func (c *VEFAASDEV) WriteFilesWithContext(ctx volcengine.Context, input *WriteFilesInput, opts ...request.Option) (*WriteFilesOutput, error)
- type VEFAASDEVAPI
- type WriteFileForWriteFilesInput
- type WriteFilesInput
- func (s WriteFilesInput) GoString() string
- func (s *WriteFilesInput) SetFunctionId(v string) *WriteFilesInput
- func (s *WriteFilesInput) SetSandboxId(v string) *WriteFilesInput
- func (s *WriteFilesInput) SetWriteFiles(v []*WriteFileForWriteFilesInput) *WriteFilesInput
- func (s WriteFilesInput) String() string
- func (s *WriteFilesInput) Validate() error
- type WriteFilesOutput
Constants ¶
const ( ServiceName = "vefaas_dev" // Name of service. EndpointsID = ServiceName // ID to lookup a service endpoint with. ServiceID = "vefaas_dev" // ServiceID is a unique identifer of a specific service. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompileResultForRunCodeOutput ¶
type CompileResultForRunCodeOutput struct {
CpuTime *string `type:"string" json:",omitempty"`
ExecutionTime *string `type:"string" json:",omitempty"`
Status *string `type:"string" json:",omitempty"`
Stderr *string `type:"string" json:",omitempty"`
Stdout *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (CompileResultForRunCodeOutput) GoString ¶
func (s CompileResultForRunCodeOutput) GoString() string
GoString returns the string representation
func (*CompileResultForRunCodeOutput) SetCpuTime ¶
func (s *CompileResultForRunCodeOutput) SetCpuTime(v string) *CompileResultForRunCodeOutput
SetCpuTime sets the CpuTime field's value.
func (*CompileResultForRunCodeOutput) SetExecutionTime ¶
func (s *CompileResultForRunCodeOutput) SetExecutionTime(v string) *CompileResultForRunCodeOutput
SetExecutionTime sets the ExecutionTime field's value.
func (*CompileResultForRunCodeOutput) SetStatus ¶
func (s *CompileResultForRunCodeOutput) SetStatus(v string) *CompileResultForRunCodeOutput
SetStatus sets the Status field's value.
func (*CompileResultForRunCodeOutput) SetStderr ¶
func (s *CompileResultForRunCodeOutput) SetStderr(v string) *CompileResultForRunCodeOutput
SetStderr sets the Stderr field's value.
func (*CompileResultForRunCodeOutput) SetStdout ¶
func (s *CompileResultForRunCodeOutput) SetStdout(v string) *CompileResultForRunCodeOutput
SetStdout sets the Stdout field's value.
func (CompileResultForRunCodeOutput) String ¶
func (s CompileResultForRunCodeOutput) String() string
String returns the string representation
type CreateSandboxInput ¶
type CreateSandboxInput struct {
Envs []*EnvForCreateSandboxInput `type:"list" json:",omitempty"`
// FunctionId is a required field
FunctionId *string `type:"string" json:",omitempty" required:"true"`
Metadata *MetadataForCreateSandboxInput `type:"structure" json:",omitempty"`
Timeout *int32 `type:"int32" json:",omitempty"`
// contains filtered or unexported fields
}
func (CreateSandboxInput) GoString ¶
func (s CreateSandboxInput) GoString() string
GoString returns the string representation
func (*CreateSandboxInput) SetEnvs ¶
func (s *CreateSandboxInput) SetEnvs(v []*EnvForCreateSandboxInput) *CreateSandboxInput
SetEnvs sets the Envs field's value.
func (*CreateSandboxInput) SetFunctionId ¶
func (s *CreateSandboxInput) SetFunctionId(v string) *CreateSandboxInput
SetFunctionId sets the FunctionId field's value.
func (*CreateSandboxInput) SetMetadata ¶
func (s *CreateSandboxInput) SetMetadata(v *MetadataForCreateSandboxInput) *CreateSandboxInput
SetMetadata sets the Metadata field's value.
func (*CreateSandboxInput) SetTimeout ¶
func (s *CreateSandboxInput) SetTimeout(v int32) *CreateSandboxInput
SetTimeout sets the Timeout field's value.
func (CreateSandboxInput) String ¶
func (s CreateSandboxInput) String() string
String returns the string representation
func (*CreateSandboxInput) Validate ¶
func (s *CreateSandboxInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateSandboxOutput ¶
type CreateSandboxOutput struct {
Metadata *response.ResponseMetadata
SandboxId *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (CreateSandboxOutput) GoString ¶
func (s CreateSandboxOutput) GoString() string
GoString returns the string representation
func (*CreateSandboxOutput) SetSandboxId ¶
func (s *CreateSandboxOutput) SetSandboxId(v string) *CreateSandboxOutput
SetSandboxId sets the SandboxId field's value.
func (CreateSandboxOutput) String ¶
func (s CreateSandboxOutput) String() string
String returns the string representation
type EnvForCreateSandboxInput ¶
type EnvForCreateSandboxInput struct {
Key *string `type:"string" json:",omitempty"`
Value *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (EnvForCreateSandboxInput) GoString ¶
func (s EnvForCreateSandboxInput) GoString() string
GoString returns the string representation
func (*EnvForCreateSandboxInput) SetKey ¶
func (s *EnvForCreateSandboxInput) SetKey(v string) *EnvForCreateSandboxInput
SetKey sets the Key field's value.
func (*EnvForCreateSandboxInput) SetValue ¶
func (s *EnvForCreateSandboxInput) SetValue(v string) *EnvForCreateSandboxInput
SetValue sets the Value field's value.
func (EnvForCreateSandboxInput) String ¶
func (s EnvForCreateSandboxInput) String() string
String returns the string representation
type ErrorForWriteFilesOutput ¶
type ErrorForWriteFilesOutput struct {
Error *string `type:"string" json:",omitempty"`
Path *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (ErrorForWriteFilesOutput) GoString ¶
func (s ErrorForWriteFilesOutput) GoString() string
GoString returns the string representation
func (*ErrorForWriteFilesOutput) SetError ¶
func (s *ErrorForWriteFilesOutput) SetError(v string) *ErrorForWriteFilesOutput
SetError sets the Error field's value.
func (*ErrorForWriteFilesOutput) SetPath ¶
func (s *ErrorForWriteFilesOutput) SetPath(v string) *ErrorForWriteFilesOutput
SetPath sets the Path field's value.
func (ErrorForWriteFilesOutput) String ¶
func (s ErrorForWriteFilesOutput) String() string
String returns the string representation
type FilesContentForReadFilesOutput ¶
type FilesContentForReadFilesOutput struct {
Content *string `type:"string" json:",omitempty"`
Error *string `type:"string" json:",omitempty"`
Path *string `type:"string" json:",omitempty"`
Success *bool `type:"boolean" json:",omitempty"`
// contains filtered or unexported fields
}
func (FilesContentForReadFilesOutput) GoString ¶
func (s FilesContentForReadFilesOutput) GoString() string
GoString returns the string representation
func (*FilesContentForReadFilesOutput) SetContent ¶
func (s *FilesContentForReadFilesOutput) SetContent(v string) *FilesContentForReadFilesOutput
SetContent sets the Content field's value.
func (*FilesContentForReadFilesOutput) SetError ¶
func (s *FilesContentForReadFilesOutput) SetError(v string) *FilesContentForReadFilesOutput
SetError sets the Error field's value.
func (*FilesContentForReadFilesOutput) SetPath ¶
func (s *FilesContentForReadFilesOutput) SetPath(v string) *FilesContentForReadFilesOutput
SetPath sets the Path field's value.
func (*FilesContentForReadFilesOutput) SetSuccess ¶
func (s *FilesContentForReadFilesOutput) SetSuccess(v bool) *FilesContentForReadFilesOutput
SetSuccess sets the Success field's value.
func (FilesContentForReadFilesOutput) String ¶
func (s FilesContentForReadFilesOutput) String() string
String returns the string representation
type FilesForRunCodeInput ¶
type FilesForRunCodeInput struct {
// contains filtered or unexported fields
}
func (FilesForRunCodeInput) GoString ¶
func (s FilesForRunCodeInput) GoString() string
GoString returns the string representation
func (FilesForRunCodeInput) String ¶
func (s FilesForRunCodeInput) String() string
String returns the string representation
type FilesForRunCodeOutput ¶
type FilesForRunCodeOutput struct {
// contains filtered or unexported fields
}
func (FilesForRunCodeOutput) GoString ¶
func (s FilesForRunCodeOutput) GoString() string
GoString returns the string representation
func (FilesForRunCodeOutput) String ¶
func (s FilesForRunCodeOutput) String() string
String returns the string representation
type KillSandboxInput ¶
type KillSandboxInput struct {
// FunctionId is a required field
FunctionId *string `type:"string" json:",omitempty" required:"true"`
// SandboxId is a required field
SandboxId *string `type:"string" json:",omitempty" required:"true"`
// contains filtered or unexported fields
}
func (KillSandboxInput) GoString ¶
func (s KillSandboxInput) GoString() string
GoString returns the string representation
func (*KillSandboxInput) SetFunctionId ¶
func (s *KillSandboxInput) SetFunctionId(v string) *KillSandboxInput
SetFunctionId sets the FunctionId field's value.
func (*KillSandboxInput) SetSandboxId ¶
func (s *KillSandboxInput) SetSandboxId(v string) *KillSandboxInput
SetSandboxId sets the SandboxId field's value.
func (KillSandboxInput) String ¶
func (s KillSandboxInput) String() string
String returns the string representation
func (*KillSandboxInput) Validate ¶
func (s *KillSandboxInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type KillSandboxOutput ¶
type KillSandboxOutput struct {
Metadata *response.ResponseMetadata
// contains filtered or unexported fields
}
func (KillSandboxOutput) GoString ¶
func (s KillSandboxOutput) GoString() string
GoString returns the string representation
func (KillSandboxOutput) String ¶
func (s KillSandboxOutput) String() string
String returns the string representation
type ListSandboxesInput ¶
type ListSandboxesInput struct {
// FunctionId is a required field
FunctionId *string `type:"string" json:",omitempty" required:"true"`
Metadata *MetadataForListSandboxesInput `type:"structure" json:",omitempty"`
PageNumber *int32 `type:"int32" json:",omitempty"`
PageSize *int32 `type:"int32" json:",omitempty"`
SandboxId *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (ListSandboxesInput) GoString ¶
func (s ListSandboxesInput) GoString() string
GoString returns the string representation
func (*ListSandboxesInput) SetFunctionId ¶
func (s *ListSandboxesInput) SetFunctionId(v string) *ListSandboxesInput
SetFunctionId sets the FunctionId field's value.
func (*ListSandboxesInput) SetMetadata ¶
func (s *ListSandboxesInput) SetMetadata(v *MetadataForListSandboxesInput) *ListSandboxesInput
SetMetadata sets the Metadata field's value.
func (*ListSandboxesInput) SetPageNumber ¶
func (s *ListSandboxesInput) SetPageNumber(v int32) *ListSandboxesInput
SetPageNumber sets the PageNumber field's value.
func (*ListSandboxesInput) SetPageSize ¶
func (s *ListSandboxesInput) SetPageSize(v int32) *ListSandboxesInput
SetPageSize sets the PageSize field's value.
func (*ListSandboxesInput) SetSandboxId ¶
func (s *ListSandboxesInput) SetSandboxId(v string) *ListSandboxesInput
SetSandboxId sets the SandboxId field's value.
func (ListSandboxesInput) String ¶
func (s ListSandboxesInput) String() string
String returns the string representation
func (*ListSandboxesInput) Validate ¶
func (s *ListSandboxesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListSandboxesOutput ¶
type ListSandboxesOutput struct {
Metadata *response.ResponseMetadata
Sandboxes []*SandboxForListSandboxesOutput `type:"list" json:",omitempty"`
Total *int32 `type:"int32" json:",omitempty"`
// contains filtered or unexported fields
}
func (ListSandboxesOutput) GoString ¶
func (s ListSandboxesOutput) GoString() string
GoString returns the string representation
func (*ListSandboxesOutput) SetSandboxes ¶
func (s *ListSandboxesOutput) SetSandboxes(v []*SandboxForListSandboxesOutput) *ListSandboxesOutput
SetSandboxes sets the Sandboxes field's value.
func (*ListSandboxesOutput) SetTotal ¶
func (s *ListSandboxesOutput) SetTotal(v int32) *ListSandboxesOutput
SetTotal sets the Total field's value.
func (ListSandboxesOutput) String ¶
func (s ListSandboxesOutput) String() string
String returns the string representation
type MetadataForCreateSandboxInput ¶
type MetadataForCreateSandboxInput struct {
// contains filtered or unexported fields
}
func (MetadataForCreateSandboxInput) GoString ¶
func (s MetadataForCreateSandboxInput) GoString() string
GoString returns the string representation
func (MetadataForCreateSandboxInput) String ¶
func (s MetadataForCreateSandboxInput) String() string
String returns the string representation
type MetadataForListSandboxesInput ¶
type MetadataForListSandboxesInput struct {
// contains filtered or unexported fields
}
func (MetadataForListSandboxesInput) GoString ¶
func (s MetadataForListSandboxesInput) GoString() string
GoString returns the string representation
func (MetadataForListSandboxesInput) String ¶
func (s MetadataForListSandboxesInput) String() string
String returns the string representation
type MetadataForListSandboxesOutput ¶
type MetadataForListSandboxesOutput struct {
// contains filtered or unexported fields
}
func (MetadataForListSandboxesOutput) GoString ¶
func (s MetadataForListSandboxesOutput) GoString() string
GoString returns the string representation
func (MetadataForListSandboxesOutput) String ¶
func (s MetadataForListSandboxesOutput) String() string
String returns the string representation
type ReadFilesInput ¶
type ReadFilesInput struct {
FilesPath []*string `type:"list" json:",omitempty"`
// FunctionId is a required field
FunctionId *string `type:"string" json:",omitempty" required:"true"`
// SandboxId is a required field
SandboxId *string `type:"string" json:",omitempty" required:"true"`
// contains filtered or unexported fields
}
func (ReadFilesInput) GoString ¶
func (s ReadFilesInput) GoString() string
GoString returns the string representation
func (*ReadFilesInput) SetFilesPath ¶
func (s *ReadFilesInput) SetFilesPath(v []*string) *ReadFilesInput
SetFilesPath sets the FilesPath field's value.
func (*ReadFilesInput) SetFunctionId ¶
func (s *ReadFilesInput) SetFunctionId(v string) *ReadFilesInput
SetFunctionId sets the FunctionId field's value.
func (*ReadFilesInput) SetSandboxId ¶
func (s *ReadFilesInput) SetSandboxId(v string) *ReadFilesInput
SetSandboxId sets the SandboxId field's value.
func (ReadFilesInput) String ¶
func (s ReadFilesInput) String() string
String returns the string representation
func (*ReadFilesInput) Validate ¶
func (s *ReadFilesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ReadFilesOutput ¶
type ReadFilesOutput struct {
Metadata *response.ResponseMetadata
FilesContent []*FilesContentForReadFilesOutput `type:"list" json:",omitempty"`
// contains filtered or unexported fields
}
func (ReadFilesOutput) GoString ¶
func (s ReadFilesOutput) GoString() string
GoString returns the string representation
func (*ReadFilesOutput) SetFilesContent ¶
func (s *ReadFilesOutput) SetFilesContent(v []*FilesContentForReadFilesOutput) *ReadFilesOutput
SetFilesContent sets the FilesContent field's value.
func (ReadFilesOutput) String ¶
func (s ReadFilesOutput) String() string
String returns the string representation
type RunCodeInput ¶
type RunCodeInput struct {
// Code is a required field
Code *string `type:"string" json:",omitempty" required:"true"`
// Data is a required field
Data *string `type:"string" json:",omitempty" required:"true"`
FetchFiles []*string `type:"list" json:",omitempty"`
Files *FilesForRunCodeInput `type:"structure" json:",omitempty"`
// FunctionId is a required field
FunctionId *string `type:"string" json:",omitempty" required:"true"`
// Language is a required field
Language *string `type:"string" json:",omitempty" required:"true"`
SandboxId *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (RunCodeInput) GoString ¶
func (s RunCodeInput) GoString() string
GoString returns the string representation
func (*RunCodeInput) SetCode ¶
func (s *RunCodeInput) SetCode(v string) *RunCodeInput
SetCode sets the Code field's value.
func (*RunCodeInput) SetData ¶
func (s *RunCodeInput) SetData(v string) *RunCodeInput
SetData sets the Data field's value.
func (*RunCodeInput) SetFetchFiles ¶
func (s *RunCodeInput) SetFetchFiles(v []*string) *RunCodeInput
SetFetchFiles sets the FetchFiles field's value.
func (*RunCodeInput) SetFiles ¶
func (s *RunCodeInput) SetFiles(v *FilesForRunCodeInput) *RunCodeInput
SetFiles sets the Files field's value.
func (*RunCodeInput) SetFunctionId ¶
func (s *RunCodeInput) SetFunctionId(v string) *RunCodeInput
SetFunctionId sets the FunctionId field's value.
func (*RunCodeInput) SetLanguage ¶
func (s *RunCodeInput) SetLanguage(v string) *RunCodeInput
SetLanguage sets the Language field's value.
func (*RunCodeInput) SetSandboxId ¶
func (s *RunCodeInput) SetSandboxId(v string) *RunCodeInput
SetSandboxId sets the SandboxId field's value.
func (RunCodeInput) String ¶
func (s RunCodeInput) String() string
String returns the string representation
func (*RunCodeInput) Validate ¶
func (s *RunCodeInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RunCodeOutput ¶
type RunCodeOutput struct {
Metadata *response.ResponseMetadata
CompileResult *CompileResultForRunCodeOutput `type:"structure" json:",omitempty"`
ExecutorPodName *string `type:"string" json:",omitempty"`
Files *FilesForRunCodeOutput `type:"structure" json:",omitempty"`
Result *string `type:"string" json:",omitempty"`
RunResult *RunResultForRunCodeOutput `type:"structure" json:",omitempty"`
Status *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (RunCodeOutput) GoString ¶
func (s RunCodeOutput) GoString() string
GoString returns the string representation
func (*RunCodeOutput) SetCompileResult ¶
func (s *RunCodeOutput) SetCompileResult(v *CompileResultForRunCodeOutput) *RunCodeOutput
SetCompileResult sets the CompileResult field's value.
func (*RunCodeOutput) SetExecutorPodName ¶
func (s *RunCodeOutput) SetExecutorPodName(v string) *RunCodeOutput
SetExecutorPodName sets the ExecutorPodName field's value.
func (*RunCodeOutput) SetFiles ¶
func (s *RunCodeOutput) SetFiles(v *FilesForRunCodeOutput) *RunCodeOutput
SetFiles sets the Files field's value.
func (*RunCodeOutput) SetResult ¶
func (s *RunCodeOutput) SetResult(v string) *RunCodeOutput
SetResult sets the Result field's value.
func (*RunCodeOutput) SetRunResult ¶
func (s *RunCodeOutput) SetRunResult(v *RunResultForRunCodeOutput) *RunCodeOutput
SetRunResult sets the RunResult field's value.
func (*RunCodeOutput) SetStatus ¶
func (s *RunCodeOutput) SetStatus(v string) *RunCodeOutput
SetStatus sets the Status field's value.
func (RunCodeOutput) String ¶
func (s RunCodeOutput) String() string
String returns the string representation
type RunResultForRunCodeOutput ¶
type RunResultForRunCodeOutput struct {
CpuTime *string `type:"string" json:",omitempty"`
ExecutionTime *string `type:"string" json:",omitempty"`
Status *string `type:"string" json:",omitempty"`
Stderr *string `type:"string" json:",omitempty"`
Stdout *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (RunResultForRunCodeOutput) GoString ¶
func (s RunResultForRunCodeOutput) GoString() string
GoString returns the string representation
func (*RunResultForRunCodeOutput) SetCpuTime ¶
func (s *RunResultForRunCodeOutput) SetCpuTime(v string) *RunResultForRunCodeOutput
SetCpuTime sets the CpuTime field's value.
func (*RunResultForRunCodeOutput) SetExecutionTime ¶
func (s *RunResultForRunCodeOutput) SetExecutionTime(v string) *RunResultForRunCodeOutput
SetExecutionTime sets the ExecutionTime field's value.
func (*RunResultForRunCodeOutput) SetStatus ¶
func (s *RunResultForRunCodeOutput) SetStatus(v string) *RunResultForRunCodeOutput
SetStatus sets the Status field's value.
func (*RunResultForRunCodeOutput) SetStderr ¶
func (s *RunResultForRunCodeOutput) SetStderr(v string) *RunResultForRunCodeOutput
SetStderr sets the Stderr field's value.
func (*RunResultForRunCodeOutput) SetStdout ¶
func (s *RunResultForRunCodeOutput) SetStdout(v string) *RunResultForRunCodeOutput
SetStdout sets the Stdout field's value.
func (RunResultForRunCodeOutput) String ¶
func (s RunResultForRunCodeOutput) String() string
String returns the string representation
type SandboxForListSandboxesOutput ¶
type SandboxForListSandboxesOutput struct {
AvailabilityZone *string `type:"string" json:",omitempty"`
CreatedAt *string `type:"string" json:",omitempty"`
ExpireAt *string `type:"string" json:",omitempty"`
FunctionId *string `type:"string" json:",omitempty"`
Id *string `type:"string" json:",omitempty"`
InstanceType *string `type:"string" json:",omitempty"`
Metadata *MetadataForListSandboxesOutput `type:"structure" json:",omitempty"`
RevisionNumber *int32 `type:"int32" json:",omitempty"`
Status *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (SandboxForListSandboxesOutput) GoString ¶
func (s SandboxForListSandboxesOutput) GoString() string
GoString returns the string representation
func (*SandboxForListSandboxesOutput) SetAvailabilityZone ¶
func (s *SandboxForListSandboxesOutput) SetAvailabilityZone(v string) *SandboxForListSandboxesOutput
SetAvailabilityZone sets the AvailabilityZone field's value.
func (*SandboxForListSandboxesOutput) SetCreatedAt ¶
func (s *SandboxForListSandboxesOutput) SetCreatedAt(v string) *SandboxForListSandboxesOutput
SetCreatedAt sets the CreatedAt field's value.
func (*SandboxForListSandboxesOutput) SetExpireAt ¶
func (s *SandboxForListSandboxesOutput) SetExpireAt(v string) *SandboxForListSandboxesOutput
SetExpireAt sets the ExpireAt field's value.
func (*SandboxForListSandboxesOutput) SetFunctionId ¶
func (s *SandboxForListSandboxesOutput) SetFunctionId(v string) *SandboxForListSandboxesOutput
SetFunctionId sets the FunctionId field's value.
func (*SandboxForListSandboxesOutput) SetId ¶
func (s *SandboxForListSandboxesOutput) SetId(v string) *SandboxForListSandboxesOutput
SetId sets the Id field's value.
func (*SandboxForListSandboxesOutput) SetInstanceType ¶
func (s *SandboxForListSandboxesOutput) SetInstanceType(v string) *SandboxForListSandboxesOutput
SetInstanceType sets the InstanceType field's value.
func (*SandboxForListSandboxesOutput) SetMetadata ¶
func (s *SandboxForListSandboxesOutput) SetMetadata(v *MetadataForListSandboxesOutput) *SandboxForListSandboxesOutput
SetMetadata sets the Metadata field's value.
func (*SandboxForListSandboxesOutput) SetRevisionNumber ¶
func (s *SandboxForListSandboxesOutput) SetRevisionNumber(v int32) *SandboxForListSandboxesOutput
SetRevisionNumber sets the RevisionNumber field's value.
func (*SandboxForListSandboxesOutput) SetStatus ¶
func (s *SandboxForListSandboxesOutput) SetStatus(v string) *SandboxForListSandboxesOutput
SetStatus sets the Status field's value.
func (SandboxForListSandboxesOutput) String ¶
func (s SandboxForListSandboxesOutput) String() string
String returns the string representation
type SetSandboxTimeoutInput ¶
type SetSandboxTimeoutInput struct {
// FunctionId is a required field
FunctionId *string `type:"string" json:",omitempty" required:"true"`
// SandboxId is a required field
SandboxId *string `type:"string" json:",omitempty" required:"true"`
// Timeout is a required field
Timeout *int32 `type:"int32" json:",omitempty" required:"true"`
// contains filtered or unexported fields
}
func (SetSandboxTimeoutInput) GoString ¶
func (s SetSandboxTimeoutInput) GoString() string
GoString returns the string representation
func (*SetSandboxTimeoutInput) SetFunctionId ¶
func (s *SetSandboxTimeoutInput) SetFunctionId(v string) *SetSandboxTimeoutInput
SetFunctionId sets the FunctionId field's value.
func (*SetSandboxTimeoutInput) SetSandboxId ¶
func (s *SetSandboxTimeoutInput) SetSandboxId(v string) *SetSandboxTimeoutInput
SetSandboxId sets the SandboxId field's value.
func (*SetSandboxTimeoutInput) SetTimeout ¶
func (s *SetSandboxTimeoutInput) SetTimeout(v int32) *SetSandboxTimeoutInput
SetTimeout sets the Timeout field's value.
func (SetSandboxTimeoutInput) String ¶
func (s SetSandboxTimeoutInput) String() string
String returns the string representation
func (*SetSandboxTimeoutInput) Validate ¶
func (s *SetSandboxTimeoutInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type SetSandboxTimeoutOutput ¶
type SetSandboxTimeoutOutput struct {
Metadata *response.ResponseMetadata
ExpireAt *string `type:"string" json:",omitempty"`
FunctionId *string `type:"string" json:",omitempty"`
SandboxId *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (SetSandboxTimeoutOutput) GoString ¶
func (s SetSandboxTimeoutOutput) GoString() string
GoString returns the string representation
func (*SetSandboxTimeoutOutput) SetExpireAt ¶
func (s *SetSandboxTimeoutOutput) SetExpireAt(v string) *SetSandboxTimeoutOutput
SetExpireAt sets the ExpireAt field's value.
func (*SetSandboxTimeoutOutput) SetFunctionId ¶
func (s *SetSandboxTimeoutOutput) SetFunctionId(v string) *SetSandboxTimeoutOutput
SetFunctionId sets the FunctionId field's value.
func (*SetSandboxTimeoutOutput) SetSandboxId ¶
func (s *SetSandboxTimeoutOutput) SetSandboxId(v string) *SetSandboxTimeoutOutput
SetSandboxId sets the SandboxId field's value.
func (SetSandboxTimeoutOutput) String ¶
func (s SetSandboxTimeoutOutput) String() string
String returns the string representation
type TransitionSandboxInput ¶
type TransitionSandboxInput struct {
// Action is a required field
Action *string `type:"string" json:",omitempty" required:"true"`
// FunctionId is a required field
FunctionId *string `type:"string" json:",omitempty" required:"true"`
// SandboxId is a required field
SandboxId *string `type:"string" json:",omitempty" required:"true"`
// Status is a required field
Status *string `type:"string" json:",omitempty" required:"true"`
// contains filtered or unexported fields
}
func (TransitionSandboxInput) GoString ¶
func (s TransitionSandboxInput) GoString() string
GoString returns the string representation
func (*TransitionSandboxInput) SetAction ¶
func (s *TransitionSandboxInput) SetAction(v string) *TransitionSandboxInput
SetAction sets the Action field's value.
func (*TransitionSandboxInput) SetFunctionId ¶
func (s *TransitionSandboxInput) SetFunctionId(v string) *TransitionSandboxInput
SetFunctionId sets the FunctionId field's value.
func (*TransitionSandboxInput) SetSandboxId ¶
func (s *TransitionSandboxInput) SetSandboxId(v string) *TransitionSandboxInput
SetSandboxId sets the SandboxId field's value.
func (*TransitionSandboxInput) SetStatus ¶
func (s *TransitionSandboxInput) SetStatus(v string) *TransitionSandboxInput
SetStatus sets the Status field's value.
func (TransitionSandboxInput) String ¶
func (s TransitionSandboxInput) String() string
String returns the string representation
func (*TransitionSandboxInput) Validate ¶
func (s *TransitionSandboxInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TransitionSandboxOutput ¶
type TransitionSandboxOutput struct {
Metadata *response.ResponseMetadata
FunctionId *string `type:"string" json:",omitempty"`
SandboxId *string `type:"string" json:",omitempty"`
Status *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (TransitionSandboxOutput) GoString ¶
func (s TransitionSandboxOutput) GoString() string
GoString returns the string representation
func (*TransitionSandboxOutput) SetFunctionId ¶
func (s *TransitionSandboxOutput) SetFunctionId(v string) *TransitionSandboxOutput
SetFunctionId sets the FunctionId field's value.
func (*TransitionSandboxOutput) SetSandboxId ¶
func (s *TransitionSandboxOutput) SetSandboxId(v string) *TransitionSandboxOutput
SetSandboxId sets the SandboxId field's value.
func (*TransitionSandboxOutput) SetStatus ¶
func (s *TransitionSandboxOutput) SetStatus(v string) *TransitionSandboxOutput
SetStatus sets the Status field's value.
func (TransitionSandboxOutput) String ¶
func (s TransitionSandboxOutput) String() string
String returns the string representation
type VEFAASDEV ¶
VEFAASDEV provides the API operation methods for making requests to VEFAAS_DEV. See this package's package overview docs for details on the service.
VEFAASDEV 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) *VEFAASDEV
New create int can support ssl or region locate set
func (*VEFAASDEV) CreateSandbox ¶
func (c *VEFAASDEV) CreateSandbox(input *CreateSandboxInput) (*CreateSandboxOutput, error)
CreateSandbox API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation CreateSandbox for usage and error information.
func (*VEFAASDEV) CreateSandboxCommon ¶
func (c *VEFAASDEV) CreateSandboxCommon(input *map[string]interface{}) (*map[string]interface{}, error)
CreateSandboxCommon API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation CreateSandboxCommon for usage and error information.
func (*VEFAASDEV) CreateSandboxCommonRequest ¶
func (c *VEFAASDEV) CreateSandboxCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
CreateSandboxCommonRequest generates a "volcengine/request.Request" representing the client's request for the CreateSandboxCommon operation. The "output" return value will be populated with the CreateSandboxCommon request's response once the request completes successfully.
Use "Send" method on the returned CreateSandboxCommon Request to send the API call to the service. the "output" return value is not valid until after CreateSandboxCommon Send returns without error.
See CreateSandboxCommon for more information on using the CreateSandboxCommon API call, and error handling.
// Example sending a request using the CreateSandboxCommonRequest method.
req, resp := client.CreateSandboxCommonRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) CreateSandboxCommonWithContext ¶
func (c *VEFAASDEV) CreateSandboxCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
CreateSandboxCommonWithContext is the same as CreateSandboxCommon with the addition of the ability to pass a context and additional request options.
See CreateSandboxCommon 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 (*VEFAASDEV) CreateSandboxRequest ¶
func (c *VEFAASDEV) CreateSandboxRequest(input *CreateSandboxInput) (req *request.Request, output *CreateSandboxOutput)
CreateSandboxRequest generates a "volcengine/request.Request" representing the client's request for the CreateSandbox operation. The "output" return value will be populated with the CreateSandboxCommon request's response once the request completes successfully.
Use "Send" method on the returned CreateSandboxCommon Request to send the API call to the service. the "output" return value is not valid until after CreateSandboxCommon Send returns without error.
See CreateSandbox for more information on using the CreateSandbox API call, and error handling.
// Example sending a request using the CreateSandboxRequest method.
req, resp := client.CreateSandboxRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) CreateSandboxWithContext ¶
func (c *VEFAASDEV) CreateSandboxWithContext(ctx volcengine.Context, input *CreateSandboxInput, opts ...request.Option) (*CreateSandboxOutput, error)
CreateSandboxWithContext is the same as CreateSandbox with the addition of the ability to pass a context and additional request options.
See CreateSandbox 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 (*VEFAASDEV) KillSandbox ¶
func (c *VEFAASDEV) KillSandbox(input *KillSandboxInput) (*KillSandboxOutput, error)
KillSandbox API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation KillSandbox for usage and error information.
func (*VEFAASDEV) KillSandboxCommon ¶
func (c *VEFAASDEV) KillSandboxCommon(input *map[string]interface{}) (*map[string]interface{}, error)
KillSandboxCommon API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation KillSandboxCommon for usage and error information.
func (*VEFAASDEV) KillSandboxCommonRequest ¶
func (c *VEFAASDEV) KillSandboxCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
KillSandboxCommonRequest generates a "volcengine/request.Request" representing the client's request for the KillSandboxCommon operation. The "output" return value will be populated with the KillSandboxCommon request's response once the request completes successfully.
Use "Send" method on the returned KillSandboxCommon Request to send the API call to the service. the "output" return value is not valid until after KillSandboxCommon Send returns without error.
See KillSandboxCommon for more information on using the KillSandboxCommon API call, and error handling.
// Example sending a request using the KillSandboxCommonRequest method.
req, resp := client.KillSandboxCommonRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) KillSandboxCommonWithContext ¶
func (c *VEFAASDEV) KillSandboxCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
KillSandboxCommonWithContext is the same as KillSandboxCommon with the addition of the ability to pass a context and additional request options.
See KillSandboxCommon 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 (*VEFAASDEV) KillSandboxRequest ¶
func (c *VEFAASDEV) KillSandboxRequest(input *KillSandboxInput) (req *request.Request, output *KillSandboxOutput)
KillSandboxRequest generates a "volcengine/request.Request" representing the client's request for the KillSandbox operation. The "output" return value will be populated with the KillSandboxCommon request's response once the request completes successfully.
Use "Send" method on the returned KillSandboxCommon Request to send the API call to the service. the "output" return value is not valid until after KillSandboxCommon Send returns without error.
See KillSandbox for more information on using the KillSandbox API call, and error handling.
// Example sending a request using the KillSandboxRequest method.
req, resp := client.KillSandboxRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) KillSandboxWithContext ¶
func (c *VEFAASDEV) KillSandboxWithContext(ctx volcengine.Context, input *KillSandboxInput, opts ...request.Option) (*KillSandboxOutput, error)
KillSandboxWithContext is the same as KillSandbox with the addition of the ability to pass a context and additional request options.
See KillSandbox 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 (*VEFAASDEV) ListSandboxes ¶
func (c *VEFAASDEV) ListSandboxes(input *ListSandboxesInput) (*ListSandboxesOutput, error)
ListSandboxes API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation ListSandboxes for usage and error information.
func (*VEFAASDEV) ListSandboxesCommon ¶
func (c *VEFAASDEV) ListSandboxesCommon(input *map[string]interface{}) (*map[string]interface{}, error)
ListSandboxesCommon API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation ListSandboxesCommon for usage and error information.
func (*VEFAASDEV) ListSandboxesCommonRequest ¶
func (c *VEFAASDEV) ListSandboxesCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
ListSandboxesCommonRequest generates a "volcengine/request.Request" representing the client's request for the ListSandboxesCommon operation. The "output" return value will be populated with the ListSandboxesCommon request's response once the request completes successfully.
Use "Send" method on the returned ListSandboxesCommon Request to send the API call to the service. the "output" return value is not valid until after ListSandboxesCommon Send returns without error.
See ListSandboxesCommon for more information on using the ListSandboxesCommon API call, and error handling.
// Example sending a request using the ListSandboxesCommonRequest method.
req, resp := client.ListSandboxesCommonRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) ListSandboxesCommonWithContext ¶
func (c *VEFAASDEV) ListSandboxesCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
ListSandboxesCommonWithContext is the same as ListSandboxesCommon with the addition of the ability to pass a context and additional request options.
See ListSandboxesCommon 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 (*VEFAASDEV) ListSandboxesRequest ¶
func (c *VEFAASDEV) ListSandboxesRequest(input *ListSandboxesInput) (req *request.Request, output *ListSandboxesOutput)
ListSandboxesRequest generates a "volcengine/request.Request" representing the client's request for the ListSandboxes operation. The "output" return value will be populated with the ListSandboxesCommon request's response once the request completes successfully.
Use "Send" method on the returned ListSandboxesCommon Request to send the API call to the service. the "output" return value is not valid until after ListSandboxesCommon Send returns without error.
See ListSandboxes for more information on using the ListSandboxes API call, and error handling.
// Example sending a request using the ListSandboxesRequest method.
req, resp := client.ListSandboxesRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) ListSandboxesWithContext ¶
func (c *VEFAASDEV) ListSandboxesWithContext(ctx volcengine.Context, input *ListSandboxesInput, opts ...request.Option) (*ListSandboxesOutput, error)
ListSandboxesWithContext is the same as ListSandboxes with the addition of the ability to pass a context and additional request options.
See ListSandboxes 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 (*VEFAASDEV) ReadFiles ¶
func (c *VEFAASDEV) ReadFiles(input *ReadFilesInput) (*ReadFilesOutput, error)
ReadFiles API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation ReadFiles for usage and error information.
func (*VEFAASDEV) ReadFilesCommon ¶
ReadFilesCommon API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation ReadFilesCommon for usage and error information.
func (*VEFAASDEV) ReadFilesCommonRequest ¶
func (c *VEFAASDEV) ReadFilesCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
ReadFilesCommonRequest generates a "volcengine/request.Request" representing the client's request for the ReadFilesCommon operation. The "output" return value will be populated with the ReadFilesCommon request's response once the request completes successfully.
Use "Send" method on the returned ReadFilesCommon Request to send the API call to the service. the "output" return value is not valid until after ReadFilesCommon Send returns without error.
See ReadFilesCommon for more information on using the ReadFilesCommon API call, and error handling.
// Example sending a request using the ReadFilesCommonRequest method.
req, resp := client.ReadFilesCommonRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) ReadFilesCommonWithContext ¶
func (c *VEFAASDEV) ReadFilesCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
ReadFilesCommonWithContext is the same as ReadFilesCommon with the addition of the ability to pass a context and additional request options.
See ReadFilesCommon 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 (*VEFAASDEV) ReadFilesRequest ¶
func (c *VEFAASDEV) ReadFilesRequest(input *ReadFilesInput) (req *request.Request, output *ReadFilesOutput)
ReadFilesRequest generates a "volcengine/request.Request" representing the client's request for the ReadFiles operation. The "output" return value will be populated with the ReadFilesCommon request's response once the request completes successfully.
Use "Send" method on the returned ReadFilesCommon Request to send the API call to the service. the "output" return value is not valid until after ReadFilesCommon Send returns without error.
See ReadFiles for more information on using the ReadFiles API call, and error handling.
// Example sending a request using the ReadFilesRequest method.
req, resp := client.ReadFilesRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) ReadFilesWithContext ¶
func (c *VEFAASDEV) ReadFilesWithContext(ctx volcengine.Context, input *ReadFilesInput, opts ...request.Option) (*ReadFilesOutput, error)
ReadFilesWithContext is the same as ReadFiles with the addition of the ability to pass a context and additional request options.
See ReadFiles 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 (*VEFAASDEV) RunCode ¶
func (c *VEFAASDEV) RunCode(input *RunCodeInput) (*RunCodeOutput, error)
RunCode API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation RunCode for usage and error information.
func (*VEFAASDEV) RunCodeCommon ¶
RunCodeCommon API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation RunCodeCommon for usage and error information.
func (*VEFAASDEV) RunCodeCommonRequest ¶
func (c *VEFAASDEV) RunCodeCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
RunCodeCommonRequest generates a "volcengine/request.Request" representing the client's request for the RunCodeCommon operation. The "output" return value will be populated with the RunCodeCommon request's response once the request completes successfully.
Use "Send" method on the returned RunCodeCommon Request to send the API call to the service. the "output" return value is not valid until after RunCodeCommon Send returns without error.
See RunCodeCommon for more information on using the RunCodeCommon API call, and error handling.
// Example sending a request using the RunCodeCommonRequest method.
req, resp := client.RunCodeCommonRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) RunCodeCommonWithContext ¶
func (c *VEFAASDEV) RunCodeCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
RunCodeCommonWithContext is the same as RunCodeCommon with the addition of the ability to pass a context and additional request options.
See RunCodeCommon 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 (*VEFAASDEV) RunCodeRequest ¶
func (c *VEFAASDEV) RunCodeRequest(input *RunCodeInput) (req *request.Request, output *RunCodeOutput)
RunCodeRequest generates a "volcengine/request.Request" representing the client's request for the RunCode operation. The "output" return value will be populated with the RunCodeCommon request's response once the request completes successfully.
Use "Send" method on the returned RunCodeCommon Request to send the API call to the service. the "output" return value is not valid until after RunCodeCommon Send returns without error.
See RunCode for more information on using the RunCode API call, and error handling.
// Example sending a request using the RunCodeRequest method.
req, resp := client.RunCodeRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) RunCodeWithContext ¶
func (c *VEFAASDEV) RunCodeWithContext(ctx volcengine.Context, input *RunCodeInput, opts ...request.Option) (*RunCodeOutput, error)
RunCodeWithContext is the same as RunCode with the addition of the ability to pass a context and additional request options.
See RunCode 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 (*VEFAASDEV) SetSandboxTimeout ¶
func (c *VEFAASDEV) SetSandboxTimeout(input *SetSandboxTimeoutInput) (*SetSandboxTimeoutOutput, error)
SetSandboxTimeout API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation SetSandboxTimeout for usage and error information.
func (*VEFAASDEV) SetSandboxTimeoutCommon ¶
func (c *VEFAASDEV) SetSandboxTimeoutCommon(input *map[string]interface{}) (*map[string]interface{}, error)
SetSandboxTimeoutCommon API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation SetSandboxTimeoutCommon for usage and error information.
func (*VEFAASDEV) SetSandboxTimeoutCommonRequest ¶
func (c *VEFAASDEV) SetSandboxTimeoutCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
SetSandboxTimeoutCommonRequest generates a "volcengine/request.Request" representing the client's request for the SetSandboxTimeoutCommon operation. The "output" return value will be populated with the SetSandboxTimeoutCommon request's response once the request completes successfully.
Use "Send" method on the returned SetSandboxTimeoutCommon Request to send the API call to the service. the "output" return value is not valid until after SetSandboxTimeoutCommon Send returns without error.
See SetSandboxTimeoutCommon for more information on using the SetSandboxTimeoutCommon API call, and error handling.
// Example sending a request using the SetSandboxTimeoutCommonRequest method.
req, resp := client.SetSandboxTimeoutCommonRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) SetSandboxTimeoutCommonWithContext ¶
func (c *VEFAASDEV) SetSandboxTimeoutCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
SetSandboxTimeoutCommonWithContext is the same as SetSandboxTimeoutCommon with the addition of the ability to pass a context and additional request options.
See SetSandboxTimeoutCommon 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 (*VEFAASDEV) SetSandboxTimeoutRequest ¶
func (c *VEFAASDEV) SetSandboxTimeoutRequest(input *SetSandboxTimeoutInput) (req *request.Request, output *SetSandboxTimeoutOutput)
SetSandboxTimeoutRequest generates a "volcengine/request.Request" representing the client's request for the SetSandboxTimeout operation. The "output" return value will be populated with the SetSandboxTimeoutCommon request's response once the request completes successfully.
Use "Send" method on the returned SetSandboxTimeoutCommon Request to send the API call to the service. the "output" return value is not valid until after SetSandboxTimeoutCommon Send returns without error.
See SetSandboxTimeout for more information on using the SetSandboxTimeout API call, and error handling.
// Example sending a request using the SetSandboxTimeoutRequest method.
req, resp := client.SetSandboxTimeoutRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) SetSandboxTimeoutWithContext ¶
func (c *VEFAASDEV) SetSandboxTimeoutWithContext(ctx volcengine.Context, input *SetSandboxTimeoutInput, opts ...request.Option) (*SetSandboxTimeoutOutput, error)
SetSandboxTimeoutWithContext is the same as SetSandboxTimeout with the addition of the ability to pass a context and additional request options.
See SetSandboxTimeout 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 (*VEFAASDEV) TransitionSandbox ¶
func (c *VEFAASDEV) TransitionSandbox(input *TransitionSandboxInput) (*TransitionSandboxOutput, error)
TransitionSandbox API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation TransitionSandbox for usage and error information.
func (*VEFAASDEV) TransitionSandboxCommon ¶
func (c *VEFAASDEV) TransitionSandboxCommon(input *map[string]interface{}) (*map[string]interface{}, error)
TransitionSandboxCommon API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation TransitionSandboxCommon for usage and error information.
func (*VEFAASDEV) TransitionSandboxCommonRequest ¶
func (c *VEFAASDEV) TransitionSandboxCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
TransitionSandboxCommonRequest generates a "volcengine/request.Request" representing the client's request for the TransitionSandboxCommon operation. The "output" return value will be populated with the TransitionSandboxCommon request's response once the request completes successfully.
Use "Send" method on the returned TransitionSandboxCommon Request to send the API call to the service. the "output" return value is not valid until after TransitionSandboxCommon Send returns without error.
See TransitionSandboxCommon for more information on using the TransitionSandboxCommon API call, and error handling.
// Example sending a request using the TransitionSandboxCommonRequest method.
req, resp := client.TransitionSandboxCommonRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) TransitionSandboxCommonWithContext ¶
func (c *VEFAASDEV) TransitionSandboxCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
TransitionSandboxCommonWithContext is the same as TransitionSandboxCommon with the addition of the ability to pass a context and additional request options.
See TransitionSandboxCommon 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 (*VEFAASDEV) TransitionSandboxRequest ¶
func (c *VEFAASDEV) TransitionSandboxRequest(input *TransitionSandboxInput) (req *request.Request, output *TransitionSandboxOutput)
TransitionSandboxRequest generates a "volcengine/request.Request" representing the client's request for the TransitionSandbox operation. The "output" return value will be populated with the TransitionSandboxCommon request's response once the request completes successfully.
Use "Send" method on the returned TransitionSandboxCommon Request to send the API call to the service. the "output" return value is not valid until after TransitionSandboxCommon Send returns without error.
See TransitionSandbox for more information on using the TransitionSandbox API call, and error handling.
// Example sending a request using the TransitionSandboxRequest method.
req, resp := client.TransitionSandboxRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) TransitionSandboxWithContext ¶
func (c *VEFAASDEV) TransitionSandboxWithContext(ctx volcengine.Context, input *TransitionSandboxInput, opts ...request.Option) (*TransitionSandboxOutput, error)
TransitionSandboxWithContext is the same as TransitionSandbox with the addition of the ability to pass a context and additional request options.
See TransitionSandbox 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 (*VEFAASDEV) WriteFiles ¶
func (c *VEFAASDEV) WriteFiles(input *WriteFilesInput) (*WriteFilesOutput, error)
WriteFiles API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation WriteFiles for usage and error information.
func (*VEFAASDEV) WriteFilesCommon ¶
func (c *VEFAASDEV) WriteFilesCommon(input *map[string]interface{}) (*map[string]interface{}, error)
WriteFilesCommon API operation for VEFAAS_DEV.
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 VEFAAS_DEV's API operation WriteFilesCommon for usage and error information.
func (*VEFAASDEV) WriteFilesCommonRequest ¶
func (c *VEFAASDEV) WriteFilesCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
WriteFilesCommonRequest generates a "volcengine/request.Request" representing the client's request for the WriteFilesCommon operation. The "output" return value will be populated with the WriteFilesCommon request's response once the request completes successfully.
Use "Send" method on the returned WriteFilesCommon Request to send the API call to the service. the "output" return value is not valid until after WriteFilesCommon Send returns without error.
See WriteFilesCommon for more information on using the WriteFilesCommon API call, and error handling.
// Example sending a request using the WriteFilesCommonRequest method.
req, resp := client.WriteFilesCommonRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) WriteFilesCommonWithContext ¶
func (c *VEFAASDEV) WriteFilesCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
WriteFilesCommonWithContext is the same as WriteFilesCommon with the addition of the ability to pass a context and additional request options.
See WriteFilesCommon 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 (*VEFAASDEV) WriteFilesRequest ¶
func (c *VEFAASDEV) WriteFilesRequest(input *WriteFilesInput) (req *request.Request, output *WriteFilesOutput)
WriteFilesRequest generates a "volcengine/request.Request" representing the client's request for the WriteFiles operation. The "output" return value will be populated with the WriteFilesCommon request's response once the request completes successfully.
Use "Send" method on the returned WriteFilesCommon Request to send the API call to the service. the "output" return value is not valid until after WriteFilesCommon Send returns without error.
See WriteFiles for more information on using the WriteFiles API call, and error handling.
// Example sending a request using the WriteFilesRequest method.
req, resp := client.WriteFilesRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*VEFAASDEV) WriteFilesWithContext ¶
func (c *VEFAASDEV) WriteFilesWithContext(ctx volcengine.Context, input *WriteFilesInput, opts ...request.Option) (*WriteFilesOutput, error)
WriteFilesWithContext is the same as WriteFiles with the addition of the ability to pass a context and additional request options.
See WriteFiles 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 VEFAASDEVAPI ¶
type VEFAASDEVAPI interface {
CreateSandboxCommon(*map[string]interface{}) (*map[string]interface{}, error)
CreateSandboxCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
CreateSandboxCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})
CreateSandbox(*CreateSandboxInput) (*CreateSandboxOutput, error)
CreateSandboxWithContext(volcengine.Context, *CreateSandboxInput, ...request.Option) (*CreateSandboxOutput, error)
CreateSandboxRequest(*CreateSandboxInput) (*request.Request, *CreateSandboxOutput)
KillSandboxCommon(*map[string]interface{}) (*map[string]interface{}, error)
KillSandboxCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
KillSandboxCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})
KillSandbox(*KillSandboxInput) (*KillSandboxOutput, error)
KillSandboxWithContext(volcengine.Context, *KillSandboxInput, ...request.Option) (*KillSandboxOutput, error)
KillSandboxRequest(*KillSandboxInput) (*request.Request, *KillSandboxOutput)
ListSandboxesCommon(*map[string]interface{}) (*map[string]interface{}, error)
ListSandboxesCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
ListSandboxesCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})
ListSandboxes(*ListSandboxesInput) (*ListSandboxesOutput, error)
ListSandboxesWithContext(volcengine.Context, *ListSandboxesInput, ...request.Option) (*ListSandboxesOutput, error)
ListSandboxesRequest(*ListSandboxesInput) (*request.Request, *ListSandboxesOutput)
ReadFilesCommon(*map[string]interface{}) (*map[string]interface{}, error)
ReadFilesCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
ReadFilesCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})
ReadFiles(*ReadFilesInput) (*ReadFilesOutput, error)
ReadFilesWithContext(volcengine.Context, *ReadFilesInput, ...request.Option) (*ReadFilesOutput, error)
ReadFilesRequest(*ReadFilesInput) (*request.Request, *ReadFilesOutput)
RunCodeCommon(*map[string]interface{}) (*map[string]interface{}, error)
RunCodeCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
RunCodeCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})
RunCode(*RunCodeInput) (*RunCodeOutput, error)
RunCodeWithContext(volcengine.Context, *RunCodeInput, ...request.Option) (*RunCodeOutput, error)
RunCodeRequest(*RunCodeInput) (*request.Request, *RunCodeOutput)
SetSandboxTimeoutCommon(*map[string]interface{}) (*map[string]interface{}, error)
SetSandboxTimeoutCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
SetSandboxTimeoutCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})
SetSandboxTimeout(*SetSandboxTimeoutInput) (*SetSandboxTimeoutOutput, error)
SetSandboxTimeoutWithContext(volcengine.Context, *SetSandboxTimeoutInput, ...request.Option) (*SetSandboxTimeoutOutput, error)
SetSandboxTimeoutRequest(*SetSandboxTimeoutInput) (*request.Request, *SetSandboxTimeoutOutput)
TransitionSandboxCommon(*map[string]interface{}) (*map[string]interface{}, error)
TransitionSandboxCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
TransitionSandboxCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})
TransitionSandbox(*TransitionSandboxInput) (*TransitionSandboxOutput, error)
TransitionSandboxWithContext(volcengine.Context, *TransitionSandboxInput, ...request.Option) (*TransitionSandboxOutput, error)
TransitionSandboxRequest(*TransitionSandboxInput) (*request.Request, *TransitionSandboxOutput)
WriteFilesCommon(*map[string]interface{}) (*map[string]interface{}, error)
WriteFilesCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
WriteFilesCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})
WriteFiles(*WriteFilesInput) (*WriteFilesOutput, error)
WriteFilesWithContext(volcengine.Context, *WriteFilesInput, ...request.Option) (*WriteFilesOutput, error)
WriteFilesRequest(*WriteFilesInput) (*request.Request, *WriteFilesOutput)
}
VEFAASDEVAPI provides an interface to enable mocking the vefaasdev.VEFAASDEV service client's API operation,
// volcengine sdk func uses an SDK service client to make a request to
// VEFAAS_DEV.
func myFunc(svc VEFAASDEVAPI) bool {
// Make svc.CreateSandbox request
}
func main() {
sess := session.New()
svc := vefaasdev.New(sess)
myFunc(svc)
}
type WriteFileForWriteFilesInput ¶
type WriteFileForWriteFilesInput struct {
Content *string `type:"string" json:",omitempty"`
Path *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (WriteFileForWriteFilesInput) GoString ¶
func (s WriteFileForWriteFilesInput) GoString() string
GoString returns the string representation
func (*WriteFileForWriteFilesInput) SetContent ¶
func (s *WriteFileForWriteFilesInput) SetContent(v string) *WriteFileForWriteFilesInput
SetContent sets the Content field's value.
func (*WriteFileForWriteFilesInput) SetPath ¶
func (s *WriteFileForWriteFilesInput) SetPath(v string) *WriteFileForWriteFilesInput
SetPath sets the Path field's value.
func (WriteFileForWriteFilesInput) String ¶
func (s WriteFileForWriteFilesInput) String() string
String returns the string representation
type WriteFilesInput ¶
type WriteFilesInput struct {
// FunctionId is a required field
FunctionId *string `type:"string" json:",omitempty" required:"true"`
// SandboxId is a required field
SandboxId *string `type:"string" json:",omitempty" required:"true"`
WriteFiles []*WriteFileForWriteFilesInput `type:"list" json:",omitempty"`
// contains filtered or unexported fields
}
func (WriteFilesInput) GoString ¶
func (s WriteFilesInput) GoString() string
GoString returns the string representation
func (*WriteFilesInput) SetFunctionId ¶
func (s *WriteFilesInput) SetFunctionId(v string) *WriteFilesInput
SetFunctionId sets the FunctionId field's value.
func (*WriteFilesInput) SetSandboxId ¶
func (s *WriteFilesInput) SetSandboxId(v string) *WriteFilesInput
SetSandboxId sets the SandboxId field's value.
func (*WriteFilesInput) SetWriteFiles ¶
func (s *WriteFilesInput) SetWriteFiles(v []*WriteFileForWriteFilesInput) *WriteFilesInput
SetWriteFiles sets the WriteFiles field's value.
func (WriteFilesInput) String ¶
func (s WriteFilesInput) String() string
String returns the string representation
func (*WriteFilesInput) Validate ¶
func (s *WriteFilesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type WriteFilesOutput ¶
type WriteFilesOutput struct {
Metadata *response.ResponseMetadata
Errors []*ErrorForWriteFilesOutput `type:"list" json:",omitempty"`
Success *bool `type:"boolean" json:",omitempty"`
// contains filtered or unexported fields
}
func (WriteFilesOutput) GoString ¶
func (s WriteFilesOutput) GoString() string
GoString returns the string representation
func (*WriteFilesOutput) SetErrors ¶
func (s *WriteFilesOutput) SetErrors(v []*ErrorForWriteFilesOutput) *WriteFilesOutput
SetErrors sets the Errors field's value.
func (*WriteFilesOutput) SetSuccess ¶
func (s *WriteFilesOutput) SetSuccess(v bool) *WriteFilesOutput
SetSuccess sets the Success field's value.
func (WriteFilesOutput) String ¶
func (s WriteFilesOutput) String() string
String returns the string representation