controller

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateController

func CreateController(host string, port int, reifier Reifier) (controller.Controller, error)

CreateController creates an instance of a Kubernetes broker controller.

func ParseNotes

func ParseNotes(status string) string

ParseNotes will take the output of a Helm Install and return the NOTES.txt section out of it.

Types

type Reifier

type Reifier interface {
	// Catalog returns all the available Services that can be instantiated
	Catalog() ([]*brokerapi.Service, error)

	// RemoveServiceInstance removes an existing Service Instance
	RemoveServiceInstance(instanceID string) error

	// CreateServiceInstance creates a new Service Instance
	CreateServiceInstance(instanceID string, template string, sir *brokerapi.CreateServiceInstanceRequest) (*brokerapi.CreateServiceInstanceResponse, error)

	// CreateBinding creates a new Service Binding for a given instanceId
	CreateServiceBinding(instanceID string, sir *brokerapi.BindingRequest) (*brokerapi.CreateServiceBindingResponse, error)

	// RemoveServiceBinding removes an existing Service Binding
	RemoveServiceBinding(instanceID string) error
}

Reifier is an interface which manipulates deployment resources to achieve a desired final state.

func NewHelmReifier

func NewHelmReifier(client string, server string) Reifier

NewHelmReifier creates an instance of a Reifier interface which uses Helm as the underlying deployment implementation.

Jump to

Keyboard shortcuts

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