client

package
v3.6.0-alpha.2+incompa... Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Catalog(ctx context.Context) (*api.CatalogResponse, error)
	Provision(ctx context.Context, instanceID string, preq *api.ProvisionRequest) (*api.ProvisionResponse, error)
	Deprovision(ctx context.Context, instanceID string) error
	Bind(ctx context.Context, instanceID, bindingID string, breq *api.BindRequest) (*api.BindResponse, error)
	Unbind(ctx context.Context, instanceID, bindingID string) error
}

func NewClient

func NewClient(cli *http.Client, root string) Client

type ServerError

type ServerError struct {
	StatusCode  int
	Description string
}

func (*ServerError) Error

func (e *ServerError) Error() string

Jump to

Keyboard shortcuts

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