setup

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProdJumproleConfigKey   = "prod_jumprole_account_id"
	AwsProxy                = "aws_proxy"
	StageJumproleConfigKey  = "stage_jumprole_account_id"
	PdUserToken             = "pd_user_token"
	JiraToken               = "jira_token"
	DtVaultPath             = "dt_vault_path"
	VaultAddress            = "vault_address"
	CloudTrailCmdLists      = "cloudtrail_cmd_lists"
	JiraTokenRegex          = "^[A-Z0-9]{7}$"
	PdTokenRegex            = "^[a-zA-Z0-9+_-]{20}$"
	AwsAccountRegex         = "^[0-9]{12}$"
	AWSProxyRegex           = `^http:\/\/[a-zA-Z0-9.-]+(:\d+)?$`
	VaultURLRegex           = `^https:\/\/[a-zA-Z0-9.-]+\/?$`
	DtVaultPathRegex        = `^[a-zA-Z0-9\-/]+$`
	CloudTrailCmdListsRegex = `^\s*-\s+.*$`
)

Variables

This section is empty.

Functions

func NewCmdSetup

func NewCmdSetup() *cobra.Command

NewCmdSetup implements the setup command

func ValidateAWSAccount

func ValidateAWSAccount(account string) (string, error)

func ValidateAWSProxy

func ValidateAWSProxy(proxyURL string) (string, error)

func ValidateCloudTrailCmdLists

func ValidateCloudTrailCmdLists(cloudTrailCmd string) (string, error)

func ValidateDtVaultPath

func ValidateDtVaultPath(dtVaultPath string) (string, error)

func ValidateJiraToken

func ValidateJiraToken(token string) (string, error)

func ValidatePDToken

func ValidatePDToken(token string) (string, error)

func ValidateVaultAddress

func ValidateVaultAddress(vaultURL string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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