db

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveDeleteRequest

type ArchiveDeleteRequest struct {
	Statuses       []string
	NotStatuses    []string
	EndTimeCreated time.Time
}

type Client

type Client struct {
	dbclient.Client
}

func (*Client) ArchivePipeline

func (client *Client) ArchivePipeline(pipelineID uint64) (_ uint64, err error)

func (*Client) CreatePipelineArchive

func (client *Client) CreatePipelineArchive(archive *spec.PipelineArchive, ops ...dbclient.SessionOption) error

func (*Client) DeletePipelineArchives

func (client *Client) DeletePipelineArchives(req ArchiveDeleteRequest, ops ...dbclient.SessionOption) error

func (*Client) GetPipelineArchiveByPipelineID

func (client *Client) GetPipelineArchiveByPipelineID(pipelineID uint64, ops ...dbclient.SessionOption) (spec.PipelineArchive, bool, error)

func (*Client) GetPipelineFromArchive

func (client *Client) GetPipelineFromArchive(pipelineID uint64, ops ...dbclient.SessionOption) (spec.Pipeline, bool, error)

func (*Client) GetPipelineIncludeArchived

func (client *Client) GetPipelineIncludeArchived(pipelineID uint64, ops ...dbclient.SessionOption) (spec.Pipeline, bool, bool, error)

GetPipelineIncludeArchived return: pipeline, exist, findFromArchive, error

func (*Client) GetPipelineTasksFromArchive

func (client *Client) GetPipelineTasksFromArchive(pipelineID uint64, ops ...dbclient.SessionOption) ([]spec.PipelineTask, error)

func (*Client) GetPipelineTasksIncludeArchived

func (client *Client) GetPipelineTasksIncludeArchived(pipelineID uint64, ops ...dbclient.SessionOption) ([]spec.PipelineTask, bool, error)

GetPipelineTasksIncludeArchived return: tasks, findFromArchive, error

Jump to

Keyboard shortcuts

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