cf

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name string
	Guid string
}

type CFPluginAPI

type CFPluginAPI interface {
	CliCommand(...string) ([]string, error)
	CliCommandWithoutTerminalOutput(args ...string) ([]string, error)
	GetCurrentSpace() (plugin_models.Space, error)
	GetService(string) (plugin_models.GetService_Model, error)
	AccessToken() (string, error)
}

type Client

type Client struct {
	MaxAttempts int
	Log         *log.Logger
	Sleep       SleepFunc
	// contains filtered or unexported fields
}

func NewClient

func NewClient(pluginAPI CFPluginAPI) *Client

func (*Client) BindService

func (c *Client) BindService(appName, serviceName string) error

func (*Client) CreateServiceInstance

func (c *Client) CreateServiceInstance(planType, instanceName string) error

func (*Client) CreateTask

func (c *Client) CreateTask(app App, command string) (*Task, error)

func (*Client) DeleteApp

func (c *Client) DeleteApp(appName string) error

func (*Client) DeleteServiceInstance

func (c *Client) DeleteServiceInstance(instanceName string) error

func (*Client) DumpLogs

func (c *Client) DumpLogs(appName string)

func (*Client) GetAppByName

func (c *Client) GetAppByName(name string) (App, error)

func (*Client) GetHostnames

func (c *Client) GetHostnames(instanceName string) ([]string, error)

func (*Client) GetTaskByGUID

func (c *Client) GetTaskByGUID(guid string) (*Task, error)

func (*Client) PushApp

func (c *Client) PushApp(path, appName string) error

func (*Client) RenameService

func (c *Client) RenameService(oldName, newName string) error

func (*Client) RunTask

func (c *Client) RunTask(appName, command string) error

func (*Client) ServiceExists

func (c *Client) ServiceExists(serviceName string) bool

func (*Client) StartApp

func (c *Client) StartApp(appName string) error

func (*Client) UpdateServiceConfig

func (c *Client) UpdateServiceConfig(instanceName string, jsonParams string) error

type Error

type Error struct {
	Detail string
	Title  string
	Code   int
}

type SleepFunc

type SleepFunc func(time.Duration)

type Task

type Task struct {
	Errors []Error
	State  string
	Guid   string
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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