Documentation ¶
Index ¶
- func CreateDefaultPipeline(execCtx plugin.ExecutionContext, scheme *runtime.Scheme, ...) (*pipeline.CapsulePipeline, error)
- func GetDefaultPipelineSteps(execCtx plugin.ExecutionContext, cfg *v1alpha1.OperatorConfig, ...) ([]pipeline.Step[pipeline.CapsuleRequest], error)
- func NewCapsulePluginStep(execCtx plugin.ExecutionContext, pluginName, pluginConfig string, ...) (pipeline.Step[pipeline.CapsuleRequest], error)
- func NewRigPlatformCapsulePluginStep(execCtx plugin.ExecutionContext, pluginName string, pluginConfig string, ...) (pipeline.Step[pipeline.CapsuleRequest], error)
- type CapsuleExtensionStep
- func (s *CapsuleExtensionStep) Apply(ctx context.Context, req pipeline.CapsuleRequest, opts pipeline.Options) error
- func (s *CapsuleExtensionStep) ComputeConfig(ctx context.Context, req pipeline.CapsuleRequest) pipeline.StepConfigResult
- func (s *CapsuleExtensionStep) Name() string
- func (s *CapsuleExtensionStep) PluginIDs() []uuid.UUID
- func (s *CapsuleExtensionStep) WatchObjectStatus(ctx context.Context, capsule *v1alpha2.Capsule, ...) error
- type CapsuleExtensionValidationStep
- func (s *CapsuleExtensionValidationStep) Apply(_ context.Context, req pipeline.CapsuleRequest, _ pipeline.Options) error
- func (s *CapsuleExtensionValidationStep) ComputeConfig(_ context.Context, _ pipeline.CapsuleRequest) pipeline.StepConfigResult
- func (s *CapsuleExtensionValidationStep) Name() string
- func (s *CapsuleExtensionValidationStep) PluginIDs() []uuid.UUID
- func (s *CapsuleExtensionValidationStep) WatchObjectStatus(_ context.Context, _ *v1alpha2.Capsule, _ pipeline.ObjectStatusCallback) error
- type PluginUsed
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDefaultPipeline ¶ added in v1.9.0
func CreateDefaultPipeline( execCtx plugin.ExecutionContext, scheme *runtime.Scheme, vm scheme.VersionMapper, cfg *v1alpha1.OperatorConfig, pluginManager *plugin.Manager, logger logr.Logger, ) (*pipeline.CapsulePipeline, error)
func GetDefaultPipelineSteps ¶ added in v1.9.0
func GetDefaultPipelineSteps( execCtx plugin.ExecutionContext, cfg *v1alpha1.OperatorConfig, pluginManager *plugin.Manager, logger logr.Logger, ) ([]pipeline.Step[pipeline.CapsuleRequest], error)
func NewCapsulePluginStep ¶ added in v1.9.0
func NewRigPlatformCapsulePluginStep ¶ added in v1.11.2
Types ¶
type CapsuleExtensionStep ¶ added in v1.12.0
type CapsuleExtensionStep struct {
// contains filtered or unexported fields
}
func NewCapsuleExtensionStep ¶ added in v1.12.0
func NewCapsuleExtensionStep(name string, step pipeline.Step[pipeline.CapsuleRequest]) *CapsuleExtensionStep
func (*CapsuleExtensionStep) Apply ¶ added in v1.12.0
func (s *CapsuleExtensionStep) Apply(ctx context.Context, req pipeline.CapsuleRequest, opts pipeline.Options) error
func (*CapsuleExtensionStep) ComputeConfig ¶ added in v1.12.0
func (s *CapsuleExtensionStep) ComputeConfig( ctx context.Context, req pipeline.CapsuleRequest, ) pipeline.StepConfigResult
func (*CapsuleExtensionStep) Name ¶ added in v1.12.0
func (s *CapsuleExtensionStep) Name() string
func (*CapsuleExtensionStep) PluginIDs ¶ added in v1.12.0
func (s *CapsuleExtensionStep) PluginIDs() []uuid.UUID
func (*CapsuleExtensionStep) WatchObjectStatus ¶ added in v1.12.0
func (s *CapsuleExtensionStep) WatchObjectStatus( ctx context.Context, capsule *v1alpha2.Capsule, callback pipeline.ObjectStatusCallback, ) error
type CapsuleExtensionValidationStep ¶ added in v1.12.0
type CapsuleExtensionValidationStep struct {
// contains filtered or unexported fields
}
func NewCapsuleExtensionValidationStep ¶ added in v1.12.0
func NewCapsuleExtensionValidationStep(cfg *v1alpha1.OperatorConfig) *CapsuleExtensionValidationStep
func (*CapsuleExtensionValidationStep) Apply ¶ added in v1.12.0
func (s *CapsuleExtensionValidationStep) Apply( _ context.Context, req pipeline.CapsuleRequest, _ pipeline.Options, ) error
func (*CapsuleExtensionValidationStep) ComputeConfig ¶ added in v1.12.0
func (s *CapsuleExtensionValidationStep) ComputeConfig( _ context.Context, _ pipeline.CapsuleRequest, ) pipeline.StepConfigResult
func (*CapsuleExtensionValidationStep) Name ¶ added in v1.12.0
func (s *CapsuleExtensionValidationStep) Name() string
func (*CapsuleExtensionValidationStep) PluginIDs ¶ added in v1.12.0
func (s *CapsuleExtensionValidationStep) PluginIDs() []uuid.UUID
func (*CapsuleExtensionValidationStep) WatchObjectStatus ¶ added in v1.12.0
func (s *CapsuleExtensionValidationStep) WatchObjectStatus( _ context.Context, _ *v1alpha2.Capsule, _ pipeline.ObjectStatusCallback, ) error
type PluginUsed ¶
type Service ¶
type Service interface { GetDefaultPipeline() *pipeline.CapsulePipeline DryRun(ctx context.Context, cfg *v1alpha1.OperatorConfig, namespace, capsuleName string, spec *v1alpha2.Capsule, opts ...pipeline.CapsuleRequestOption) (*pipeline.Result, error) DryRunPluginConfig(ctx context.Context, cfg *v1alpha1.OperatorConfig, namespace, capsuleName string, capsuleSpec *v1alpha2.Capsule, ) (pipeline.PluginConfigResult, error) }
func NewService ¶
func NewService( cfg *v1alpha1.OperatorConfig, client client.Client, capSvc capabilities.Service, logger logr.Logger, pluginManager *plugin.Manager, lc fx.Lifecycle, sh fx.Shutdowner, ) Service
Click to show internal directories.
Click to hide internal directories.