Documentation ¶
Index ¶
- func Close(db *sql.DB)
- func GetConninfo() (string, error)
- func NewFileStore(db *sql.DB) *fileStore
- func Open() *sql.DB
- type App
- type AppDeleter
- type AppStore
- type AppUpdater
- type Archive
- type ArchiveLookup
- type Component
- type ComponentStore
- type Deployment
- type DeploymentCounter
- type DeploymentLister
- type DeploymentRemover
- type DeploymentStore
- type DeploymentUpdater
- type Env
- type EnvCreator
- type EnvDeleter
- type EnvFinder
- type EnvGetter
- type EnvLister
- type EnvStore
- type EnvUpdater
- type ErrDatabaseAccess
- type ErrNotFound
- type File
- type FileCreater
- type FileDigestFinder
- type FileLookup
- type FileStore
- type Files
- type ImageLink
- type ImageLinker
- type PlatformCreator
- type PlatformDeleter
- type PlatformGetter
- type PlatformLister
- type PlatformLookup
- type PlatformStore
- type PlatformUpdater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConninfo ¶
func NewFileStore ¶
Types ¶
type AppDeleter ¶
type AppStore ¶
type AppStore interface { ListAll() ([]App, error) Create(App) (*App, error) Get(string) (*App, error) AppUpdater AppDeleter UpdateComponents(ctx context.Context, id string, components []string) error }
func NewAppStore ¶
type AppUpdater ¶
type ArchiveLookup ¶
type ComponentStore ¶
type ComponentStore interface { Create(string) (*Component, error) CreateIfAbsent(string) (*Component, error) SetImage(string, string) (*Component, error) GetByName(name string) (*Component, error) ListAll() ([]Component, error) ListAllForApp(id string) ([]Component, error) ListUnassigned() ([]Component, error) ListUnassignedForApp(id string) ([]Component, error) }
func NewComponentStore ¶
func NewComponentStore(db *sql.DB) ComponentStore
type Deployment ¶
type DeploymentCounter ¶
type DeploymentLister ¶
type DeploymentLister interface {
ListForEnv(componentId, envId string) ([]Deployment, error)
}
type DeploymentRemover ¶
type DeploymentStore ¶
type DeploymentStore interface { DeploymentLister DeploymentCounter DeploymentUpdater DeploymentRemover }
func NewDeploymentStore ¶
func NewDeploymentStore(db *sql.DB) DeploymentStore
type DeploymentUpdater ¶
type DeploymentUpdater interface {
SetImage(componentId, platformId, imageRef string) (*Deployment, error)
}
type EnvCreator ¶
type EnvDeleter ¶
type EnvStore ¶
type EnvStore interface { EnvCreator EnvGetter EnvLister EnvFinder EnvDeleter EnvUpdater }
func NewEnvStore ¶
type EnvUpdater ¶
type ErrDatabaseAccess ¶
type ErrDatabaseAccess struct {
// contains filtered or unexported fields
}
func (*ErrDatabaseAccess) Error ¶
func (e *ErrDatabaseAccess) Error() string
type ErrNotFound ¶
type ErrNotFound struct {
ErrDatabaseAccess
}
func (*ErrNotFound) Error ¶
func (e *ErrNotFound) Error() string
type FileCreater ¶
type FileDigestFinder ¶
type FileLookup ¶
type FileStore ¶
type FileStore interface { ArchiveLookup FileCreater FileLookup }
type ImageLinker ¶
type ImageLinker interface { AddLink(id, fileId string) (*ImageLink, error) Count(image string) (int, error) }
func NewImageStore ¶
func NewImageStore(db *sql.DB) ImageLinker
type PlatformCreator ¶
type PlatformLister ¶
type PlatformLookup ¶
type PlatformStore ¶
type PlatformStore interface { PlatformLister PlatformCreator PlatformGetter PlatformLookup PlatformUpdater PlatformDeleter }
func NewPlatformStore ¶
func NewPlatformStore(db *sql.DB) PlatformStore
Source Files ¶
Click to show internal directories.
Click to hide internal directories.