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 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 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 Namespace string NamespaceIsSet bool AllowIPs string AllowIPsIsSet 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 Tags cli.StringSlice // TagsIsSet is true if the user has specified tags using --tags TagsIsSet bool Spot bool SpotIsSet bool Preemptible 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) ModifyGithub ¶
func (a *Args) ModifyGithub(GithubAuthClientID, GithubAuthClientSecret string, GithubAuthIsSet bool)
ModifyGithub allows mutation of github related fields
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 ¶
FlagSetChecker allows us to find out if flags were set, adn what the names of all flags are
Click to show internal directories.
Click to hide internal directories.