deploy

package
v0.0.0-...-4f22f6d Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllowedDBSizes = []string{"small", "medium", "large", "xlarge", "2xlarge", "4xlarge"}

AllowedDBSizes contains the valid values for --db-size flag

View Source
var PersistentDiskSizes = []string{"small", "default", "medium", "large"}

PersistentDiskSizes are the permitted concourse persistent disk sizes

View Source
var WebSizes = []string{"small", "medium", "large", "xlarge", "2xlarge"}

WebSizes are the permitted concourse web sizes

View Source
var WorkerSizes = []string{"medium", "large", "xlarge", "2xlarge", "4xlarge", "12xlarge", "24xlarge"}

WorkerSizes are the permitted concourse worker sizes

Functions

This section is empty.

Types

type Args

type Args struct {
	IAAS                string
	IAASIsSet           bool
	Region              string
	RegionIsSet         bool
	Domain              string
	DomainIsSet         bool
	TLSCert             string
	TLSCertIsSet        bool
	TLSKey              string
	TLSKeyIsSet         bool
	WorkerCount         int
	WorkerCountIsSet    bool
	WorkerSize          string
	WorkerSizeIsSet     bool
	WebSize             string
	WebSizeIsSet        bool
	PersistentDiskSize  string
	PersistentDiskIsSet bool
	SelfUpdate          bool
	SelfUpdateIsSet     bool
	DBSize              string
	// DBSizeIsSet is true if the user has manually specified the db-size (ie, it's not the default)
	DBSizeIsSet                    bool
	RDSDiskEncryption              bool
	RDSDiskEncryptionIsSet         bool
	EnableGlobalResources          bool
	EnableGlobalResourcesIsSet     bool
	EnablePipelineInstances        bool
	EnablePipelineInstancesIsSet   bool
	InfluxDbRetention              string
	InfluxDbRetentionIsSet         bool
	Namespace                      string
	NamespaceIsSet                 bool
	AllowIPs                       string
	AllowIPsIsSet                  bool
	BitbucketAuthClientID          string
	BitbucketAuthClientIDIsSet     bool
	BitbucketAuthClientSecret      string
	BitbucketAuthClientSecretIsSet bool
	// BitbucketAuthIsSet is true if the user has specified both the --bitbucket-auth-client-secret and --bitbucket-auth-client-id flags
	BitbucketAuthIsSet          bool
	GithubAuthClientID          string
	GithubAuthClientIDIsSet     bool
	GithubAuthClientSecret      string
	GithubAuthClientSecretIsSet bool
	// GithubAuthIsSet is true if the user has specified both the --github-auth-client-secret and --github-auth-client-id flags
	GithubAuthIsSet           bool
	GithubAuthHost            string
	GithubAuthHostIsSet       bool
	GithubAuthCaCert          string
	GithubAuthCaCertIsSet     bool
	GithubEnterpriseAuthIsSet bool
	// GithubEnterpriseAuthIsSet is true if the user has specified both the --github-auth-host and --github-auth-ca-cert flags
	MainGithubUsers      string
	MainGithubUsersIsSet bool
	MainGithubTeams      string
	MainGithubTeamsIsSet bool
	MainGithubOrgs       string
	MainGithubOrgsIsSet  bool
	// MainGithubAuthIsSet is true if any main team github auth flags have been used
	MainGithubAuthIsSet            bool
	MicrosoftAuthClientID          string
	MicrosoftAuthClientIDIsSet     bool
	MicrosoftAuthClientSecret      string
	MicrosoftAuthClientSecretIsSet bool
	MicrosoftAuthTenant            string
	MicrosoftAuthTenantIsSet       bool
	// MicrosoftAuthIsSet is true if the user has specified both the --microsoft-auth-client-secret and --microsoft-auth-client-id flags
	MicrosoftAuthIsSet bool
	NoMetrics          bool
	NoMetricsIsSet     bool
	Tags               cli.StringSlice
	// TagsIsSet is true if the user has specified tags using --add-tag
	TagsIsSet        bool
	Spot             bool
	SpotIsSet        bool
	Zone             string
	ZoneIsSet        bool
	WorkerType       string
	WorkerTypeIsSet  bool
	NetworkCIDR      string
	NetworkCIDRIsSet bool
	PublicCIDR       string
	PublicCIDRIsSet  bool
	PrivateCIDR      string
	PrivateCIDRIsSet bool
	RDS1CIDR         string
	RDS1CIDRIsSet    bool
	RDS2CIDR         string
	RDS2CIDRIsSet    bool
}

Args are arguments passed to the deploy command

func (*Args) MarkSetFlags

func (a *Args) MarkSetFlags(c FlagSetChecker) error

MarkSetFlags is marking the IsSet DeployArgs

func (Args) Validate

func (a Args) Validate() error

Validate validates that flag interdependencies

type ContextWrapper

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

ContextWrapper wraps a CLI context for testing

func (*ContextWrapper) FlagNames

func (t *ContextWrapper) FlagNames() (names []string)

FlagNames lists all flags it's possible for a user to provide

func (*ContextWrapper) IsSet

func (t *ContextWrapper) IsSet(name string) bool

IsSet tells you if a user provided a flag

type FlagSetChecker

type FlagSetChecker interface {
	IsSet(name string) bool
	FlagNames() (names []string)
}

FlagSetChecker allows us to find out if flags were set, and what the names of all flags are

Jump to

Keyboard shortcuts

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