meta

package
v0.0.0-...-c332a7c Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdentityMap

func IdentityMap(_, _ map[string]string)

func IdentityString

func IdentityString(v string) string

Types

type FieldMetaResourceMapping

type FieldMetaResourceMapping struct {
	MapName        func(string) string
	MapNamespace   func(string) string
	MapLabels      func(sourceLabels, targetLabels map[string]string)
	MapAnnotations func(sourceAnnotations, targetAnnotations map[string]string)
}

func NewFieldMetaResourceMapping

func NewFieldMetaResourceMapping() *FieldMetaResourceMapping

func (*FieldMetaResourceMapping) MapMeta

func (m *FieldMetaResourceMapping) MapMeta(resourceKey string, sourceMeta, targetMeta metav1.Object) error

type IdentityMetaResourceMapping

type IdentityMetaResourceMapping struct{}

func (*IdentityMetaResourceMapping) MapMeta

func (m *IdentityMetaResourceMapping) MapMeta(resourceKey string, sourceMeta, targetMeta metav1.Object) error

type MetaActionResolver

type MetaActionResolver struct {
	MetaMapping MetaResourceMapping
}

func (*MetaActionResolver) ResolveMappingActions

func (r *MetaActionResolver) ResolveMappingActions(source interface{}) ([]mapping.MappingAction, error)

type MetaMappingAction

type MetaMappingAction struct {
	MetaMapping MetaResourceMapping
}

func (*MetaMappingAction) Apply

func (a *MetaMappingAction) Apply(source interface{}, resourcePoolManager mapping.ResultSet) error

type MetaResourceMapping

type MetaResourceMapping interface {
	MapMeta(resourceKey string, sourceMeta, targetMeta metav1.Object) error
}

Jump to

Keyboard shortcuts

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