repository

package
v0.0.0-...-2175bb8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const AuditLogsTableName = "audit_logs"
View Source
const ModuleVersionsTableName = "module_versions"
View Source
const ModulesTableName = "modules"

Variables

This section is empty.

Functions

This section is empty.

Types

type DbDriver

type DbDriver string
const PostgresDriver DbDriver = "postgres"

type ErrDbHydration

type ErrDbHydration struct {
	Type    string
	Wrapped error
}

func (ErrDbHydration) Error

func (e ErrDbHydration) Error() string

type ErrDbQuery

type ErrDbQuery struct {
	Wrapped error
}

func (ErrDbQuery) Error

func (e ErrDbQuery) Error() string

type ErrDbTransaction

type ErrDbTransaction struct {
	Wrapped error
}

func (ErrDbTransaction) Error

func (e ErrDbTransaction) Error() string

type ErrDriverNotImplemented

type ErrDriverNotImplemented struct {
	Driver string
}

func (ErrDriverNotImplemented) Error

func (e ErrDriverNotImplemented) Error() string

type PostgresAuditLogs

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

func BuildAuditLogsForPostgres

func BuildAuditLogsForPostgres(conn *sqlx.DB, logger zerolog.Logger) *PostgresAuditLogs

func (*PostgresAuditLogs) Save

func (s *PostgresAuditLogs) Save(action string, respStatus registry.RegistryHandlerStatus, occurred_at time.Time, meta map[string]interface{}) error

type PostgresModules

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

func BuildModulesForPostgres

func BuildModulesForPostgres(conn *sqlx.DB, logger zerolog.Logger) *PostgresModules

func (*PostgresModules) AddModule

func (s *PostgresModules) AddModule(mod registry.Module) (m registry.Module, err error)

func (*PostgresModules) AddVersion

func (s *PostgresModules) AddVersion(new registry.ModuleVersion) (v registry.ModuleVersion, err error)

func (*PostgresModules) All

func (*PostgresModules) ByFQN

func (s *PostgresModules) ByFQN(fqn registry.ModuleFQN) (m registry.Module, err error)

func (*PostgresModules) ById

func (s *PostgresModules) ById(id string) (m registry.Module, err error)

func (*PostgresModules) DeleteModule

func (s *PostgresModules) DeleteModule(mod registry.Module) (err error)

func (*PostgresModules) DeleteModuleVersion

func (s *PostgresModules) DeleteModuleVersion(mv registry.ModuleVersion) error

func (*PostgresModules) DeleteVersionsForModule

func (s *PostgresModules) DeleteVersionsForModule(mod registry.Module) (err error)

func (*PostgresModules) VersionByFQN

func (s *PostgresModules) VersionByFQN(fqn registry.ModuleVersionFQN) (mv registry.ModuleVersion, err error)

func (*PostgresModules) VersionById

func (s *PostgresModules) VersionById(id string) (mv registry.ModuleVersion, err error)

func (*PostgresModules) VersionByModuleAndValue

func (s *PostgresModules) VersionByModuleAndValue(moduleId string, version string) (mv registry.ModuleVersion, err error)

func (*PostgresModules) VersionsByModule

func (s *PostgresModules) VersionsByModule(moduleId string, _ registry.ChunkingOptions) (mVs []registry.ModuleVersion, err error)

func (*PostgresModules) VersionsByModuleFQN

func (s *PostgresModules) VersionsByModuleFQN(fqn registry.ModuleFQN, _ registry.ChunkingOptions) (mVs []registry.ModuleVersion, err error)

Jump to

Keyboard shortcuts

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