mappings

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeNetworkMappings added in v0.2.1

func MergeNetworkMappings(primaryMappings *[]v1beta1.NetworkResourceMappingItem, secondaryMappings *[]v1beta1.NetworkResourceMappingItem) *[]v1beta1.NetworkResourceMappingItem

MergeNetworkMappings merges a primary list of NetworkResourceMappingItems with a supplemental secondary list. Where the two lists conflict, the item from the primary mapping will be kept

func MergeStorageMappings added in v0.2.1

func MergeStorageMappings(primaryMappings *[]v1beta1.StorageResourceMappingItem, secondaryMappings *[]v1beta1.StorageResourceMappingItem) *[]v1beta1.StorageResourceMappingItem

MergeStorageMappings merges a primary list of StorageResourceMappingItem with a supplemental secondary list. Where the two lists conflict, the item from the primary mapping will be kept

Types

type ResourceFinder

type ResourceFinder interface {
	GetResourceMapping(namespacedName types.NamespacedName) (*v2vv1.ResourceMapping, error)
}

ResourceFinder finds resource mappings

type ResourceMappingsFinder

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

ResourceMappingsFinder provides functionality of retrieving Resource Mapping CRs

func NewResourceMappingsFinder

func NewResourceMappingsFinder(client client.Client) *ResourceMappingsFinder

NewResourceMappingsFinder creates new ResourceMappingsFinder configured with given client

func (*ResourceMappingsFinder) GetResourceMapping

func (m *ResourceMappingsFinder) GetResourceMapping(namespacedName types.NamespacedName) (*v2vv1.ResourceMapping, error)

GetResourceMapping retrieves current version of a resource mapping CR with given namespaced name

Jump to

Keyboard shortcuts

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