clusterworkflowplane

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClusterWorkflowPlaneNil           = errors.New("cluster workflow plane is nil")
	ErrClusterWorkflowPlaneNotFound      = errors.New("cluster workflow plane not found")
	ErrClusterWorkflowPlaneAlreadyExists = errors.New("cluster workflow plane already exists")
)

Functions

This section is empty.

Types

type Service

type Service interface {
	ListClusterWorkflowPlanes(ctx context.Context, opts services.ListOptions) (*services.ListResult[openchoreov1alpha1.ClusterWorkflowPlane], error)
	GetClusterWorkflowPlane(ctx context.Context, clusterWorkflowPlaneName string) (*openchoreov1alpha1.ClusterWorkflowPlane, error)
	CreateClusterWorkflowPlane(ctx context.Context, cwp *openchoreov1alpha1.ClusterWorkflowPlane) (*openchoreov1alpha1.ClusterWorkflowPlane, error)
	UpdateClusterWorkflowPlane(ctx context.Context, cwp *openchoreov1alpha1.ClusterWorkflowPlane) (*openchoreov1alpha1.ClusterWorkflowPlane, error)
	DeleteClusterWorkflowPlane(ctx context.Context, clusterWorkflowPlaneName string) error
}

Service defines the cluster workflow plane 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 plane service without authorization.

func NewServiceWithAuthz

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

NewServiceWithAuthz creates a cluster workflow plane 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