Documentation ¶
Overview ¶
Package flag should not be imported by external consumers. It was not designed for external use.
Index ¶
- Constants
- func ConvertToMb(val string) (uint64, error)
- func ParseStringToInt(str string) (int, error)
- type APIPath
- type APITarget
- type AddNetworkPolicyArgs
- type AddNetworkPolicyArgsV7
- type AddPluginRepoArgs
- type AppDomain
- type AppDroplet
- type AppInstance
- type AppName
- type AppRenameArgs
- type AppType
- type Authentication
- type BindSecurityGroupArgs
- type BindSecurityGroupV7Args
- type BindServiceArgs
- type BindingName
- type Buildpack
- type BuildpackName
- type Color
- type Command
- type CommandName
- type CopySourceArgs
- type CreateBuildpackArgs
- type CreateServiceArgs
- type CreateUser
- type CredentialsOrJSON
- type DeleteServiceAuthTokenArgs
- type DeploymentStrategy
- type DockerImage
- type Domain
- type Droplet
- type EnvironmentArgs
- type EnvironmentVariable
- type Feature
- type FilesArgs
- type HealthCheckType
- type HealthCheckTypeWithDeprecatedValue
- type HostDomain
- type InstallPluginArgs
- type Instances
- type IntegerLimit
- type IsolationSegmentName
- type JSONOrFileWithValidation
- type LabelsArgs
- type Locale
- type ManifestPathWithExistenceCheck
- type Megabytes
- type MemoryWithUnlimited
- type MigrateServiceInstancesArgs
- type NetworkPort
- type NetworkProtocol
- type OptionalAppName
- type OptionalString
- type OrgDomain
- type OrgIsolationArgs
- type OrgRole
- type OrgRoleArgs
- type OrgSpace
- type Organization
- type OrganizationQuota
- type ParamsAsJSON
- type Path
- type PathWithAt
- type PathWithBool
- type PathWithExistenceCheck
- type PathWithExistenceCheckOrURL
- type PluginName
- type PluginRepoName
- type Port
- type PositiveInteger
- type Quota
- type RemoveNetworkPolicyArgs
- type RemoveNetworkPolicyArgsV7
- type Rename
- type RenameBuildpackArgs
- type RenameOrgArgs
- type RenameServiceArgs
- type RenameServiceBrokerArgs
- type RenameSpace
- type RenameSpaceArgs
- type ResetOrgDefaultIsolationArgs
- type ResetSpaceIsolationArgs
- type RouteServiceArgs
- type RunTaskArgs
- type RunTaskArgsV7
- type SSHPortForwarding
- type SecurityGroup
- type SecurityGroupArgs
- type SecurityGroupLifecycle
- type Service
- type ServiceAuthTokenArgs
- type ServiceBroker
- type ServiceBrokerArgs
- type ServiceInstance
- type ServiceInstanceKey
- type SetEnvVarGroup
- type SetEnvironmentArgs
- type SetHealthCheckArgs
- type SetLabelArgs
- type SetOrgQuotaArgs
- type SetSpaceQuotaArgs
- type Space
- type SpaceDomain
- type SpaceIsolationArgs
- type SpaceQuota
- type SpaceRole
- type SpaceRoleArgs
- type SpaceUsersArgs
- type StackName
- type Tags
- type TerminateTaskArgs
- type Timeout
- type UnbindSecurityGroupArgs
- type UnbindSecurityGroupV7Args
- type UnsetEnvironmentArgs
- type UnsetLabelArgs
- type UnsetSpaceQuotaArgs
- type Username
- type V6SetHealthCheckArgs
- type V7RoutePath
Constants ¶
View Source
const (
AllowedUnits = "mg"
)
View Source
const DefaultLocalAddress = "localhost"
View Source
const WorkAroundPrefix = "\U000026f3"
WorkAroundPrefix is the flag in hole emoji
Variables ¶
This section is empty.
Functions ¶
func ConvertToMb ¶
func ParseStringToInt ¶
Types ¶
type APIPath ¶
type APIPath struct {
Path string `positional-arg-name:"PATH" required:"true" description:"The API endpoint"`
}
type APITarget ¶
type APITarget struct {
URL string `positional-arg-name:"URL" description:"API URL to target"`
}
type AddNetworkPolicyArgs ¶
type AddNetworkPolicyArgs struct {
SourceApp string `positional-arg-name:"SOURCE_APP" required:"true" description:"The source app"`
}
type AddNetworkPolicyArgsV7 ¶
type AddPluginRepoArgs ¶
type AppDroplet ¶
type AppInstance ¶
type AppName ¶
type AppName struct {
AppName string `positional-arg-name:"APP_NAME" required:"true" description:"The application name"`
}
type AppRenameArgs ¶
type Authentication ¶
type BindSecurityGroupArgs ¶
type BindSecurityGroupArgs struct { SecurityGroupName string `positional-arg-name:"SECURITY_GROUP" required:"true" description:"The security group name"` OrganizationName string `positional-arg-name:"ORG" required:"true" description:"The organization group name"` SpaceName string `positional-arg-name:"SPACE" description:"The space name"` }
type BindSecurityGroupV7Args ¶
type BindServiceArgs ¶
type BindingName ¶
type BindingName struct {
Value string
}
func (*BindingName) UnmarshalFlag ¶
func (b *BindingName) UnmarshalFlag(val string) error
type BuildpackName ¶
type BuildpackName struct {
Buildpack string `positional-arg-name:"BUILDPACK" required:"true" description:"The buildpack"`
}
type Color ¶
func (*Color) UnmarshalFlag ¶
type CommandName ¶
type CommandName struct {
CommandName string `positional-arg-name:"COMMAND_NAME" description:"The command name"`
}
type CopySourceArgs ¶
type CreateBuildpackArgs ¶
type CreateBuildpackArgs struct { Buildpack string `positional-arg-name:"BUILDPACK" required:"true" description:"The buildpack"` Path PathWithExistenceCheckOrURL `positional-arg-name:"PATH" required:"true" description:"The path to the buildpack file"` Position int `positional-arg-name:"POSITION" required:"true" description:"The position that sets priority"` }
type CreateServiceArgs ¶
type CreateServiceArgs struct { Service string `positional-arg-name:"SERVICE" required:"true" description:"The service offering"` ServicePlan string `positional-arg-name:"SERVICE_PLAN" required:"true" description:"The service plan that the service instance will use"` ServiceInstance string `positional-arg-name:"SERVICE_INSTANCE" required:"true" description:"The service instance"` }
type CreateUser ¶
type CredentialsOrJSON ¶
type CredentialsOrJSON struct { IsSet bool UserPromptCredentials []string Value map[string]interface{} }
func (*CredentialsOrJSON) Complete ¶
func (c *CredentialsOrJSON) Complete(prefix string) []flags.Completion
func (*CredentialsOrJSON) UnmarshalFlag ¶
func (c *CredentialsOrJSON) UnmarshalFlag(input string) error
type DeploymentStrategy ¶
type DeploymentStrategy struct {
Name constant.DeploymentStrategy
}
func (DeploymentStrategy) Complete ¶
func (DeploymentStrategy) Complete(prefix string) []flags.Completion
func (*DeploymentStrategy) UnmarshalFlag ¶
func (h *DeploymentStrategy) UnmarshalFlag(val string) error
type DockerImage ¶
type DockerImage struct {
Path string
}
func (*DockerImage) UnmarshalFlag ¶
func (d *DockerImage) UnmarshalFlag(val string) error
type Domain ¶
type Domain struct {
Domain string `positional-arg-name:"DOMAIN" required:"true" description:"The domain"`
}
type EnvironmentArgs ¶
type EnvironmentArgs struct {
AppName string `positional-arg-name:"APP_NAME" required:"true" description:"The application name"`
}
type EnvironmentVariable ¶
type EnvironmentVariable string
func (EnvironmentVariable) Complete ¶
func (EnvironmentVariable) Complete(prefix string) []flags.Completion
func (*EnvironmentVariable) UnmarshalFlag ¶
func (e *EnvironmentVariable) UnmarshalFlag(val string) error
type Feature ¶
type Feature struct {
Feature string `positional-arg-name:"FEATURE_NAME" required:"true" description:"The feature flag name"`
}
type HealthCheckType ¶
type HealthCheckType struct {
Type constant.HealthCheckType
}
func (HealthCheckType) Complete ¶
func (HealthCheckType) Complete(prefix string) []flags.Completion
func (*HealthCheckType) UnmarshalFlag ¶
func (h *HealthCheckType) UnmarshalFlag(val string) error
type HealthCheckTypeWithDeprecatedValue ¶
type HealthCheckTypeWithDeprecatedValue struct {
Type string
}
func (HealthCheckTypeWithDeprecatedValue) Complete ¶
func (HealthCheckTypeWithDeprecatedValue) Complete(prefix string) []flags.Completion
func (*HealthCheckTypeWithDeprecatedValue) UnmarshalFlag ¶
func (h *HealthCheckTypeWithDeprecatedValue) UnmarshalFlag(val string) error
type HostDomain ¶
type InstallPluginArgs ¶
type InstallPluginArgs struct {
PluginNameOrLocation Path `` /* 230-byte string literal not displayed */
}
type IntegerLimit ¶
When setting limits allows -1 as as an unlimited value. Unlimited value is represented by nil
func (*IntegerLimit) IsValidValue ¶
func (i *IntegerLimit) IsValidValue(val string) error
func (*IntegerLimit) UnmarshalFlag ¶
func (i *IntegerLimit) UnmarshalFlag(val string) error
type IsolationSegmentName ¶
type IsolationSegmentName struct {
IsolationSegmentName string `positional-arg-name:"SEGMENT_NAME" required:"true" description:"The isolation segment name"`
}
type JSONOrFileWithValidation ¶
type JSONOrFileWithValidation map[string]interface{}
func (JSONOrFileWithValidation) Complete ¶
func (JSONOrFileWithValidation) Complete(prefix string) []flags.Completion
func (*JSONOrFileWithValidation) UnmarshalFlag ¶
func (p *JSONOrFileWithValidation) UnmarshalFlag(pathOrJSON string) error
type LabelsArgs ¶
type ManifestPathWithExistenceCheck ¶
type ManifestPathWithExistenceCheck string
func (ManifestPathWithExistenceCheck) Complete ¶
func (ManifestPathWithExistenceCheck) Complete(prefix string) []flags.Completion
func (*ManifestPathWithExistenceCheck) UnmarshalFlag ¶
func (p *ManifestPathWithExistenceCheck) UnmarshalFlag(path string) error
type MemoryWithUnlimited ¶
func (*MemoryWithUnlimited) IsValidValue ¶
func (m *MemoryWithUnlimited) IsValidValue(val string) error
func (*MemoryWithUnlimited) UnmarshalFlag ¶
func (m *MemoryWithUnlimited) UnmarshalFlag(val string) error
type MigrateServiceInstancesArgs ¶
type MigrateServiceInstancesArgs struct { V1Service string `positional-arg-name:"v1_SERVICE" required:"true" description:"The old service offering"` V1Provider string `positional-arg-name:"v1_PROVIDER" required:"true" description:"The old service provider"` V1Plan string `positional-arg-name:"v1_PLAN" required:"true" description:"The old service plan"` V2Service string `positional-arg-name:"v2_SERVICE" required:"true" description:"The new service offering"` V2Plan string `positional-arg-name:"v2_PLAN" required:"true" description:"The new service plan"` }
type NetworkPort ¶
func (*NetworkPort) UnmarshalFlag ¶
func (np *NetworkPort) UnmarshalFlag(val string) error
type NetworkProtocol ¶
type NetworkProtocol struct {
Protocol string
}
func (NetworkProtocol) Complete ¶
func (NetworkProtocol) Complete(prefix string) []flags.Completion
func (*NetworkProtocol) UnmarshalFlag ¶
func (h *NetworkProtocol) UnmarshalFlag(val string) error
type OptionalAppName ¶
type OptionalAppName struct {
AppName string `positional-arg-name:"APP_NAME" description:"The application name"`
}
type OptionalString ¶
func (*OptionalString) UnmarshalFlag ¶
func (h *OptionalString) UnmarshalFlag(val string) error
type OrgIsolationArgs ¶
type OrgRoleArgs ¶
type OrgRoleArgs struct { Username string `positional-arg-name:"USERNAME" required:"true" description:"The user"` Organization string `positional-arg-name:"ORG" required:"true" description:"The organization"` Role OrgRole `positional-arg-name:"ROLE" required:"true" description:"The organization role"` }
type Organization ¶
type Organization struct {
Organization string `positional-arg-name:"ORG" required:"true" description:"The organization"`
}
type OrganizationQuota ¶
type OrganizationQuota struct {
OrganizationQuotaName string `positional-arg-name:"ORG_QUOTA_NAME" required:"true" description:"The organization quota name"`
}
type ParamsAsJSON ¶
type ParamsAsJSON struct {
JSON string `positional-arg-name:"JSON" required:"true" description:"Parameters as JSON"`
}
type PathWithAt ¶
type PathWithAt string
func (PathWithAt) Complete ¶
func (PathWithAt) Complete(prefix string) []flags.Completion
type PathWithBool ¶
type PathWithBool string
func (PathWithBool) Complete ¶
func (PathWithBool) Complete(prefix string) []flags.Completion
type PathWithExistenceCheck ¶
type PathWithExistenceCheck string
func (PathWithExistenceCheck) Complete ¶
func (PathWithExistenceCheck) Complete(prefix string) []flags.Completion
func (*PathWithExistenceCheck) UnmarshalFlag ¶
func (p *PathWithExistenceCheck) UnmarshalFlag(path string) error
type PathWithExistenceCheckOrURL ¶
type PathWithExistenceCheckOrURL string
func (PathWithExistenceCheckOrURL) Complete ¶
func (PathWithExistenceCheckOrURL) Complete(prefix string) []flags.Completion
func (*PathWithExistenceCheckOrURL) UnmarshalFlag ¶
func (p *PathWithExistenceCheckOrURL) UnmarshalFlag(path string) error
type PluginName ¶
type PluginName struct {
PluginName string `positional-arg-name:"PLUGIN_NAME" required:"true" description:"The plugin name"`
}
type PluginRepoName ¶
type PluginRepoName struct {
PluginRepoName string `positional-arg-name:"REPO_NAME" required:"true" description:"The plugin repo name"`
}
type Port ¶
func (*Port) IsValidValue ¶
IsValidValue returns an error if the input value is not an integer.
func (*Port) UnmarshalFlag ¶
type PositiveInteger ¶
type PositiveInteger struct {
Value int64
}
func (*PositiveInteger) UnmarshalFlag ¶
func (posInt *PositiveInteger) UnmarshalFlag(rawValue string) error
type Quota ¶
type Quota struct {
Quota string `positional-arg-name:"QUOTA" required:"true" description:"The organization quota"`
}
type RemoveNetworkPolicyArgs ¶
type RemoveNetworkPolicyArgs struct {
SourceApp string
}
type RenameBuildpackArgs ¶
type RenameOrgArgs ¶
type RenameServiceArgs ¶
type RenameServiceArgs struct { ServiceInstance string `positional-arg-name:"SERVICE_INSTANCE" required:"true" description:"The service instance to rename"` NewServiceInstanceName string `positional-arg-name:"NEW_SERVICE_INSTANCE" required:"true" description:"The new name of the service instance"` }
type RenameServiceBrokerArgs ¶
type RenameSpace ¶
type RenameSpaceArgs ¶
type ResetOrgDefaultIsolationArgs ¶
type ResetOrgDefaultIsolationArgs struct {
OrgName string `positional-arg-name:"ORG_NAME" required:"true" description:"The organization name"`
}
type ResetSpaceIsolationArgs ¶
type ResetSpaceIsolationArgs struct {
SpaceName string `positional-arg-name:"SPACE_NAME" required:"true" description:"The space name"`
}
type RouteServiceArgs ¶
type RunTaskArgs ¶
type RunTaskArgsV7 ¶
type RunTaskArgsV7 struct {
AppName string `positional-arg-name:"APP_NAME" required:"true" description:"The application name"`
}
type SSHPortForwarding ¶
func (*SSHPortForwarding) UnmarshalFlag ¶
func (s *SSHPortForwarding) UnmarshalFlag(val string) error
type SecurityGroup ¶
type SecurityGroup struct {
SecurityGroup string `positional-arg-name:"SECURITY_GROUP" required:"true" description:"The security group"`
}
type SecurityGroupArgs ¶
type SecurityGroupArgs struct { SecurityGroup string `positional-arg-name:"SECURITY_GROUP" required:"true" description:"The security group"` PathToJSONRules PathWithExistenceCheck `` /* 128-byte string literal not displayed */ }
type SecurityGroupLifecycle ¶
type SecurityGroupLifecycle string
func (SecurityGroupLifecycle) Complete ¶
func (SecurityGroupLifecycle) Complete(prefix string) []flags.Completion
type Service ¶
type Service struct {
ServiceOffering string `positional-arg-name:"SERVICE" required:"true" description:"The service offering name"`
}
type ServiceAuthTokenArgs ¶
type ServiceAuthTokenArgs struct { Label string `positional-arg-name:"LABEL" required:"true" description:"The token label"` Provider string `positional-arg-name:"PROVIDER" required:"true" description:"The token provider"` Token string `positional-arg-name:"TOKEN" required:"true" description:"The token"` }
type ServiceBroker ¶
type ServiceBroker struct {
ServiceBroker string `positional-arg-name:"SERVICE_BROKER" required:"true" description:"The service broker"`
}
type ServiceBrokerArgs ¶
type ServiceBrokerArgs struct { ServiceBroker string `positional-arg-name:"SERVICE_BROKER" required:"true" description:"The service broker name"` Username string `positional-arg-name:"USERNAME" required:"true" description:"The username"` Password string `positional-arg-name:"PASSWORD" required:"true" description:"The password"` URL string `positional-arg-name:"URL" required:"true" description:"The URL of the service broker"` }
type ServiceInstance ¶
type ServiceInstance struct {
ServiceInstance string `positional-arg-name:"SERVICE_INSTANCE" required:"true" description:"The service instance name"`
}
type ServiceInstanceKey ¶
type SetEnvVarGroup ¶
type SetEnvVarGroup struct {
EnvVarGroupJson string `positional-arg-name:"JSON_STRING" required:"true" description:"json string"`
}
type SetEnvironmentArgs ¶
type SetEnvironmentArgs struct { AppName string `positional-arg-name:"APP_NAME" required:"true" description:"The application name"` EnvironmentVariableName string `positional-arg-name:"ENV_VAR_NAME" required:"true" description:"The environment variable name"` EnvironmentVariableValue EnvironmentVariable `positional-arg-name:"ENV_VAR_VALUE" required:"true" description:"The environment variable value"` }
type SetHealthCheckArgs ¶
type SetHealthCheckArgs struct { AppName string `positional-arg-name:"APP_NAME" required:"true" description:"The application name"` HealthCheck HealthCheckType `positional-arg-name:"HEALTH_CHECK_TYPE" required:"true" description:"Set to 'port'"` }
type SetLabelArgs ¶
type SetLabelArgs struct { ResourceType string `positional-arg-name:"RESOURCE" required:"true" description:"The type of resource to label"` ResourceName string `positional-arg-name:"RESOURCE_NAME" required:"true" description:"The name of the resource"` Labels []string `positional-arg-name:"KEY=VALUE" required:"true" description:"A space-separated list of labels to set on the resource"` }
type SetOrgQuotaArgs ¶
type SetSpaceQuotaArgs ¶
type Space ¶
type Space struct {
Space string `positional-arg-name:"SPACE" required:"true" description:"The space"`
}
type SpaceDomain ¶
type SpaceIsolationArgs ¶
type SpaceQuota ¶
type SpaceQuota struct {
SpaceQuota string `positional-arg-name:"SPACE_QUOTA_NAME" required:"true" description:"The space quota"`
}
type SpaceRoleArgs ¶
type SpaceRoleArgs struct { Username string `positional-arg-name:"USERNAME" required:"true" description:"The user"` Organization string `positional-arg-name:"ORG" required:"true" description:"The organization"` Space string `positional-arg-name:"SPACE" required:"true" description:"The space"` Role SpaceRole `positional-arg-name:"ROLE" required:"true" description:"The space role"` }
type SpaceUsersArgs ¶
type StackName ¶
type StackName struct {
StackName string `positional-arg-name:"STACK_NAME" required:"true" description:"The stack name"`
}
type Tags ¶
func (*Tags) UnmarshalFlag ¶
type TerminateTaskArgs ¶
type UnbindSecurityGroupArgs ¶
type UnbindSecurityGroupArgs struct { SecurityGroupName string `positional-arg-name:"SECURITY_GROUP" required:"true" description:"The security group name"` OrganizationName string `positional-arg-name:"ORG" description:"The organization group name"` SpaceName string `positional-arg-name:"SPACE" description:"The space name"` }
type UnbindSecurityGroupV7Args ¶
type UnbindSecurityGroupV7Args struct { SecurityGroupName string `positional-arg-name:"SECURITY_GROUP" required:"true" description:"The security group name"` OrganizationName string `positional-arg-name:"ORG" required:"true" description:"The organization group name"` SpaceName string `positional-arg-name:"SPACE" required:"true" description:"The space name"` }
type UnsetEnvironmentArgs ¶
type UnsetLabelArgs ¶
type UnsetLabelArgs struct { ResourceType string `positional-arg-name:"RESOURCE" required:"true" description:"The type of resource"` ResourceName string `positional-arg-name:"RESOURCE_NAME" required:"true" description:"The name of the resource"` LabelKeys []string `positional-arg-name:"KEY" required:"true" description:"A label to unset on the resource"` }
type UnsetSpaceQuotaArgs ¶
type Username ¶
type Username struct {
Username string `positional-arg-name:"USERNAME" required:"true" description:"The username"`
}
type V6SetHealthCheckArgs ¶
type V6SetHealthCheckArgs struct { AppName string `positional-arg-name:"APP_NAME" required:"true" description:"The application name"` HealthCheck HealthCheckTypeWithDeprecatedValue `positional-arg-name:"HEALTH_CHECK_TYPE" required:"true" description:"Set to 'port' or 'none'"` }
type V7RoutePath ¶
type V7RoutePath struct {
Path string
}
func (*V7RoutePath) UnmarshalFlag ¶
func (h *V7RoutePath) UnmarshalFlag(val string) error
Source Files ¶
- app_type.go
- arguments.go
- binding_name.go
- buildpack.go
- color.go
- command.go
- completions.go
- credentials_or_json.go
- deployment_strategy.go
- docker.go
- droplet.go
- environment_variable.go
- godoc.go
- health_check_type.go
- health_check_type_with_deprecated_value.go
- instances.go
- integer_limit.go
- locale.go
- megabytes.go
- memory_with_unlimited.go
- network_port.go
- network_protocol.go
- optional_string.go
- org_role.go
- parse.go
- path.go
- port.go
- positive_integer.go
- route_path.go
- security_group_lifecycle.go
- space_role.go
- ssh_port_forwarding.go
- tags.go
- timeout.go
Click to show internal directories.
Click to hide internal directories.