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 ¶
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