Documentation
¶
Overview ¶
Package postgres implements the Service Manager storage interfaces for Postgresql Repository
Index ¶
Constants ¶
View Source
const Storage = "postgres"
Storage defines the name of the PostgreSQL relational storage
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
ID string `db:"id"`
Name string `db:"name"`
Description sql.NullString `db:"description"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
BrokerURL string `db:"broker_url"`
Username string `db:"username"`
Password string `db:"password"`
}
Broker entity
type Platform ¶
type Platform struct {
ID string `db:"id"`
Type string `db:"type"`
Name string `db:"name"`
Description sql.NullString `db:"description"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
Username string `db:"username"`
Password string `db:"password"`
}
Platform entity
type Safe ¶
type Safe struct {
Secret []byte `db:"secret"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
Safe represents a secret entity
type ServiceOffering ¶ added in v0.1.2
type ServiceOffering struct {
ID string `db:"id"`
Name string `db:"name"`
Description string `db:"description"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
Bindable bool `db:"bindable"`
InstancesRetrievable bool `db:"instances_retrievable"`
BindingsRetrievable bool `db:"bindings_retrievable"`
PlanUpdatable bool `db:"plan_updateable"`
CatalogID string `db:"catalog_id"`
CatalogName string `db:"catalog_name"`
Tags sqlxtypes.JSONText `db:"tags"`
Requires sqlxtypes.JSONText `db:"requires"`
Metadata sqlxtypes.JSONText `db:"metadata"`
BrokerID string `db:"broker_id"`
}
func (*ServiceOffering) FromDTO ¶ added in v0.1.2
func (so *ServiceOffering) FromDTO(offering *types.ServiceOffering)
func (*ServiceOffering) ToDTO ¶ added in v0.1.2
func (so *ServiceOffering) ToDTO() *types.ServiceOffering
type ServicePlan ¶ added in v0.1.2
type ServicePlan struct {
ID string `db:"id"`
Name string `db:"name"`
Description string `db:"description"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
Free bool `db:"free"`
Bindable bool `db:"bindable"`
PlanUpdatable bool `db:"plan_updateable"`
CatalogID string `db:"catalog_id"`
CatalogName string `db:"catalog_name"`
Metadata sqlxtypes.JSONText `db:"metadata"`
Schemas sqlxtypes.JSONText `db:"schemas"`
ServiceOfferingID string `db:"service_offering_id"`
}
func (*ServicePlan) FromDTO ¶ added in v0.1.2
func (sp *ServicePlan) FromDTO(plan *types.ServicePlan)
func (*ServicePlan) ToDTO ¶ added in v0.1.2
func (sp *ServicePlan) ToDTO() *types.ServicePlan
Click to show internal directories.
Click to hide internal directories.