config

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSConfig

type FSConfig struct {
	// contains filtered or unexported fields
}

func NewFSConfigFromPath

func NewFSConfigFromPath(path string, fs boshsys.FileSystem) (FSConfig, error)

func (FSConfig) BindServiceInstance

func (c FSConfig) BindServiceInstance(instanceID, bindingID, name string, rawCredentials interface{}) (err error)

BindServiceInstance records a new bindingID

func (FSConfig) DeprovisionServiceInstance

func (c FSConfig) DeprovisionServiceInstance(instanceNameOrID string)

DeprovisionServiceInstance removes record of an instance

func (FSConfig) FindServiceInstance

func (c FSConfig) FindServiceInstance(idOrName string) FSServiceInstance

FindServiceInstance returns a copy of a service instance record

func (FSConfig) ProvisionNewServiceInstance

func (c FSConfig) ProvisionNewServiceInstance(id, name, serviceID, serviceName, planID, planName, brokerURL string)

ProvisionNewServiceInstance initialize new FSServiceInstance

func (FSConfig) RenameServiceInstance

func (c FSConfig) RenameServiceInstance(idOrName, newName string)

RenameServiceInstance updates the .Name of a service instance

func (FSConfig) Save

func (c FSConfig) Save() error

Save configuration/data to file

func (FSConfig) ServiceInstances

func (c FSConfig) ServiceInstances() []*FSServiceInstance

ServiceInstances returns the list of service instances created locally

func (FSConfig) UnbindServiceInstance

func (c FSConfig) UnbindServiceInstance(instanceID, bindingNameOrID string)

UnbindServiceInstance removes record of a binding

type FSServiceInstance

type FSServiceInstance struct {
	ID          string             `yaml:"id"`
	Name        string             `yaml:"name"`
	ServiceID   string             `yaml:"service_id"`
	ServiceName string             `yaml:"service_name"`
	PlanID      string             `yaml:"plan_id"`
	PlanName    string             `yaml:"plan_name"`
	BrokerURL   string             `yaml:"broker_url"`
	Bindings    []fsServiceBinding `yaml:"bindings"`
	CreatedAt   time.Time          `yaml:"created_at"`
}

type FSServiceInstances

type FSServiceInstances struct {
	ServiceInstances []*FSServiceInstance `yaml:"service_instances"`
}

Jump to

Keyboard shortcuts

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