helpers

package
v6.22.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2016 License: Apache-2.0 Imports: 14 Imported by: 43

Documentation

Index

Constants

View Source
const (
	DefaultMemoryLimit         = "256M"
	DefaultDiskLimit           = "1G"
	CFServiceBrokerLongTimeout = 1 * time.Minute
)
View Source
const (
	CFRouteLongTimeout = 30 * time.Second
)
View Source
const (
	CFRouteMappingLongTimeout = 30 * time.Second
)

Variables

This section is empty.

Functions

func AddOrReplaceEnvironment

func AddOrReplaceEnvironment(newEnvName string, newEnvVal string) []string

func BindRouteToApplication

func BindRouteToApplication(app string, domain string, host string, path string)

func CF

func CF(args ...string) *Session

func CFWithStdin

func CFWithStdin(stdin io.Reader, args ...string) *Session

func GetAppGuid

func GetAppGuid(appName string) string

func PrefixedRandomName

func PrefixedRandomName(namePrefix string) string

func RandomName

func RandomName() string

func UnbindRouteToApplication

func UnbindRouteToApplication(app string, domain string, host string, path string)

func WithSimpleApp

func WithSimpleApp(f func(dir string))

Types

type Assets

type Assets struct {
	ServiceBroker string
}

func NewAssets

func NewAssets() Assets

type Domain

type Domain struct {
	Org  string
	Name string
}

func NewDomain

func NewDomain(org string, name string) Domain

func (Domain) Create

func (d Domain) Create()

func (Domain) Delete

func (d Domain) Delete()

func (Domain) Share

func (d Domain) Share()

type Plan

type Plan struct {
	Name string `json:"name"`
	ID   string `json:"id"`
}

type Route

type Route struct {
	Space  string
	Host   string
	Domain string
	Path   string
}

func NewRoute

func NewRoute(space string, domain string, hostname string, path string) Route

func (Route) Create

func (r Route) Create()

func (Route) Delete

func (r Route) 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 NewServiceBroker(name string, path string, appsDomain string, serviceName string, planName string) ServiceBroker

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

Jump to

Keyboard shortcuts

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