Documentation
¶
Index ¶
- type FSConfig
- func (c FSConfig) BindServiceInstance(instanceID, bindingID, name string, rawCredentials interface{}) (err error)
- func (c FSConfig) DeprovisionServiceInstance(instanceNameOrID string)
- func (c FSConfig) FindServiceInstance(idOrName string) FSServiceInstance
- func (c FSConfig) ProvisionNewServiceInstance(id, name, serviceID, serviceName, planID, planName, brokerURL string)
- func (c FSConfig) RenameServiceInstance(idOrName, newName string)
- func (c FSConfig) Save() error
- func (c FSConfig) ServiceInstances() []*FSServiceInstance
- func (c FSConfig) UnbindServiceInstance(instanceID, bindingNameOrID string)
- type FSServiceInstance
- type FSServiceInstances
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 ¶
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 ¶
RenameServiceInstance updates the .Name of a service instance
func (FSConfig) ServiceInstances ¶
func (c FSConfig) ServiceInstances() []*FSServiceInstance
ServiceInstances returns the list of service instances created locally
func (FSConfig) UnbindServiceInstance ¶
UnbindServiceInstance removes record of a binding
type FSServiceInstance ¶
type FSServiceInstance struct { ID string `yaml:"id" json:"id"` Name string `yaml:"name" json:"name"` ServiceID string `yaml:"service_id" json:"service_id"` ServiceName string `yaml:"service_name" json:"service_name"` PlanID string `yaml:"plan_id" json:"plan_id"` PlanName string `yaml:"plan_name" json:"plan_name"` BrokerURL string `yaml:"broker_url" json:"broker_url"` Bindings []fsServiceBinding `yaml:"bindings" json:"bindings"` CreatedAt time.Time `yaml:"created_at" json:"created_at"` }
type FSServiceInstances ¶
type FSServiceInstances struct {
ServiceInstances []*FSServiceInstance `yaml:"service_instances" json:"service_instances"`
}
Click to show internal directories.
Click to hide internal directories.