resource

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetComparator

func GetComparator() compare.MapComparator

GetComparator will create the default comparator for the Nexus instance The comparator can be used to compare two different sets of resources and update them accordingly

Types

type NexusResourceManager

type NexusResourceManager interface {
	// GetDeployedResources will fetch for the resources managed by the nexus instance deployed in the cluster
	GetDeployedResources(nexus *v1alpha1.Nexus) (resources map[reflect.Type][]resource.KubernetesResource, err error)
	// CreateRequiredResources will create the requests resources as it's supposed to be
	CreateRequiredResources(nexus *v1alpha1.Nexus) (resources map[reflect.Type][]resource.KubernetesResource, err error)
}

NexusResourceManager is the resources manager for the nexus CR. Handles the creation of every single resource needed to deploy a nexus server instance on Kubernetes

func New

func New(client client.Client, discoveryClient discovery.DiscoveryInterface) NexusResourceManager

New creates a new resource manager for nexus CR

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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