repository

package
v0.9.2-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPageSize = 10

DefaultPageSize is the default pagination page size when page size is not assigned

View Source
const MaxPageSize = 100

MaxPageSize is the maximum pagination page size if the assigned value is over this number

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	CreatePipeline(pipeline *datamodel.Pipeline) error
	ListPipeline(owner string, pageSize int64, pageToken string, isBasicView bool, filter filtering.Filter) ([]datamodel.Pipeline, int64, string, error)
	GetPipelineByID(id string, owner string, isBasicView bool) (*datamodel.Pipeline, error)
	GetPipelineByUID(uid uuid.UUID, owner string, isBasicView bool) (*datamodel.Pipeline, error)
	UpdatePipeline(id string, owner string, pipeline *datamodel.Pipeline) error
	DeletePipeline(id string, owner string) error
	UpdatePipelineID(id string, owner string, newID string) error
	UpdatePipelineState(id string, owner string, state datamodel.PipelineState) error
}

Repository interface

func NewRepository

func NewRepository(db *gorm.DB) Repository

NewRepository initiates a repository instance

type Transpiler

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

Transpiler data

func (*Transpiler) Transpile

func (t *Transpiler) Transpile() (*clause.Expr, error)

Transpile executes the transpilation on the filter

Jump to

Keyboard shortcuts

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