initializer

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Initializer

type Initializer interface {
	GetHandler() handler.PolicyHandler
	GetKubeClient() kubernetes.Interface
}

Initializer interface contains the methods that are required

func New

func New(store policy.PolicyStore) (Initializer, error)

type PolicyInitializer

type PolicyInitializer struct {
	KubeClient kubernetes.Interface
	Handler    handler.PolicyHandler
}

func (*PolicyInitializer) GetHandler

func (pi *PolicyInitializer) GetHandler() handler.PolicyHandler

func (*PolicyInitializer) GetKubeClient

func (pi *PolicyInitializer) GetKubeClient() kubernetes.Interface

Jump to

Keyboard shortcuts

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