ssmclicommands

package
v0.0.0-...-ee5af42 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package ssmclicommands contains all the commands with its implementation.

Package ssmclicommands contains all the commands with its implementation.

Index

Constants

View Source
const (
	START_SESSION = "start-session"
	INSTANCE_ID   = "instance-id"
	REGION        = "region"
	PROFILE       = "profile"
	ENDPOINT      = "endpoint"
	DOCUMENT_NAME = "document-name"
	PARAMETERS    = "parameters"
)
View Source
const (
	ArgumentLength = 2
)
View Source
const START_SESSION_HELP = `` /* 846-byte string literal not displayed */

Variables

Functions

func ParseCliCommand

func ParseCliCommand(args []string) (err error, options []string, command string, subcommand string, parameters map[string][]string)

ParseCliCommand function parses command and returns options to validate.

func ValidateInput

func ValidateInput(args []string, out io.Writer)

ValidateInput function validates the input and displays response accordingly.

Types

type StartSessionCommand

type StartSessionCommand struct {
	// contains filtered or unexported fields
}

func (*StartSessionCommand) Execute

func (s *StartSessionCommand) Execute(parameters map[string][]string) (error, string)

validates and execute start-session command

func (*StartSessionCommand) Help

func (c *StartSessionCommand) Help() string

Help prints help for the start-session cli command

func (StartSessionCommand) Name

func (StartSessionCommand) Name() string

Name is the command name used in the cli

type StartSessionHelpParams

type StartSessionHelpParams struct {
	SsmCliName       string
	StartSessionName string
	InstanceId       string
	Region           string
	Profile          string
	Endpoint         string
	DocumentName     string
	Parameters       string
}

Directories

Path Synopsis
Package utils contains all the utility functions.
Package utils contains all the utility functions.

Jump to

Keyboard shortcuts

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