coc

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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