dao_pipe

package
v1.1.23-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllInstance

func AllInstance() (all []*pipeline.Instance, err error)

AllInstance returns all pipeline instances in array form

func AllInstanceMap

func AllInstanceMap() (all map[string]*pipeline.Instance, err error)

AllInstanceMap returns all pipeline instances in map form

func AllPipelines

func AllPipelines() (list []*pipeline.Pipeline, err error)

AllPipelines get all info of pipelines from etcd in array form

func AllPipelinesMap

func AllPipelinesMap() (mapping map[string]*pipeline.Pipeline, err error)

AllPipelinesMap returns all pipelines from etcd in map form

func CreatePipeline

func CreatePipeline(d *pipeline.Pipeline, opts ...clientv3.OpOption) (ok bool, err error)

CreatePipeline write pipeline info to etcd

func DeleteCompletePipeline

func DeleteCompletePipeline(name string) (ok bool, err error)

DeleteCompletePipeline delete pipeline, contains pipeline info, pipeline position

func DeletePipeline

func DeletePipeline(name string) (ok bool, err error)

DeletePipeline delete pipeline info by name

func DeletePosition

func DeletePosition(name string) (ok bool, err error)

DeletePosition delete pipeline positon by pipeline name in etcd

func GetInstance

func GetInstance(pipeName string) (ins *pipeline.Instance, err error)

GetInstance get a pipeline instance from etcd get by pipeline name pipeName

func GetPipeline

func GetPipeline(name string) (p *pipeline.Pipeline, err error)

GetPipeline get pipeline info from etcd

func GetPosition

func GetPosition(pipeName string) (p *pipeline.Position, err error)

GetPosition get pipeline position from etcd

func GetRecord added in v1.1.3

func GetRecord(pipeName string) (r *pipeline.RecordPosition, err error)

GetRecord get pipeline record position from etcd

func InstancePrefix

func InstancePrefix() string

InstancePrefix returns etcd prefix of pipeline instance

func PipelinePrefix

func PipelinePrefix() string

PipelinePrefix returns etcd prefix of pipeline info

func PositionPrefix

func PositionPrefix() string

PositionPrefix returns etcd prefix of pipeline position

func RecordPrefix added in v1.1.3

func RecordPrefix() string

RecordPrefix returns etcd record prefix

func UpdatePipeline

func UpdatePipeline(pipeName string, opts ...pipeline.OptionPipeline) (ok bool, err error)

UpdatePipeline update pipeline info in etcd

func UpdatePosition

func UpdatePosition(p *pipeline.Position) (err error)

UpdatePosition update pipeline position in etcd

func UpdatePositionSafe

func UpdatePositionSafe(pipeName string, opts ...pipeline.OptionPosition) (ok bool, err error)

UpdatePositionSafe update pipeline position in etcd in safe mode. there will be version judgment when updating

func UpdateRecord added in v1.1.3

func UpdateRecord(p *pipeline.RecordPosition) (err error)

UpdatePosition update pipeline record position in etcd

func UpdateRecordSafe added in v1.1.3

func UpdateRecordSafe(pipeName string, opts ...pipeline.OptionRecord) (ok bool, err error)

UpdateRecordSafe update pipeline record position in etcd in safe mode. there will be version judgment when updating

Types

This section is empty.

Jump to

Keyboard shortcuts

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