runner

package
v0.0.0-...-df6e0f9 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskAssumeTarget

func AskAssumeTarget(assumeList map[string]string) (string, error)

AskAssumeTarget asks assume target

func AskBaseAccountName

func AskBaseAccountName() (string, error)

AskBaseAccountName asks user's base account

func CheckTarget

func CheckTarget(arn, target string) error

checkTarget checks if target is in the list

func IsDarwin

func IsDarwin() bool

func IsValidAddress

func IsValidAddress(ip string) error

IsValidAddress checks if address is valid or not

func ParseTargetList

func ParseTargetList(args []string) ([]string, error)

ParseTargetList parses arguments to valid ip list

func PrintHasIPResult

func PrintHasIPResult(out io.Writer, result []schema.IPCheckResult) error

PrintHasIPResult prints search result

func PrintWebACL

func PrintWebACL(out io.Writer, info *schema.WebACL) error

PrintWebACL prints information

Types

type Runner

type Runner struct {
	AWSClient aws.Client
	Flag      *builder.Flags
	Config    *schema.Config
}

func New

func New(flags *builder.Flags, config *schema.Config) Runner

func (Runner) CheckIfTargetExistsInACL

func (r Runner) CheckIfTargetExistsInACL(targetList []string, acl string) ([]schema.IPCheckResult, error)

CheckIfTargetExistsInACL checks if target exists in ACL

func (Runner) ChooseEnv

func (r Runner) ChooseEnv() (string, error)

ChooseEnv provides interactive terminal to choose the environment

func (Runner) CopyRDSToken

func (r Runner) CopyRDSToken(env, region string) error

CopyRDSToken copies RDS Token to clipboard

func (Runner) DescribeWebACL

func (r Runner) DescribeWebACL(out io.Writer, args []string) error

DescribeWebACL retrieves waf ip list and show them on the terminal

func (Runner) EcrLogin

func (r Runner) EcrLogin(out io.Writer) error

EcrLogin returns authorization data for ecr-login

func (Runner) HasIP

func (r Runner) HasIP(out io.Writer, args []string) error

func (Runner) InitConfiguration

func (r Runner) InitConfiguration() error

InitConfiguration init new configuration

func (Runner) PrintAssumeList

func (r Runner) PrintAssumeList(out io.Writer) error

PrintAssumeList prints all accounts registered for assuming

func (Runner) RenewCredentials

func (r Runner) RenewCredentials(out io.Writer) error

ResetCredentials creates new credentials

func (Runner) SelectTargetACL

func (r Runner) SelectTargetACL(args []string) (string, error)

SelectTargetACL makes a user choose ACL from the list

func (Runner) Setup

func (r Runner) Setup(out io.Writer, args []string) error

Setup gets assume role information and copy them to the clipboard

func (Runner) Who

func (r Runner) Who(out io.Writer) error

Who prints the result of `aws sts get-caller-identity`

Jump to

Keyboard shortcuts

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