cf

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 13 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 Error

type Error struct {
	Detail string
	Title  string
	Code   int
}

type FindBindingsClient added in v0.7.1

type FindBindingsClient struct {
	// contains filtered or unexported fields
}

func NewFindBindingsClient added in v0.7.1

func NewFindBindingsClient(cliConnection plugin.CliConnection) *FindBindingsClient

func (*FindBindingsClient) GetAppByGuid added in v0.7.1

func (c *FindBindingsClient) GetAppByGuid(guid string) (cfclient.App, error)

func (*FindBindingsClient) GetOrgByGuid added in v0.7.1

func (c *FindBindingsClient) GetOrgByGuid(spaceGUID string) (cfclient.Org, error)

func (*FindBindingsClient) GetSpaceByGuid added in v0.7.1

func (c *FindBindingsClient) GetSpaceByGuid(spaceGUID string) (cfclient.Space, error)

func (*FindBindingsClient) ListServiceBindingsByQuery added in v0.7.1

func (c *FindBindingsClient) ListServiceBindingsByQuery(query url.Values) ([]cfclient.ServiceBinding, error)

func (*FindBindingsClient) ListServiceInstancesByQuery added in v0.7.1

func (c *FindBindingsClient) ListServiceInstancesByQuery(query url.Values) ([]cfclient.ServiceInstance, error)

func (*FindBindingsClient) ListServiceKeysByQuery added in v0.7.1

func (c *FindBindingsClient) ListServiceKeysByQuery(query url.Values) ([]cfclient.ServiceKey, error)

func (*FindBindingsClient) ListServicePlansByQuery added in v0.7.1

func (c *FindBindingsClient) ListServicePlansByQuery(query url.Values) ([]cfclient.ServicePlan, error)

func (*FindBindingsClient) ListServicesByQuery added in v0.7.1

func (c *FindBindingsClient) ListServicesByQuery(query url.Values) ([]cfclient.Service, error)

type MigratorClient added in v0.7.1

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

func NewMigratorClient added in v0.7.1

func NewMigratorClient(pluginAPI CFPluginAPI) *MigratorClient

func (*MigratorClient) BindService added in v0.7.1

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

func (*MigratorClient) CreateServiceInstance added in v0.7.1

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

func (*MigratorClient) CreateTask added in v0.7.1

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

func (*MigratorClient) DeleteApp added in v0.7.1

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

func (*MigratorClient) DeleteServiceInstance added in v0.7.1

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

func (*MigratorClient) GetAppByName added in v0.7.1

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

func (*MigratorClient) GetLogs added in v0.7.1

func (c *MigratorClient) GetLogs(appName, filter string) ([]string, error)

func (*MigratorClient) GetTaskByGUID added in v0.7.1

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

func (*MigratorClient) PushApp added in v0.7.1

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

func (*MigratorClient) RenameService added in v0.7.1

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

func (*MigratorClient) RunTask added in v0.7.1

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

func (*MigratorClient) ServiceExists added in v0.7.1

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

func (*MigratorClient) StartApp added in v0.7.1

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

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