setup

package
v0.44.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 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" // #nosec G101
	JiraToken               = "jira_token"
	DtVaultPath             = "dt_vault_path"
	VaultAddress            = "vault_address"
	CloudTrailCmdLists      = "cloudtrail_cmd_lists"
	GitLabToken             = "gitlab_access"
	JiraTokenRegex          = "^[A-Z0-9]{7}$"        // #nosec G101
	PdTokenRegex            = "^[a-zA-Z0-9+_-]{20}$" // #nosec G101
	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+.*$`
	GitLabTokenRegex        = `^[a-zA-Z0-9]{20}$` // #nosec G101
)

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 ValidateGitLabToken added in v0.39.0

func ValidateGitLabToken(GitLabtoken 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