serviceadapter

package
v0.0.0-...-fb356ce Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 12 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
	UsingStdin      bool
}

func (*Client) CreateBinding

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

func (*Client) DeleteBinding

func (c *Client) DeleteBinding(
	bindingID string,
	deploymentTopology bosh.BoshVMs,
	manifest []byte,
	requestParams map[string]interface{},
	secretsMap map[string]string,
	dnsAddresses map[string]string,
	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,
	previousSecrets map[string]string,
	previousConfigs map[string]string,
	uaaClient map[string]string,
	logger *log.Logger,
) (sdk.MarshalledGenerateManifest, error)

func (*Client) GeneratePlanSchema

func (c *Client) GeneratePlanSchema(plan sdk.Plan, logger *log.Logger) (domain.ServiceSchemas, error)

type CommandRunner

type CommandRunner interface {
	Run(arg ...string) ([]byte, []byte, *int, error)
	RunWithInputParams(inputParams interface{}, 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