command

package
v0.6.18 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentName

type DocumentName string
const (
	PORT_FORWARD_DOCUMENT_NAME        DocumentName = "AWS-StartPortForwardingSession"
	REMOTE_PORT_FORWARD_DOCUMENT_NAME DocumentName = "AWS-StartPortForwardingSessionToRemoteHost"
)

type ExecSessionAPI added in v0.6.18

type ExecSessionAPI interface {
	ExecuteCommand(context.Context, *ecs.ExecuteCommandInput, ...func(*ecs.Options)) (*ecs.ExecuteCommandOutput, error)
	DescribeTasks(context.Context, *ecs.DescribeTasksInput, ...func(*ecs.Options)) (*ecs.DescribeTasksOutput, error)
}

type ExecTarget added in v0.6.18

type ExecTarget struct {
	Cluster       string
	TaskARN       string
	ContainerName string
}

type PortTarget added in v0.6.18

type PortTarget struct {
	SSMTarget string
}

type RemoteSession added in v0.6.18

type RemoteSession struct {
	ID         string
	Invocation session_manager.Invocation
	// contains filtered or unexported fields
}

func StartExecSession added in v0.6.18

func StartExecSession(
	ctx context.Context,
	ecsClient ExecSessionAPI,
	ssmClient SessionAPI,
	execTarget ExecTarget,
	command string,
	region string,
) (RemoteSession, error)

func StartPortForwardSession added in v0.6.18

func StartPortForwardSession(
	ctx context.Context,
	ssmClient SessionAPI,
	portTarget PortTarget,
	region string,
	doc DocumentName,
	params map[string][]string,
) (RemoteSession, error)

func (RemoteSession) Run added in v0.6.18

type SessionAPI added in v0.6.18

type SessionAPI interface {
	StartSession(context.Context, *ssm.StartSessionInput, ...func(*ssm.Options)) (*ssm.StartSessionOutput, error)
	TerminateSession(context.Context, *ssm.TerminateSessionInput, ...func(*ssm.Options)) (*ssm.TerminateSessionOutput, error)
}

Jump to

Keyboard shortcuts

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