Documentation
¶
Index ¶
- func CleanUpNullsInPluginConfigs(state *file.Content)
- func FillPluginConfig(schema map[string]interface{}, config kong.Configuration) (kong.Configuration, error)
- func GenerateSHA(targetContent *file.Content, customEntities []byte) ([]byte, error)
- func GetFCertificateFromKongCert(kongCert kong.Certificate) file.FCertificate
- func PluginString(plugin file.FPlugin) string
- func ToDeckContent(ctx context.Context, log logrus.FieldLogger, k8sState *kongstate.KongState, ...) *file.Content
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanUpNullsInPluginConfigs ¶
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 ¶
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 ¶
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.