postgres

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: Apache-2.0, BSD-3-Clause, MIT Imports: 19 Imported by: 1

Documentation

Overview

Package postgres implements the Service Manager storage interfaces for Postgresql Storage

Package postgres implements the Service Manager storage interfaces for Postgresql Storage

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"`
	Catalog     sqlxtypes.JSONText `db:"catalog"`
}

Broker dto

func (*Broker) Convert

func (brokerDTO *Broker) Convert() *types.Broker

Convert converts to 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 dto

func (*Platform) Convert

func (platformDTO *Platform) Convert() *types.Platform

Convert converts to types.Platform

type Safe

type Safe struct {
	Secret    []byte    `db:"secret"`
	CreatedAt time.Time `db:"created_at"`
	UpdatedAt time.Time `db:"updated_at"`
}

Safe is a representation of how a secret is stored

Jump to

Keyboard shortcuts

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