Documentation
¶
Overview ¶
Package coc implements the cloudlist `vm` command capability for Huawei Cloud via COC (Cloud Operations Center) script jobs. UniAgent must be installed on the target ECS for executions to land.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
Cred auth.Credential
Regions []string
DomainID string
Client *api.Client
ProjectCatalog *api.ProjectCatalog
// contains filtered or unexported fields
}
func (*Driver) Execute ¶
func (d *Driver) Execute(ctx context.Context, instanceID, command string) (schema.CommandResult, error)
Execute creates a temporary COC script, executes it on one ECS instance, and polls until the execution reaches a terminal state. Output is aggregated from the per-instance execution log.
Click to show internal directories.
Click to hide internal directories.