pipeline

package
v0.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHash added in v0.0.2

func CheckHash(pipeline Pipeline) (bool, error)

CheckHash returns true, if hash in .status.lastAppliedPipelineHash matches with spec Hash

func GetClusterVectorPipelines added in v0.0.2

func GetClusterVectorPipelines(ctx context.Context, client client.Client) ([]vectorv1alpha1.ClusterVectorPipeline, error)

func GetSpecHash added in v0.0.2

func GetSpecHash(pipeline Pipeline) (*uint32, error)

func GetVectorPipelines added in v0.0.2

func GetVectorPipelines(ctx context.Context, client client.Client) ([]vectorv1alpha1.VectorPipeline, error)

func SetFailedStatus added in v0.0.2

func SetFailedStatus(ctx context.Context, client client.Client, p Pipeline, err error) error

func SetLastAppliedPipelineStatus added in v0.0.2

func SetLastAppliedPipelineStatus(ctx context.Context, client client.Client, p Pipeline) error

func SetSuccessStatus added in v0.0.2

func SetSuccessStatus(ctx context.Context, client client.Client, p Pipeline) error

Types

type Pipeline

type Pipeline interface {
	GetSpec() vectorv1alpha1.VectorPipelineSpec
	GetName() string
	GetNamespace() string
	Type() string
	SetConfigCheck(bool)
	SetReason(*string)
	GetLastAppliedPipeline() *uint32
	SetLastAppliedPipeline(*uint32)
	GetConfigCheckResult() *bool
	IsValid() bool
	IsDeleted() bool
	UpdateStatus(context.Context, client.Client) error
}

func GetValidPipelines added in v0.0.2

func GetValidPipelines(ctx context.Context, client client.Client) ([]Pipeline, error)

Jump to

Keyboard shortcuts

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