keyvaluegenerator

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvaluateTemplate

func EvaluateTemplate(template []byte, keysValues map[string]string) ([]byte, error)

Types

type BasicKVSource

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

func NewBasicKVSource

func NewBasicKVSource(kv map[string]string) *BasicKVSource

func (*BasicKVSource) GetKeysValues

func (source *BasicKVSource) GetKeysValues() (map[string]string, bool)

type KVSource

type KVSource interface {
	// return the keys/values as well as whether there was a modification to them as part
	// of this call
	GetKeysValues() (map[string]string, bool)
}

the purpose of this interface is to derive keys/values which can be applied to a spec

type MultiClusterFileKVSource

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

func NewMultiClusterFileKVSource

func NewMultiClusterFileKVSource(sourceDefinition *apiv1.MultiClusterFileGenerator) *MultiClusterFileKVSource

func (*MultiClusterFileKVSource) GetKeysValues

func (source *MultiClusterFileKVSource) GetKeysValues() (map[string]string, bool)

Jump to

Keyboard shortcuts

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