deckgen

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUpNullsInPluginConfigs

func CleanUpNullsInPluginConfigs(state *file.Content)

CleanUpNullsInPluginConfigs modifies `state` by deleting plugin config map keys that have nil as their value.

func FillPluginConfig

func FillPluginConfig(schema map[string]interface{},
	config kong.Configuration) (kong.Configuration, error)

FillPluginConfig returns a copy of `config` that has default values filled in from `schema`.

func GenerateSHA

func GenerateSHA(targetContent *file.Content,
	customEntities []byte) ([]byte, error)

GenerateSHA generates a SHA256 checksum of the (targetContent, customEntities) tuple, with the purpose of change detection.

func GetFCertificateFromKongCert

func GetFCertificateFromKongCert(kongCert kong.Certificate) file.FCertificate

GetFCertificateFromKongCert converts a kong.Certificate to a file.FCertificate.

func PluginString

func PluginString(plugin file.FPlugin) string

PluginString returns a string representation of a FPlugin suitable as a sorting key.

Deprecated. To be replaced by a predicate that compares two FPlugins.

func ToDeckContent

func ToDeckContent(
	ctx context.Context,
	log logrus.FieldLogger,
	k8sState *kongstate.KongState,
	schemas *util.PluginSchemaStore,
	selectorTags []string,
) *file.Content

ToDeckContent generates a decK configuration from `k8sState` and auxiliary parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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