serviceadapter

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const SuccessExitCode = 0

Variables

This section is empty.

Functions

func ErrorForExitCode

func ErrorForExitCode(code int, message string) error

func SanitiseForJSON

func SanitiseForJSON(properties sdk.Properties) sdk.Properties

Types

type AppGuidNotProvidedError

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

type BindingAlreadyExistsError

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

type BindingNotFoundError

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

type Client

type Client struct {
	ExternalBinPath string
	CommandRunner   CommandRunner
}

func (*Client) CreateBinding

func (c *Client) CreateBinding(bindingID string, deploymentTopology bosh.BoshVMs, manifest []byte, requestParams map[string]interface{}, logger *log.Logger) (sdk.Binding, error)

func (*Client) DeleteBinding

func (c *Client) DeleteBinding(bindingID string, deploymentTopology bosh.BoshVMs, manifest []byte, requestParams map[string]interface{}, logger *log.Logger) error

func (*Client) GenerateDashboardUrl

func (c *Client) GenerateDashboardUrl(instanceID string, plan sdk.Plan, manifest []byte, logger *log.Logger) (string, error)

func (*Client) GenerateManifest

func (c *Client) GenerateManifest(serviceDeployment sdk.ServiceDeployment, plan sdk.Plan, requestParams map[string]interface{}, previousManifest []byte, previousPlan *sdk.Plan, logger *log.Logger) ([]byte, error)

type CommandRunner

type CommandRunner interface {
	Run(arg ...string) ([]byte, []byte, *int, error)
}

func NewCommandRunner

func NewCommandRunner() CommandRunner

type NotImplementedError

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

func NewNotImplementedError

func NewNotImplementedError(msg string) NotImplementedError

type UnknownFailureError

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

func NewUnknownFailureError

func NewUnknownFailureError(msg string) UnknownFailureError

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