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 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
func (s RemoteSession) Run(ctx context.Context, plugin session_manager.Plugin) error
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)
}
Click to show internal directories.
Click to hide internal directories.