security

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager is responsible for creating security resources, fetching deployed ones and comparing them Use with zero values will result in a panic. Use the NewManager function to get a properly initialized manager

func NewManager

func NewManager(nexus *v1alpha1.Nexus, client client.Client) *Manager

NewManager creates a security resources Manager

func (*Manager) GetCustomComparator

func (m *Manager) GetCustomComparator(t reflect.Type) func(deployed resource.KubernetesResource, requested resource.KubernetesResource) bool

GetCustomComparator returns the custom comp function used to compare a security resource. Returns nil if there is none

func (*Manager) GetCustomComparators

func (m *Manager) GetCustomComparators() map[reflect.Type]func(deployed resource.KubernetesResource, requested resource.KubernetesResource) bool

GetCustomComparators returns all custom comp functions in a map indexed by the resource type Returns nil if there are none

func (*Manager) GetDeployedResources

func (m *Manager) GetDeployedResources() ([]resource.KubernetesResource, error)

GetDeployedResources returns the security resources deployed on the cluster

func (*Manager) GetRequiredResources

func (m *Manager) GetRequiredResources() ([]resource.KubernetesResource, error)

GetRequiredResources returns the resources initialized by the Manager

Jump to

Keyboard shortcuts

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