client

package
v3.11.0+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OriginatingIdentityHeader

func OriginatingIdentityHeader(u user.Info) (string, error)

Types

type Client

type Client interface {
	Client() *http.Client

	Catalog(ctx context.Context) (*api.CatalogResponse, error)
	Provision(ctx context.Context, u user.Info, instanceID string, preq *api.ProvisionRequest) (*api.ProvisionResponse, error)
	Deprovision(ctx context.Context, u user.Info, instanceID string) error
	Bind(ctx context.Context, u user.Info, instanceID, bindingID string, breq *api.BindRequest) (*api.BindResponse, error)
	Unbind(ctx context.Context, u user.Info, 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