client

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(
	host string,
	port int,
	username string,
	password string,
	instanceID string,
	params map[string]string,
) (string, map[string]interface{}, error)

Bind carries out binding to an existing service

func Deprovision

func Deprovision(
	host string,
	port int,
	username string,
	password string,
	instanceID string,
) error

Deprovision initiates deprovisioning of a service instance

func GetCatalog

func GetCatalog(
	host string,
	port int,
	username string,
	password string,
) (service.Catalog, error)

GetCatalog retrieves the catalog from the broker specoified by host name and port number

func Poll

func Poll(
	host string,
	port int,
	username string,
	password string,
	instanceID string,
	operation string,
) (string, error)

Poll polls the status of an instance

func Provision

func Provision(
	host string,
	port int,
	username string,
	password string,
	serviceID string,
	planID string,
	params ProvisioningParameters,
	tags map[string]string,
) (string, error)

Provision initiates provisioning of a new service instance

func Unbind

func Unbind(
	host string,
	port int,
	username string,
	password string,
	instanceID string,
	bindingID string,
) error

Unbind carries out unbinding

func Update

func Update(
	host string,
	port int,
	username string,
	password string,
	serviceID string,
	planID string,
	params map[string]string,
) (string, error)

Update initiates updating of an existing service instance

Types

type ProvisioningParameters

type ProvisioningParameters map[string]interface{}

ProvisioningParameters is a specialized map[string]interface{} that implements service.ProvisioningParameters. Unlike a module-specific implementation of service.ProvisioningParameters used server-side, this implementation has the flexibility to encapsultate parameters for ANY service/plan.

func (ProvisioningParameters) SetResourceGroup

func (p ProvisioningParameters) SetResourceGroup(resourceGroup string)

SetResourceGroup sets the resourceGroup to be included in these provisioningParameters. This isn't really used, but it exists to ensure ProvisioningParameters conforms to the service.ProvisioningParameters interface.

Jump to

Keyboard shortcuts

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