postgres

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(conn *sql.DB) (*storer.Ferrite, error)

Types

type ClusterStorer

type ClusterStorer struct {
	DB *gorm.DB
}

func (*ClusterStorer) Create

func (c *ClusterStorer) Create(cluster types.Cluster) (*types.Cluster, error)

func (*ClusterStorer) Delete

func (c *ClusterStorer) Delete(id string) error

func (*ClusterStorer) FindByID

func (c *ClusterStorer) FindByID(id string) (*types.Cluster, error)

func (*ClusterStorer) FindLatest

func (c *ClusterStorer) FindLatest() (*types.Cluster, error)

type CodeStorer

type CodeStorer struct {
	DB *gorm.DB
}

func (*CodeStorer) Create

func (c *CodeStorer) Create(code types.Code) (*types.Code, error)

func (*CodeStorer) Delete

func (c *CodeStorer) Delete(id string) error

func (*CodeStorer) FindByID

func (c *CodeStorer) FindByID(id string) (*types.Code, error)

func (*CodeStorer) FindByName

func (c *CodeStorer) FindByName(name string) (*types.Code, error)

func (*CodeStorer) FindByProjectID

func (c *CodeStorer) FindByProjectID(id string) (*[]types.Code, error)

func (*CodeStorer) SaveCredentials

func (c *CodeStorer) SaveCredentials(creds types.DockerCredentials) error

func (*CodeStorer) Update

func (c *CodeStorer) Update(code types.Code) error

type ProjectStorer

type ProjectStorer struct {
	DB *gorm.DB
}

func (*ProjectStorer) Create

func (g *ProjectStorer) Create(project types.Project) (*types.Project, error)

func (*ProjectStorer) FindByID

func (g *ProjectStorer) FindByID(id string) (*types.Project, error)

func (*ProjectStorer) FindLatest

func (g *ProjectStorer) FindLatest() (*types.Project, error)

type ScheduleStorer

type ScheduleStorer struct {
	DB *gorm.DB
}

func (*ScheduleStorer) Create

func (g *ScheduleStorer) Create(schedule types.Schedule) (*types.Schedule, error)

func (*ScheduleStorer) Delete

func (g *ScheduleStorer) Delete(id string) error

func (*ScheduleStorer) FindByCodeName

func (g *ScheduleStorer) FindByCodeName(codeName string) (*[]types.Schedule, error)

func (*ScheduleStorer) FindByID

func (g *ScheduleStorer) FindByID(id string) (*types.Schedule, error)

func (*ScheduleStorer) FindByProjectID

func (g *ScheduleStorer) FindByProjectID(id string) (*[]types.Schedule, error)

type TaskStorer

type TaskStorer struct {
	DB *gorm.DB
}

func (*TaskStorer) Create

func (g *TaskStorer) Create(schedule types.Task) (*types.Task, error)

func (*TaskStorer) Delete

func (g *TaskStorer) Delete(id string) error

func (*TaskStorer) FindByCodeName

func (g *TaskStorer) FindByCodeName(codeName string) (*[]types.Task, error)

func (*TaskStorer) FindByID

func (g *TaskStorer) FindByID(id string) (*types.Task, error)

func (*TaskStorer) FindByProjectID

func (g *TaskStorer) FindByProjectID(id string) (*[]types.Task, error)

func (*TaskStorer) Next

func (g *TaskStorer) Next() (*types.Task, error)

func (*TaskStorer) SetStatus

func (g *TaskStorer) SetStatus(id, status string) error

Jump to

Keyboard shortcuts

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