postsql

package
v0.0.0-...-4b7ff4e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLMSTenants

func NewLMSTenants(sess dbsession.Factory) *lmsTenants

func NewOperation

func NewOperation(sess dbsession.Factory) *operations

Types

type Instance

type Instance struct {
	dbsession.Factory
}

func NewInstance

func NewInstance(sess dbsession.Factory) *Instance

func (*Instance) Delete

func (s *Instance) Delete(instanceID string) error

func (*Instance) FindAllInstancesForRuntimes

func (s *Instance) FindAllInstancesForRuntimes(runtimeIdList []string) ([]internal.Instance, error)

func (*Instance) FindAllJoinedWithOperations

func (s *Instance) FindAllJoinedWithOperations(prct ...predicate.Predicate) ([]internal.InstanceWithOperation, error)

func (*Instance) GetByID

func (s *Instance) GetByID(instanceID string) (*internal.Instance, error)

TODO: Wrap retries in single method WithRetries

func (*Instance) GetInstanceStats

func (s *Instance) GetInstanceStats() (internal.InstanceStats, error)

func (*Instance) Insert

func (s *Instance) Insert(instance internal.Instance) error

func (*Instance) Update

func (s *Instance) Update(instance internal.Instance) error

Jump to

Keyboard shortcuts

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