store

package
v0.0.0-...-4d1605e Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BrokerAuthCredentials = map[string]string{
	"username": "username",
	"password": "password",
}
View Source
var CatalogJSONPayload = `` /* 3492-byte string literal not displayed */
View Source
var CredentialsPayload = map[string]interface{}{
	"uri":      "mysql://mysqluser:pass@mysqlhost:3306/dbname",
	"username": "mysqluser",
	"password": "pass",
	"host":     "mysqlhost",
	"port":     3306,
	"database": "dbname",
}

Functions

func CheckIfPlanIDExists

func CheckIfPlanIDExists(serviceID, planID string) bool

func CheckIfServiceBindingExists

func CheckIfServiceBindingExists(serviceID, planID, instanceID, bindingID string) bool

func CheckIfServiceBingdingExistsWithDifferentProperties

func CheckIfServiceBingdingExistsWithDifferentProperties(serviceID, planID, instanceID, bindingID string, params interface{}) bool

func CheckIfServiceIDExists

func CheckIfServiceIDExists(serviceID string) bool

func CheckIfServiceInstanceExists

func CheckIfServiceInstanceExists(serviceID, planID, instanceID string) bool

func CheckIfServiceInstanceExistsWithDifferentProperties

func CheckIfServiceInstanceExistsWithDifferentProperties(serviceID, planID, instanceID string, params interface{}) bool

func GetCatalogPayload

func GetCatalogPayload() *openapi.Catalog

func RefreshServiceInstancePayload

func RefreshServiceInstancePayload(instanceID, planID string, params map[string]interface{})

func RemoveServiceBindingPayload

func RemoveServiceBindingPayload(serviceID, planID, instanceID, bindingID string)

func RemoveServiceInstancePayload

func RemoveServiceInstancePayload(serviceID, planID, instanceID string)

func StoreServiceBindingPayload

func StoreServiceBindingPayload(payload *ServiceBindingPayload)

func StoreServiceInstancePayload

func StoreServiceInstancePayload(payload *ServiceInstancePayload)

Types

type ServiceBindingPayload

type ServiceBindingPayload struct {
	ServiceID, PlanID     string
	InstanceID, BindingID string
	Payload               *openapi.ServiceBindingResource
}

func FindServiceBindingPayload

func FindServiceBindingPayload(instanceID, bindingID string) (*ServiceBindingPayload, error)

type ServiceInstancePayload

type ServiceInstancePayload struct {
	InstanceID string
	Payload    *openapi.ServiceInstanceResource
}

func FindServiceInstancePayload

func FindServiceInstancePayload(instanceID string) (*ServiceInstancePayload, error)

Jump to

Keyboard shortcuts

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