subroutines

package
v0.0.0-...-0d587f6 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

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 (*ExtensionReadySubroutine) Finalizers

func (e *ExtensionReadySubroutine) Finalizers() []string

func (*ExtensionReadySubroutine) GetName

func (e *ExtensionReadySubroutine) GetName() string

func (*ExtensionReadySubroutine) Process

type ExtensionSubroutine

type ExtensionSubroutine struct {
	// contains filtered or unexported fields
}

func NewExtensionSubroutine

func NewExtensionSubroutine(cl client.Client) *ExtensionSubroutine

func (*ExtensionSubroutine) Finalize

func (*ExtensionSubroutine) Finalizers

func (e *ExtensionSubroutine) Finalizers() []string

func (*ExtensionSubroutine) GetName

func (e *ExtensionSubroutine) GetName() string

func (*ExtensionSubroutine) Process

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 (*FGASubroutine) Finalizers

func (e *FGASubroutine) Finalizers() []string

func (*FGASubroutine) GetName

func (e *FGASubroutine) GetName() string

func (*FGASubroutine) Process

type NamespaceSubroutine

type NamespaceSubroutine struct {
	// contains filtered or unexported fields
}

func NewNamespaceSubroutine

func NewNamespaceSubroutine(client client.Client) *NamespaceSubroutine

func (*NamespaceSubroutine) Finalize

func (*NamespaceSubroutine) Finalizers

func (r *NamespaceSubroutine) Finalizers() []string

func (*NamespaceSubroutine) GetName

func (r *NamespaceSubroutine) GetName() string

func (*NamespaceSubroutine) Process

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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