scopes

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScopeEvaluator

type ScopeEvaluator interface {
	GetNamespace(ctx context.Context, currentNamespace string, scope string) (string, bool, error)
	EvaluateScopedReferenceToObject(ctx context.Context, currentNamespace string, scopeRef *v1alpha1.ScopedReference, obj client.Object) (string, bool, error)
	EvaluateScopedReferenceToObjectId(ctx context.Context, currentNamespace string, gk schema.GroupKind, scopeRef *v1alpha1.ScopedReference) (utils.ObjectId, bool, error)
	EvaluateScopedKindReferenceToObject(ctx context.Context, currentNamespace string, kindRef *v1alpha1.ScopedKindReference) (runtime.Object, string, bool, error)
	EvaluateScopedKindReferenceToObjectId(ctx context.Context, currentNamespace string, kindRef *v1alpha1.ScopedKindReference) (utils.ObjectId, bool, error)
}

func NewScopeEvaluator

func NewScopeEvaluator(client client.Client) ScopeEvaluator

Jump to

Keyboard shortcuts

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