postgres

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: Apache-2.0, BSD-3-Clause, MIT Imports: 20 Imported by: 1

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

func (*Broker) FromDTO added in v0.1.2

func (b *Broker) FromDTO(broker *types.Broker)

func (*Broker) ToDTO added in v0.1.2

func (b *Broker) ToDTO() *types.Broker

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

func (*Platform) FromDTO added in v0.1.2

func (p *Platform) FromDTO(platform *types.Platform)

func (*Platform) ToDTO added in v0.1.2

func (p *Platform) ToDTO() *types.Platform

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

Jump to

Keyboard shortcuts

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