cf_cli_adapter

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

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) AllowAccess

func (a *Adapter) AllowAccess(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(name 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) RemoveAccess

func (a *Adapter) RemoveAccess(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

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