clusterworkflow

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClusterWorkflowNotFound      = errors.New("cluster workflow not found")
	ErrClusterWorkflowAlreadyExists = errors.New("cluster workflow already exists")
	ErrClusterWorkflowNil           = errors.New("cluster workflow cannot be nil")
)

Functions

This section is empty.

Types

type Service

type Service interface {
	CreateClusterWorkflow(ctx context.Context, cwf *openchoreov1alpha1.ClusterWorkflow) (*openchoreov1alpha1.ClusterWorkflow, error)
	UpdateClusterWorkflow(ctx context.Context, cwf *openchoreov1alpha1.ClusterWorkflow) (*openchoreov1alpha1.ClusterWorkflow, error)
	ListClusterWorkflows(ctx context.Context, opts services.ListOptions) (*services.ListResult[openchoreov1alpha1.ClusterWorkflow], error)
	GetClusterWorkflow(ctx context.Context, clusterWorkflowName string) (*openchoreov1alpha1.ClusterWorkflow, error)
	DeleteClusterWorkflow(ctx context.Context, clusterWorkflowName string) error
	GetClusterWorkflowSchema(ctx context.Context, clusterWorkflowName string) (map[string]any, error)
}

Service defines the cluster workflow service interface. Both the core service (no authz) and the authz-wrapped service implement this. Methods accept and return Kubernetes CRD types directly for alignment with the K8s-native API design.

func NewService

func NewService(k8sClient client.Client, logger *slog.Logger) Service

NewService creates a new cluster workflow service without authorization.

func NewServiceWithAuthz

func NewServiceWithAuthz(k8sClient client.Client, authzPDP authz.PDP, logger *slog.Logger) Service

NewServiceWithAuthz creates a cluster workflow service with authorization checks.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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