Documentation ¶
Index ¶
- func CleanUpNullsInPluginConfigs(state *file.Content)
- func GenerateSHA(targetContent *file.Content) ([]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
- type GenerateDeckContentParams
- type PluginSchemaStore
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 GenerateSHA ¶
GenerateSHA generates a SHA256 checksum of targetContent, 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, params GenerateDeckContentParams, ) *file.Content
ToDeckContent generates a decK configuration from `k8sState` and auxiliary parameters.
Types ¶
type GenerateDeckContentParams ¶ added in v2.10.0
type GenerateDeckContentParams struct { FormatVersion string SelectorTags []string ExpressionRoutes bool PluginSchemas PluginSchemaStore }
GenerateDeckContentParams is the parameters used to generate deck contents.
Click to show internal directories.
Click to hide internal directories.