policy

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCredentials

type ClientCredentials struct {
	ClientID     string
	ClientSecret string
}

type Policy

type Policy struct {
	Credentials ClientCredentials
	// contains filtered or unexported fields
}

type PolicyCache

type PolicyCache interface {
	GetPolicies() ([]Policy, error)
	Flush()
}

func NewPolicyCache

func NewPolicyCache(log logr.Logger, loader PolicyLoader) PolicyCache

type PolicyEngine

type PolicyEngine interface {
	GetClient(secret *keyhubv1alpha1.KeyHubSecret) (*keyhub.Client, error)
	Flush()
}

func NewPolicyEngine

func NewPolicyEngine(client client.Client, log logr.Logger, settingsMgr settings.SettingsManager) PolicyEngine

type PolicyLoader

type PolicyLoader interface {
	Load() (*[]Policy, error)
}

func NewPolicyLoader

func NewPolicyLoader(log logr.Logger, settingsMgr settings.SettingsManager) PolicyLoader

type PolicyResolver

type PolicyResolver interface {
	Resolve(secret *keyhubv1alpha1.KeyHubSecret) (*Policy, error)
}

func NewNamespacePolicyResolver

func NewNamespacePolicyResolver(client client.Client, log logr.Logger, policies []Policy) PolicyResolver

Jump to

Keyboard shortcuts

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