Documentation ¶
Index ¶
- func CheckHash(pipeline Pipeline) (bool, error)
- func GetClusterVectorPipelines(ctx context.Context, client client.Client) ([]vectorv1alpha1.ClusterVectorPipeline, error)
- func GetSpecHash(pipeline Pipeline) (*uint32, error)
- func GetVectorPipelines(ctx context.Context, client client.Client) ([]vectorv1alpha1.VectorPipeline, error)
- func SetFailedStatus(ctx context.Context, client client.Client, p Pipeline, reason string) error
- func SetLastAppliedPipelineStatus(ctx context.Context, client client.Client, p Pipeline) error
- func SetSuccessStatus(ctx context.Context, client client.Client, p Pipeline) error
- type Pipeline
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckHash ¶
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 GetVectorPipelines ¶
func GetVectorPipelines(ctx context.Context, client client.Client) ([]vectorv1alpha1.VectorPipeline, error)
func SetFailedStatus ¶
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 }
Click to show internal directories.
Click to hide internal directories.