Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CacheHostList []schema.Host
)
CacheHostList mirrors the alibaba/tencent/volcengine pattern: cloudlist populates a cache so the REPL `shell <id>` flow can resolve region + OS type without a second API roundtrip.
Functions ¶
func CacheMissingError ¶
func CacheMissingError() error
CacheMissingError exposes the sentinel for tests / callers that need to distinguish "no metadata" from a real API error.
func Close ¶
func Close()
Close ensures the host cache is flushed when callers no longer need it (e.g. across a session reset).
func GetCacheHostList ¶
func SetCacheHostList ¶
Types ¶
type Driver ¶
func (*Driver) ResolveInstanceContext ¶
func (*Driver) RunCommand ¶
RunCommand sends `cmd` to instanceID via SSM and polls for completion. Returns the command stdout (or stderr if exit was non-zero). Empty string on hard failure — callers log via logger; the REPL surface is the same as the existing alibaba/tencent ECS exec drivers.
Click to show internal directories.
Click to hide internal directories.