capepg

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGenericDBError = fmt.Errorf("generic db error")
)

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) AuditLog added in v0.0.2

func (c *CapePg) AuditLog() db.AuditLogDB

func (*CapePg) Config

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

func (*CapePg) Contributors

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

func (*CapePg) OrgPolicyDB added in v0.0.2

func (c *CapePg) OrgPolicyDB() db.OrgPolicyDB

func (*CapePg) Projects

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

func (*CapePg) Recoveries added in v0.0.2

func (c *CapePg) Recoveries() db.RecoveryDB

func (*CapePg) Roles

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

func (*CapePg) Secrets added in v0.0.2

func (c *CapePg) Secrets() db.SecretDB

func (*CapePg) Session added in v0.0.2

func (c *CapePg) Session() db.SessionDB

func (*CapePg) Suggestions added in v0.0.2

func (c *CapePg) Suggestions() db.SuggestionsDB

func (*CapePg) Tokens added in v0.0.2

func (c *CapePg) Tokens() db.TokensDB

func (*CapePg) Users

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

type PgAudit added in v0.0.2

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

func (PgAudit) Add added in v0.0.2

func (p PgAudit) Add(ctx context.Context, event auditModels.Event) error

func (PgAudit) Query added in v0.0.2

func (p PgAudit) Query(ctx context.Context, options db.QueryAuditLogOptions) ([]auditModels.Event, error)

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