Documentation
¶
Overview ¶
Package coc implements the cloudlist `vm` capability for Huawei Cloud via COC (Cloud Operations Center) BatchExecuteCommand. PLAN.md decision T3.2 chose this path because COC most closely mirrors AWS SSM RunCommand / alibaba CloudAssistant semantics. UniAgent must be installed on the target ECS for executions to land.
Endpoint paths are pattern-inferred from Huawei's documented v1 surface; verify against upstream COC docs before relying on this in production.
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
Client *api.Client
// contains filtered or unexported fields
}
func (*Driver) Execute ¶
func (d *Driver) Execute(ctx context.Context, instanceID, command string) (schema.CommandResult, error)
Execute submits the script to COC and polls until the order completes. Output is the per-instance stdout aggregated as a single string. An empty command short-circuits without making any API calls.