Documentation
¶
Index ¶
- Constants
- Variables
- type BindSpec
- type BindStatus
- type Catalog
- type Client
- func (c *Client) Bind(spec BindSpec) (*BindStatus, error)
- func (c *Client) Deprovision(spec DeprovisionSpec) (*DeprovisionStatus, error)
- func (c *Client) GetCatalog() (*Catalog, error)
- func (c *Client) Provision(id string, spec ProvisionSpec) (*ProvisionStatus, error)
- func (c *Client) Unbind(spec UnbindSpec) (*UnbindStatus, error)
- type DeprovisionSpec
- type DeprovisionStatus
- type Error
- type ProvisionSpec
- type ProvisionStatus
- type Store
- func (s *Store) AddBinding(url, id, bid string, creds map[string]interface{})
- func (s *Store) AddInstance(url, id, service, plan string)
- func (s *Store) GetBindingDetails(url, id string) (string, string, string, error)
- func (s *Store) GetInstanceDetails(url, id string) (string, string, error)
- func (s *Store) RemoveBinding(url, id, bid string)
- func (s *Store) RemoveInstance(url, id string)
- func (s *Store) Write(path string) error
- type UnbindSpec
- type UnbindStatus
Constants ¶
View Source
const DefaultAPIVersion = "2.14"
Variables ¶
View Source
var DefaultStorePath string
Functions ¶
This section is empty.
Types ¶
type BindStatus ¶
type BindStatus struct { InstanceID string `json:"-"` BindingID string `json:"-"` Status string `json:"-"` Operation string `json:"operation"` Credentials map[string]interface{} `json:"credentials"` SyslogDrainURL string `json:"syslog_drain_url"` RouteServiceURL string `json:"route_service_url"` VolumeMounts []struct { Driver string `json:"driver"` ContainerDir string `json:"container_dir"` Mode string `json:"mode"` DeviceType string `json:"device_type"` Device struct { VolumeID string `json:"volume_id"` MountConfig map[string]interface{} `json:"mount_config"` } `json:"device"` } `json:"volume_mounts"` }
type Catalog ¶
type Catalog struct { Services []struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Tags []string `json:"tags,omitempty"` Requires []string `json:"requires,omitempty"` Bindable bool `json:"bindable"` InstancesRetrievable bool `json:"instances_retrievable"` BindingsRetrievable bool `json:"bindings_retrievable"` PlanUpdateable bool `json:"plan_updateable"` Metadata interface{} `json:"metadata,omitempty"` DashboardClient *struct { ID string `json:"id"` Secret string `json:"secret"` RedirectURI string `json:"redirect_uri"` } `json:"dashboard_client,omitempty"` Plans []struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` MaybeFree *bool `json:"free"` Free bool `json:"-"` MaybeBindable *bool `json:"bindable"` Bindable bool `json:"bindable"` Metadata interface{} `json:"metadata,omitempty"` Schemas struct { ServiceInstance struct { Create struct { Parameters map[string]interface{} `json:"parameters"` } `json:"create"` Update struct { Parameters map[string]interface{} `json:"parameters"` } `json:"update"` } `json:"service_instance"` ServiceBinding struct { Create struct { Parameters map[string]interface{} `json:"parameters"` } `json:"create"` } `json:"service_binding"` } `json:"schemas,omitempty"` } `json:"plans,omitempty"` } `json:"services,omitempty"` }
type Client ¶
type Client struct { URL string Username string Password string SkipVerify bool Timeout int Debug bool Trace bool APIVersion string // contains filtered or unexported fields }
func (*Client) Deprovision ¶
func (c *Client) Deprovision(spec DeprovisionSpec) (*DeprovisionStatus, error)
func (*Client) GetCatalog ¶
func (*Client) Provision ¶
func (c *Client) Provision(id string, spec ProvisionSpec) (*ProvisionStatus, error)
func (*Client) Unbind ¶
func (c *Client) Unbind(spec UnbindSpec) (*UnbindStatus, error)
type DeprovisionSpec ¶ added in v0.1.1
type DeprovisionStatus ¶
type ProvisionSpec ¶
type ProvisionStatus ¶
type Store ¶
type Store struct {
Data []broker `yaml:"data"`
}
func (*Store) AddBinding ¶
func (*Store) AddInstance ¶
func (*Store) GetBindingDetails ¶
func (*Store) GetInstanceDetails ¶
func (*Store) RemoveBinding ¶
func (*Store) RemoveInstance ¶
type UnbindSpec ¶
Click to show internal directories.
Click to hide internal directories.