crdeventhandler

package
v0.0.0-...-200b26a Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientSecret

func GetClientSecret(crd *v1.OidcConfig, kubeClient kubernetes.Interface) string

func GetKubeSecret

func GetKubeSecret(kubeClient kubernetes.Interface, namespace string, ref v1.ClientSecretRef) (*k8sv1.Secret, error)

func ParseTarget

func ParseTarget(target []v1.TargetElement, namespace string) []policy.PolicyMapping

Types

type AddUpdateEventHandler

type AddUpdateEventHandler interface {
	HandleAddUpdateEvent()
}

func GetAddEventHandler

func GetAddEventHandler(obj interface{}, store storepolicy.PolicyStore, kubeClient kubernetes.Interface) AddUpdateEventHandler

type DeleteEventHandler

type DeleteEventHandler interface {
	HandleDeleteEvent()
}

func GetDeleteEventHandler

func GetDeleteEventHandler(crd policy.CrdKey, store storepolicy.PolicyStore) DeleteEventHandler

type JwtConfigAddEventHandler

type JwtConfigAddEventHandler struct {
	Obj   *v1.JwtConfig
	Store storepolicy.PolicyStore
}

func (*JwtConfigAddEventHandler) HandleAddUpdateEvent

func (e *JwtConfigAddEventHandler) HandleAddUpdateEvent()

type JwtConfigDeleteEventHandler

type JwtConfigDeleteEventHandler struct {
	Key   string
	Store storepolicy.PolicyStore
}

func (*JwtConfigDeleteEventHandler) HandleDeleteEvent

func (e *JwtConfigDeleteEventHandler) HandleDeleteEvent()

type OidcConfigAddEventHandler

type OidcConfigAddEventHandler struct {
	Obj        *v1.OidcConfig
	KubeClient kubernetes.Interface
	Store      storepolicy.PolicyStore
}

func (*OidcConfigAddEventHandler) HandleAddUpdateEvent

func (e *OidcConfigAddEventHandler) HandleAddUpdateEvent()

type OidcConfigDeleteEventHandler

type OidcConfigDeleteEventHandler struct {
	Key   string
	Store storepolicy.PolicyStore
}

func (*OidcConfigDeleteEventHandler) HandleDeleteEvent

func (e *OidcConfigDeleteEventHandler) HandleDeleteEvent()

type PolicyAddEventHandler

type PolicyAddEventHandler struct {
	Obj   *v1.Policy
	Store storepolicy.PolicyStore
}

func (*PolicyAddEventHandler) HandleAddUpdateEvent

func (e *PolicyAddEventHandler) HandleAddUpdateEvent()

type PolicyDeleteEventHandler

type PolicyDeleteEventHandler struct {
	Key   string
	Store storepolicy.PolicyStore
}

func (*PolicyDeleteEventHandler) HandleDeleteEvent

func (e *PolicyDeleteEventHandler) HandleDeleteEvent()

Jump to

Keyboard shortcuts

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