networking

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: 17 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 networking 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, error)

NewManager creates a networking resources manager It is expected that the Nexus has been previously validated.

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