Documentation ¶
Overview ¶
Package context provides context for perun.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSession ¶
CreateSession creates session based on profile and region.
func InitializeSession ¶
InitializeSession creates session and updates session token.
Types ¶
type Context ¶
type Context struct { CliArguments cliparser.CliArguments Logger logger.LoggerInt Config configuration.Configuration InconsistencyConfig configuration.InconsistencyConfiguration CloudFormation awsapi.CloudFormationAPI CurrentSession *session.Session }
Context contains perun's logger, configuration, information about inconsistency between specification and documentation, and session.
func GetContext ¶
func GetContext(cliArgParser cliArgumentsParser, confReader configurationReader, inconsistReader inconsistenciesReader) (context Context, err error)
GetContext creates CLI context. Creating logger and config and checking inconsistency.
func (*Context) InitializeAwsAPI ¶
func (context *Context) InitializeAwsAPI()
InitializeAwsAPI creates session.
Click to show internal directories.
Click to hide internal directories.