storer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TaskNone = io.EOF
)

Functions

This section is empty.

Types

type Cluster

type Cluster interface {
	Create(cluster types.Cluster) (*types.Cluster, error)
	Delete(id string) error
	FindByID(id string) (*types.Cluster, error)
	FindLatest() (*types.Cluster, error)
}

type Code

type Code interface {
	Create(code types.Code) (*types.Code, error)
	Delete(id string) error
	Update(code types.Code) error
	FindByID(id string) (*types.Code, error)
	FindByName(id string) (*types.Code, error)
	FindByProjectID(id string) (*[]types.Code, error)
	SaveCredentials(creds types.DockerCredentials) error
}

type Ferrite

type Ferrite struct {
	Code     Code
	Project  Project
	Schedule Schedule
	Task     Task
	Cluster  Cluster
}

type Project

type Project interface {
	Create(project types.Project) (*types.Project, error)
	FindByID(id string) (*types.Project, error)
	FindLatest() (*types.Project, error)
}

type Schedule

type Schedule interface {
	Create(schedule types.Schedule) (*types.Schedule, error)
	Delete(id string) error
	FindByID(id string) (*types.Schedule, error)
	FindByProjectID(id string) (*[]types.Schedule, error)
	FindByCodeName(codeName string) (*[]types.Schedule, error)
}

type Task

type Task interface {
	Create(schedule types.Task) (*types.Task, error)
	Delete(id string) error
	FindByID(id string) (*types.Task, error)
	FindByProjectID(id string) (*[]types.Task, error)
	Next() (*types.Task, error)
	SetStatus(id, status string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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