capepg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapePg

type CapePg struct {
	// contains filtered or unexported fields
}

CapePg is a postgresql implementation of the cape database interface

func New

func New(pool Pool) *CapePg

func (*CapePg) Config

func (c *CapePg) Config() db.ConfigDB

func (*CapePg) Contributors

func (c *CapePg) Contributors() db.ContributorDB

func (*CapePg) Policies

func (c *CapePg) Policies() db.PolicyDB

func (*CapePg) Projects

func (c *CapePg) Projects() db.ProjectsDB

func (*CapePg) Roles

func (c *CapePg) Roles() db.RoleDB

func (*CapePg) Users

func (c *CapePg) Users() db.UserDB

type PolicyType

type PolicyType string
const (
	PolicyTypeData PolicyType = "data_policy"
)

type Pool

type Pool interface {
	Exec(_ context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error)
	Query(_ context.Context, sql string, args ...interface{}) (pgx.Rows, error)
	QueryRow(_ context.Context, sql string, args ...interface{}) pgx.Row
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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