Documentation ¶
Index ¶
- type App
- type AppLogLine
- type CliClient
- type Client
- type RestClient
- func (c *RestClient) CreateApp(name string, memory int) (string, error)
- func (c *RestClient) GetLogs(appGUID string, num int) ([]AppLogLine, error)
- func (c *RestClient) GetLogsRaw(appGUID string, num int) ([]string, error)
- func (c *RestClient) ListApps() (apps []App, err error)
- func (c *RestClient) MakeRequest(method string, path string, params interface{}, response interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppLogLine ¶
type CliClient ¶
func NewCliClient ¶
type RestClient ¶
type RestClient struct { TargetURL string Token string Space string // contains filtered or unexported fields }
func NewRestClient ¶
func NewRestClient(targetUrl, token, space string) *RestClient
func (*RestClient) CreateApp ¶
func (c *RestClient) CreateApp(name string, memory int) (string, error)
CreateApp only creates the application. It is an equivalent of `s create-app --json`.
func (*RestClient) GetLogs ¶
func (c *RestClient) GetLogs(appGUID string, num int) ([]AppLogLine, error)
func (*RestClient) GetLogsRaw ¶
func (c *RestClient) GetLogsRaw(appGUID string, num int) ([]string, error)
func (*RestClient) ListApps ¶
func (c *RestClient) ListApps() (apps []App, err error)
func (*RestClient) MakeRequest ¶
func (c *RestClient) MakeRequest(method string, path string, params interface{}, response interface{}) error
Click to show internal directories.
Click to hide internal directories.