cf_cli_adapter

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASG

type ASG struct {
	Resources []struct {
		Entity struct {
			Rules []struct {
				Destination string `json:"destination"`
				Ports       string `json:"ports"`
				Protocol    string `json:"protocol"`
			} `json:"rules"`
		} `json:"entity"`
	} `json:"resources"`
}

type Adapter

type Adapter struct {
	CfCliPath string
}

func (*Adapter) AddNetworkPolicy

func (a *Adapter) AddNetworkPolicy(sourceApp, destApp string, port int, protocol string) error

func (*Adapter) AppCount

func (a *Adapter) AppCount(orgGuid string) (int, error)

func (*Adapter) AppGuid

func (a *Adapter) AppGuid(name string) (string, error)

func (*Adapter) Auth

func (a *Adapter) Auth(user, password string) error

func (*Adapter) BindSecurityGroup

func (a *Adapter) BindSecurityGroup(name, org, space string) error

func (*Adapter) CheckApp

func (a *Adapter) CheckApp(guid string) ([]byte, error)

func (*Adapter) CreateOrg

func (a *Adapter) CreateOrg(name string) error

func (*Adapter) CreateQuota

func (a *Adapter) CreateQuota(name, memory string, instanceMemory, routes, serviceInstances, appInstances, routePorts int) error

func (*Adapter) CreateSecurityGroup

func (a *Adapter) CreateSecurityGroup(name, filepath string) error

func (*Adapter) CreateSpace

func (a *Adapter) CreateSpace(spaceName, orgName string) error

func (*Adapter) Curl

func (a *Adapter) Curl(method, path, inputFile string) ([]byte, error)

func (*Adapter) Delete

func (a *Adapter) Delete(appName string) error

func (*Adapter) DeleteOrg

func (a *Adapter) DeleteOrg(name string) error

func (*Adapter) DeleteQuota

func (a *Adapter) DeleteQuota(quota string) error

func (*Adapter) DeleteSecurityGroup

func (a *Adapter) DeleteSecurityGroup(name string) error

func (*Adapter) OrgGuid

func (a *Adapter) OrgGuid(name string) (string, error)

func (*Adapter) Push

func (a *Adapter) Push(name, directory, manifestFile string) error

func (*Adapter) RemoveNetworkPolicy

func (a *Adapter) RemoveNetworkPolicy(sourceApp, destApp string, port int, protocol string) error

func (*Adapter) Scale

func (a *Adapter) Scale(name string, instances int) error

func (*Adapter) SecurityGroup

func (a *Adapter) SecurityGroup(name string) (string, error)

func (*Adapter) SetApiWithSsl

func (a *Adapter) SetApiWithSsl(api string) error

func (*Adapter) SetApiWithoutSsl

func (a *Adapter) SetApiWithoutSsl(api string) error

func (*Adapter) SetQuota

func (a *Adapter) SetQuota(org, quota string) error

func (*Adapter) TargetOrg

func (a *Adapter) TargetOrg(name string) error

func (*Adapter) TargetSpace

func (a *Adapter) TargetSpace(name string) error

func (*Adapter) UnbindSecurityGroup

func (a *Adapter) UnbindSecurityGroup(name, org, space string) error

type Apps

type Apps struct {
	TotalResults int `json:"total_results"`
}

type CmdErr

type CmdErr struct {
	Out     string
	Err     string
	Message string
}

func (*CmdErr) Error

func (e *CmdErr) Error() string

Jump to

Keyboard shortcuts

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