Documentation ¶
Index ¶
- Constants
- func AddOrReplaceEnvironment(env []string, newEnvName string, newEnvVal string) []string
- func AppGUID(appName string) string
- func BindRouteToApplication(app string, domain string, host string, path string)
- func BuildConfigurablePlugin(pluginType string, name string, version string, pluginCommands []PluginCommand) string
- func CF(args ...string) *Session
- func CFWithEnv(envVars map[string]string, args ...string) *Session
- func CFWithStdin(stdin io.Reader, args ...string) *Session
- func ClearTarget()
- func ConvertPathToRegularExpression(path string) string
- func CreateOrg(org string)
- func CreateOrgAndSpace(org string, space string)
- func CreateSpace(space string)
- func CreateV2Client(homeDir string) *ccv2.Client
- func CustomCF(cfEnv CFEnv, args ...string) *Session
- func DestroyHomeDir(homeDir string)
- func DomainName(prefix ...string) string
- func GetAPI() string
- func GetAppGuid(appName string) string
- func GetCredentials() (string, string)
- func GetIsolationSegmentGUID(name string) string
- func GetOrgGUID(orgName string) string
- func GetSpaceGUID(spaceName string) string
- func InstallConfigurablePlugin(name string, version string, pluginCommands []PluginCommand)
- func InstallConfigurablePluginFailsUninstall(name string, version string, pluginCommands []PluginCommand)
- func InvalidAccessToken() string
- func IsolationSegmentName(name ...string) string
- func LoginCF() string
- func LogoutCF()
- func NewAppName() string
- func NewOrgName() string
- func NewPluginRepositoryServer(pluginRepo PluginRepository) *Server
- func NewPluginRepositoryTLSServer(pluginRepo PluginRepository) *Server
- func NewSecGroupName() string
- func NewSpaceName() string
- func PluginPlatform() string
- func PrefixedRandomName(namePrefix string) string
- func QuickDeleteOrg(orgName string)
- func QuickDeleteSpace(spaceName string)
- func QuotaName(name ...string) string
- func RandomName() string
- func RandomPassword() string
- func RandomUsername() string
- func RunIfExperimental(msg string)
- func SetAPI() (string, string)
- func SetConfig(cb func(conf *configv3.Config))
- func SetHomeDir() string
- func SetupReadOnlyOrgAndSpace() (string, string)
- func Sha1Sum(path string) string
- func SkipIfExperimental(msg string)
- func TargetOrg(org string)
- func TargetOrgAndSpace(org string, space string)
- func TurnOffColors()
- func UnbindRouteToApplication(app string, domain string, host string, path string)
- func UnsetAPI()
- func WithBananaPantsApp(f func(dir string))
- func WithHelloWorldApp(f func(dir string))
- type Assets
- type Binary
- type CFEnv
- type Domain
- type Plan
- type Plugin
- type PluginCommand
- type PluginRepository
- type PluginRepositoryServerWithPlugin
- func (pluginRepoServer *PluginRepositoryServerWithPlugin) Cleanup()
- func (pluginRepoServer *PluginRepositoryServerWithPlugin) Init(pluginName string, version string, platform string, ...)
- func (pluginRepoServer *PluginRepositoryServerWithPlugin) PluginSize() int64
- func (pluginRepoServer *PluginRepositoryServerWithPlugin) URL() string
- type Route
- type SecurityGroup
- type ServiceBroker
Constants ¶
const ( GUIDRegex = "[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12}" //IPAddressRegex = "\\d{1,3}.\\d{1,3}.\\d{1,3}.\\d{1,3}" ISO8601Regex = "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{1,3}[+-]\\d{4}" )
const ( DefaultMemoryLimit = "256M" DefaultDiskLimit = "1G" )
Variables ¶
This section is empty.
Functions ¶
func AddOrReplaceEnvironment ¶
func BindRouteToApplication ¶
func BuildConfigurablePlugin ¶
func BuildConfigurablePlugin(pluginType string, name string, version string, pluginCommands []PluginCommand) string
func CFWithStdin ¶
func ClearTarget ¶
func ClearTarget()
func ConvertPathToRegularExpression ¶
ConvertPathToRegularExpression converts a windows file path into a string which may be embedded in a ginkgo-compatible regular expression.
func CreateOrgAndSpace ¶
func CreateSpace ¶
func CreateSpace(space string)
func CreateV2Client ¶
func DestroyHomeDir ¶
func DestroyHomeDir(homeDir string)
func DomainName ¶
func GetAppGuid ¶
func GetCredentials ¶
func GetIsolationSegmentGUID ¶
func GetOrgGUID ¶
func GetSpaceGUID ¶
func InstallConfigurablePlugin ¶
func InstallConfigurablePlugin(name string, version string, pluginCommands []PluginCommand)
func InstallConfigurablePluginFailsUninstall ¶
func InstallConfigurablePluginFailsUninstall(name string, version string, pluginCommands []PluginCommand)
func InvalidAccessToken ¶
func InvalidAccessToken() string
func IsolationSegmentName ¶
func NewAppName ¶
func NewAppName() string
func NewOrgName ¶
func NewOrgName() string
func NewPluginRepositoryServer ¶
func NewPluginRepositoryServer(pluginRepo PluginRepository) *Server
func NewPluginRepositoryTLSServer ¶
func NewPluginRepositoryTLSServer(pluginRepo PluginRepository) *Server
func NewSecGroupName ¶
func NewSecGroupName() string
func NewSpaceName ¶
func NewSpaceName() string
func PluginPlatform ¶
func PluginPlatform() string
func PrefixedRandomName ¶
func QuickDeleteOrg ¶
func QuickDeleteOrg(orgName string)
func QuickDeleteSpace ¶
func QuickDeleteSpace(spaceName string)
func RandomName ¶
func RandomName() string
func RandomPassword ¶
func RandomPassword() string
func RandomUsername ¶
func RandomUsername() string
func RunIfExperimental ¶
func RunIfExperimental(msg string)
RunIfExperimental is for tests that should be skipped if CF_CLI_EXPERIMENTAL is set to false.
func SetHomeDir ¶
func SetHomeDir() string
func SkipIfExperimental ¶
func SkipIfExperimental(msg string)
SkipIfExperimental is for tests that should be skipped if CF_CLI_EXPERIMENTAL is set to true.
func TargetOrgAndSpace ¶
func TurnOffColors ¶
func TurnOffColors()
func WithBananaPantsApp ¶
func WithBananaPantsApp(f func(dir string))
WithBananaPantsApp creates a simple application to use with your CLI command (typically CF Push). When pushing, be aware of specifying '-b staticfile_buildpack" so that your app will correctly start up with the proper buildpack.
func WithHelloWorldApp ¶
func WithHelloWorldApp(f func(dir string))
WithHelloWorldApp creates a simple application to use with your CLI command (typically CF Push). When pushing, be aware of specifying '-b staticfile_buildpack" so that your app will correctly start up with the proper buildpack.
Types ¶
type Domain ¶
func (Domain) CreateShared ¶
func (d Domain) CreateShared()
func (Domain) CreateWithRouterGroup ¶
type PluginCommand ¶
type PluginRepository ¶
type PluginRepository struct {
Plugins []Plugin `json:"plugins"`
}
type PluginRepositoryServerWithPlugin ¶
type PluginRepositoryServerWithPlugin struct {
// contains filtered or unexported fields
}
func NewPluginRepositoryServerWithPlugin ¶
func NewPluginRepositoryServerWithPlugin(pluginName string, version string, platform string, shouldCalculateChecksum bool) *PluginRepositoryServerWithPlugin
func (*PluginRepositoryServerWithPlugin) Cleanup ¶
func (pluginRepoServer *PluginRepositoryServerWithPlugin) Cleanup()
func (*PluginRepositoryServerWithPlugin) Init ¶
func (pluginRepoServer *PluginRepositoryServerWithPlugin) Init(pluginName string, version string, platform string, shouldCalculateChecksum bool)
func (*PluginRepositoryServerWithPlugin) PluginSize ¶
func (pluginRepoServer *PluginRepositoryServerWithPlugin) PluginSize() int64
func (*PluginRepositoryServerWithPlugin) URL ¶
func (pluginRepoServer *PluginRepositoryServerWithPlugin) URL() string
type SecurityGroup ¶
type SecurityGroup struct { Name string `json:"-"` Protocol string `json:"protocol"` Destination string `json:"destination"` Ports string `json:"ports"` Description string `json:"description"` }
func NewSecurityGroup ¶
func (SecurityGroup) Create ¶
func (s SecurityGroup) Create()
func (SecurityGroup) Delete ¶
func (s SecurityGroup) Delete()
type ServiceBroker ¶
type ServiceBroker struct { Name string Path string AppsDomain string Service struct { Name string `json:"name"` ID string `json:"id"` DashboardClient struct { ID string `json:"id"` Secret string `json:"secret"` RedirectUri string `json:"redirect_uri"` } } SyncPlans []Plan AsyncPlans []Plan }
func NewServiceBroker ¶
func (ServiceBroker) Configure ¶
func (b ServiceBroker) Configure()
func (ServiceBroker) Create ¶
func (b ServiceBroker) Create()
func (ServiceBroker) Delete ¶
func (b ServiceBroker) Delete()
func (ServiceBroker) Destroy ¶
func (b ServiceBroker) Destroy()
func (ServiceBroker) Push ¶
func (b ServiceBroker) Push()
func (ServiceBroker) ToJSON ¶
func (b ServiceBroker) ToJSON() string