awsctx

package
v0.0.0-...-093ab6d Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUpDefaultContext

func SetUpDefaultContext(folder, defaultName string) error

Types

type Awsctx

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

func New

func New(folder string) (*Awsctx, error)

func (*Awsctx) GetProfiles

func (a *Awsctx) GetProfiles() ([]Context, error)

func (*Awsctx) RenameProfile

func (a *Awsctx) RenameProfile(oldName, newName string) error

func (*Awsctx) SwitchBack

func (a *Awsctx) SwitchBack() error

func (*Awsctx) SwitchProfile

func (a *Awsctx) SwitchProfile(profile string) error

type Context

type Context struct {
	Name      string
	IsCurrent bool
}

type NoContextError

type NoContextError string

func (NoContextError) Error

func (n NoContextError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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