Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - func GenerateSHA(targetContent *file.Content, customEntities map[string][]custom.Object) ([]byte, error)
 - func GetFCertificateFromKongCert(kongCert kong.Certificate) file.FCertificate
 - func IsContentEmpty(content *file.Content) bool
 - func PluginString(plugin file.FPlugin) string
 - func ToDeckContent(ctx context.Context, logger logr.Logger, k8sState *kongstate.KongState, ...) *file.Content
 - type GenerateDeckContentParams
 - type PluginSchemaStore
 
Constants ¶
      View Source
      
  const StubUpstreamName = "kong"
    StubUpstreamName is a name of a stub upstream that is created when the configuration is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSHA ¶
func GenerateSHA(targetContent *file.Content, customEntities map[string][]custom.Object) ([]byte, error)
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 IsContentEmpty ¶
IsContentEmpty returns true if the content is considered empty. This ignores meta fields like FormatVersion and Info.
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.
Types ¶
type GenerateDeckContentParams ¶
type GenerateDeckContentParams struct {
	SelectorTags     []string
	ExpressionRoutes bool
	PluginSchemas    PluginSchemaStore
	// AppendStubEntityWhenConfigEmpty indicates whether to append a stub entity to the configuration when
	// the configuration is empty. It is used to workaround behavior in Kong where sending an empty configuration
	// does not make its `GET /status/ready` endpoint return 200s.
	AppendStubEntityWhenConfigEmpty bool
}
    GenerateDeckContentParams is the parameters used to generate deck contents.
 Click to show internal directories. 
   Click to hide internal directories.