Documentation
¶
Index ¶
- Variables
- func AskHost() (host string, retErr error)
- func CallProcess(process string, args ...string) error
- func CreateStartSession(ctx context.Context, cfg aws.Config, input *ssm.StartSessionInput) (*ssm.StartSessionOutput, error)
- func DeleteStartSession(ctx context.Context, cfg aws.Config, input *ssm.TerminateSessionInput) error
- func FindDomainByInstanceId(ctx context.Context, cfg aws.Config, instanceId string) ([]string, error)
- func FindInstanceIdByIp(ctx context.Context, cfg aws.Config, ip string) (string, error)
- func FindInstanceIdsWithConnectedSSM(ctx context.Context, cfg aws.Config) ([]string, error)
- func FindInstances(ctx context.Context, cfg aws.Config, filterTag string) (map[string]*Target, error)
- func GenerateSSHExecCommand(exec, identity, user, domain string) (newExec string)
- func GetAsset(filename string) ([]byte, error)
- func GetSsmPlugin() ([]byte, error)
- func GetSsmPluginName() string
- func GetTerminalHeight() int
- func NewConfig(ctx context.Context, key, secret, session, region, roleArn string) (aws.Config, error)
- func NewSharedConfig(ctx context.Context, profile string, ...) (aws.Config, error)
- func PrintCommandInvocation(ctx context.Context, cfg aws.Config, inputs []*ssm.GetCommandInvocationInput)
- func PrintReady(cmd, region, target string)
- func SendCommand(ctx context.Context, cfg aws.Config, targets []*Target, command string) (*ssm.SendCommandOutput, error)
- func WrapError(err error) error
- type Port
- type Region
- type Target
- type User
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInvalidParams is an error type to use when passed arguments are invalid. ErrInvalidParams = errors.New("[err] invalid params") // ErrUnknown is an error type to use when error reason doesn't know. ErrUnknown = errors.New("[err] unknown") )
Functions ¶
func CallProcess ¶
CallProcess calls process.
func CreateStartSession ¶
func CreateStartSession(ctx context.Context, cfg aws.Config, input *ssm.StartSessionInput) (*ssm.StartSessionOutput, error)
CreateStartSession creates start session.
func DeleteStartSession ¶
func DeleteStartSession(ctx context.Context, cfg aws.Config, input *ssm.TerminateSessionInput) error
DeleteStartSession creates session.
func FindDomainByInstanceId ¶
func FindDomainByInstanceId(ctx context.Context, cfg aws.Config, instanceId string) ([]string, error)
FindDomainByInstanceId returns domain by instance id.
func FindInstanceIdByIp ¶
FindInstanceIdByIp returns instance ids by ip.
func FindInstanceIdsWithConnectedSSM ¶
FindInstanceIdsWithConnectedSSM asks you which selects instances.
func FindInstances ¶
func FindInstances(ctx context.Context, cfg aws.Config, filterTag string) (map[string]*Target, error)
FindInstances returns all of instances-map with running state.
func GenerateSSHExecCommand ¶
GenerateSSHExecCommand generates ssh exec command.
func GetSsmPlugin ¶
GetSsmPlugin returns filepath for aws ssm plugin.
func GetSsmPluginName ¶
func GetSsmPluginName() string
GetSsmPluginName returns filename for aws ssm plugin.
func GetTerminalHeight ¶
func GetTerminalHeight() int
func NewConfig ¶
func NewConfig(ctx context.Context, key, secret, session, region, roleArn string) (aws.Config, error)
NewConfig creates a config for accessing AWS with passing credential parameters.
func NewSharedConfig ¶
func NewSharedConfig(ctx context.Context, profile string, sharedConfigFiles, sharedCredentialsFiles []string) (aws.Config, error)
NewSharedConfig creates a config for accessing AWS that is based on shared files, such as credentials file.
func PrintCommandInvocation ¶
func PrintCommandInvocation(ctx context.Context, cfg aws.Config, inputs []*ssm.GetCommandInvocationInput)
PrintCommandInvocation watches command invocations.
func PrintReady ¶
func PrintReady(cmd, region, target string)
Types ¶
type Target ¶
func AskMultiTarget ¶
AskMultiTarget asks you which selects multi targets.