Documentation
¶
Index ¶
- type Client
- func (c *Client) BindService(appGuid string, serviceInstanceGuid string, parameters map[string]interface{}) (Credentials, error)
- func (c *Client) CreateApp(name string, spaceGUID string) (guid string, err error)
- func (c *Client) DestroyApp(appGuid string) error
- func (c *Client) GetAppEnv(appGuid string) (*Env, error)
- func (c *Client) GetNewAccessToken() (string, error)
- func (c *Client) GetOrgByName(name string) (*gocfclient.Org, error)
- func (c *Client) GetServiceInstances(filters ...string) (map[string]*gocfclient.ServiceInstance, error)
- func (c *Client) GetSpaceByName(orgGuid string, name string) (*gocfclient.Space, error)
- func (c *Client) PollForAppState(appGuid string, state string, maxRetries int) error
- func (c *Client) SSHCode() (string, error)
- func (c *Client) StartApp(appGuid string) error
- func (c *Client) UploadStaticAppBits(appGuid string) error
- type Credentials
- type Env
- type SystemEnv
- type VcapService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Verbose bool CFClient *gocfclient.Client ApiEndpoint string InsecureSkipVerify bool Token string Info *gocfclient.Info }
func (*Client) BindService ¶
func (*Client) DestroyApp ¶
func (*Client) GetNewAccessToken ¶
func (*Client) GetOrgByName ¶
func (c *Client) GetOrgByName(name string) (*gocfclient.Org, error)
func (*Client) GetServiceInstances ¶
func (c *Client) GetServiceInstances(filters ...string) (map[string]*gocfclient.ServiceInstance, error)
func (*Client) GetSpaceByName ¶
func (*Client) PollForAppState ¶
func (*Client) UploadStaticAppBits ¶
type Credentials ¶
type SystemEnv ¶
type SystemEnv struct {
VcapServices map[string][]*VcapService `json:"VCAP_SERVICES"`
}
type VcapService ¶
type VcapService struct { Name string Credentials credentials }
Click to show internal directories.
Click to hide internal directories.