Documentation ¶
Index ¶
- func LoadEnv() environment
- func NewTokenCache(cfg OauthConfig) *internal.TokenCache
- type AppGuidCache
- type Capi
- type Client
- func (c *Client) CreateTask(appName, command string, cfg models.TaskConfig, opts ...models.HeaderOption) (models.Task, error)
- func (c *Client) Process(appName, processType string) (models.Process, error)
- func (c *Client) Scale(appName string, instanceTarget uint) error
- func (c *Client) Stop(appName string) error
- type Config
- type Oauth
- type OauthConfig
- type VcapApplication
- type VcapServices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTokenCache ¶
func NewTokenCache(cfg OauthConfig) *internal.TokenCache
Types ¶
type AppGuidCache ¶
type Capi ¶
type Capi interface { Apps(query map[string]string) ([]models.App, error) Process(appGuid, processType string) (models.Process, error) Scale(appGuid, processType string, instanceCount uint) error CreateTask(appGuid, command string, cfg models.TaskConfig, opts ...models.HeaderOption) (models.Task, error) Stop(appGuid string) error }
type Client ¶
type Client struct { CloudControllerUrl string SpaceGuid string Oauth Oauth Capi Capi AppGuidCache AppGuidCache }
func (*Client) CreateTask ¶
func (c *Client) CreateTask(appName, command string, cfg models.TaskConfig, opts ...models.HeaderOption) (models.Task, error)
type OauthConfig ¶
type VcapApplication ¶
VcapApplication is information provided by the Cloud Foundry runtime
func (*VcapApplication) UnmarshalEnv ¶
func (v *VcapApplication) UnmarshalEnv(data string) error
UnmarshalEnv decodes a VcapApplication for envstruct.Load
type VcapServices ¶
type VcapServices struct { Credhub []struct { Credentials map[string]string `json:"credentials"` } `json:"credhub"` UserProvided []userProvided `json:"user-provided"` }
VcapServices is information provided by the Cloud Foundry runtime
func (*VcapServices) UnmarshalEnv ¶
func (v *VcapServices) UnmarshalEnv(data string) error
UnmarshalEnv decodes a VcapServices for envstruct.Load
Click to show internal directories.
Click to hide internal directories.