pipeline

package
v0.0.40 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHash

func CheckHash(pipeline Pipeline) (bool, error)

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

func GetClusterVectorPipelines

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

func GetSpecHash

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

func GetVectorPipelines

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

func SetFailedStatus

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

func SetLastAppliedPipelineStatus

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

func SetSuccessStatus

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

Types

type Pipeline

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

func GetValidPipelines

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