constants

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//ServiceName means name of service
	ServiceName = "act"

	// DefaultLogLevel is the default global verbosity
	DefaultLogLevel = logrus.WarnLevel

	// DefaultRegion is the default region id
	DefaultRegion = "ap-northeast-2"

	// EmptyString is the empty string
	EmptyString = ""

	// DefaultProfile is the default aws profile
	DefaultProfile = "default"

	// DefaultDuration is the default duration of assume role
	DefaultDuration = 0

	// InfoLogLevel is the info level verbosity
	InfoLogLevel = logrus.InfoLevel

	// ConfigErrorMsg is the default error message when there is no configuration set
	ConfigErrorMsg = "you have no configuration setting"

	// NeedExpiredCheck
	NeedExpiredCheck = true

	// SkipExpiredCheck
	SkipExpiredCheck = false

	// Secret
	Secret = true

	// ExecuteDelimiter is a delimiter for command execution
	ExecuteDelimiter = "--"

	// DefaultExpirationWindow default value of expiration window for assume role
	DefaultExpirationWindow = 5 * time.Minute

	// DefaultKeyType default type of key storage
	DefaultKeyType = "keychain"

	// DefaultMaintenancePriority means the default value of rule priority
	DefaultMaintenancePriority = 10
)

Variables

View Source
var (
	AWSConfigDirectoryPath = HomeDir() + "/.aws"
	AWSCredentialsPath     = AWSConfigDirectoryPath + "/credentials"
	BaseFilePath           = AWSConfigDirectoryPath + "/config.yaml"
	BaseSerialNumber       = "arn:aws:iam::748177903968:mfa"

	DefaultKeyChainPath    = fmt.Sprintf("%s-vault.keychain", ServiceName)
	DefaultKeyChainAccount = fmt.Sprintf("%s-default", ServiceName)
)

Functions

func HomeDir

func HomeDir() string

Get Home Directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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