Documentation ¶
Index ¶
- Constants
- Variables
- func RenderExtensionSpec(ctx context.Context, keyValues map[string]any, account *v1alpha1.Account, ...) error
- type ExtensionReadySubroutine
- func (e *ExtensionReadySubroutine) Finalize(_ context.Context, _ lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
- func (e *ExtensionReadySubroutine) Finalizers() []string
- func (e *ExtensionReadySubroutine) GetName() string
- func (e *ExtensionReadySubroutine) Process(ctx context.Context, instance lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
- type ExtensionSubroutine
- func (e *ExtensionSubroutine) Finalize(ctx context.Context, instance lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
- func (e *ExtensionSubroutine) Finalizers() []string
- func (e *ExtensionSubroutine) GetName() string
- func (e *ExtensionSubroutine) Process(ctx context.Context, instance lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
- type FGASubroutine
- func (e *FGASubroutine) Finalize(ctx context.Context, runtimeObj lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
- func (e *FGASubroutine) Finalizers() []string
- func (e *FGASubroutine) GetName() string
- func (e *FGASubroutine) Process(ctx context.Context, runtimeObj lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
- type NamespaceSubroutine
- func (r *NamespaceSubroutine) Finalize(ctx context.Context, runtimeObj lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
- func (r *NamespaceSubroutine) Finalizers() []string
- func (r *NamespaceSubroutine) GetName() string
- func (r *NamespaceSubroutine) Process(ctx context.Context, runtimeObj lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
Constants ¶
View Source
const ( ExtensionSubroutineName = "ExtensionSubroutine" ExtensionSubroutineFinalizer = "account.core.openmfp.io/ext" )
View Source
const ( NamespaceSubroutineName = "NamespaceSubroutine" NamespaceSubroutineFinalizer = "account.core.openmfp.io/finalizer" NamespaceNamePrefix = "account-" )
Variables ¶
View Source
var (
ErrNoParentAvailable = errors.New("no parent namespace available")
)
View Source
var NamespaceOwnedByAnAccountInAnotherNamespaceErr = errors.New("Namespace already owned by another account in another namespace")
View Source
var NamespaceOwnedByAnotherAccountErr = errors.New("Namespace already owned by another account")
Functions ¶
func RenderExtensionSpec ¶
func RenderExtensionSpec(ctx context.Context, keyValues map[string]any, account *v1alpha1.Account, us *unstructured.Unstructured, path []string) error
Types ¶
type ExtensionReadySubroutine ¶
type ExtensionReadySubroutine struct {
// contains filtered or unexported fields
}
func NewExtensionReadySubroutine ¶
func NewExtensionReadySubroutine(cl client.Client) *ExtensionReadySubroutine
func (*ExtensionReadySubroutine) Finalize ¶
func (e *ExtensionReadySubroutine) Finalize(_ context.Context, _ lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
func (*ExtensionReadySubroutine) Finalizers ¶
func (e *ExtensionReadySubroutine) Finalizers() []string
func (*ExtensionReadySubroutine) GetName ¶
func (e *ExtensionReadySubroutine) GetName() string
func (*ExtensionReadySubroutine) Process ¶
func (e *ExtensionReadySubroutine) Process(ctx context.Context, instance lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
type ExtensionSubroutine ¶
type ExtensionSubroutine struct {
// contains filtered or unexported fields
}
func NewExtensionSubroutine ¶
func NewExtensionSubroutine(cl client.Client) *ExtensionSubroutine
func (*ExtensionSubroutine) Finalize ¶
func (e *ExtensionSubroutine) Finalize(ctx context.Context, instance lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
func (*ExtensionSubroutine) Finalizers ¶
func (e *ExtensionSubroutine) Finalizers() []string
func (*ExtensionSubroutine) GetName ¶
func (e *ExtensionSubroutine) GetName() string
func (*ExtensionSubroutine) Process ¶
func (e *ExtensionSubroutine) Process(ctx context.Context, instance lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
type FGASubroutine ¶
type FGASubroutine struct {
// contains filtered or unexported fields
}
func NewFGASubroutine ¶
func NewFGASubroutine(cl client.Client, fgaClient openfgav1.OpenFGAServiceClient, s service.Servicer, rootNamespace, creatorRelation, parentRealtion, objectType string) *FGASubroutine
func (*FGASubroutine) Finalize ¶
func (e *FGASubroutine) Finalize(ctx context.Context, runtimeObj lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
func (*FGASubroutine) Finalizers ¶
func (e *FGASubroutine) Finalizers() []string
func (*FGASubroutine) GetName ¶
func (e *FGASubroutine) GetName() string
func (*FGASubroutine) Process ¶
func (e *FGASubroutine) Process(ctx context.Context, runtimeObj lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
type NamespaceSubroutine ¶
type NamespaceSubroutine struct {
// contains filtered or unexported fields
}
func NewNamespaceSubroutine ¶
func NewNamespaceSubroutine(client client.Client) *NamespaceSubroutine
func (*NamespaceSubroutine) Finalize ¶
func (r *NamespaceSubroutine) Finalize(ctx context.Context, runtimeObj lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
func (*NamespaceSubroutine) Finalizers ¶
func (r *NamespaceSubroutine) Finalizers() []string
func (*NamespaceSubroutine) GetName ¶
func (r *NamespaceSubroutine) GetName() string
func (*NamespaceSubroutine) Process ¶
func (r *NamespaceSubroutine) Process(ctx context.Context, runtimeObj lifecycle.RuntimeObject) (ctrl.Result, errors.OperatorError)
Click to show internal directories.
Click to hide internal directories.