Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PerformUpdate ¶
func PerformUpdate(ctx context.Context, log logrus.FieldLogger, kongConfig *Kong, inMemory bool, reverseSync bool, skipCACertificates bool, targetContent *file.Content, selectorTags []string, customEntities []byte, oldSHA []byte, promMetrics *metrics.CtrlFuncMetrics) ([]byte, error)
PerformUpdate writes `targetContent` and `customEntities` to Kong Admin API specified by `kongConfig`.
Types ¶
type Kong ¶
type Kong struct {
URL string
FilterTags []string
// Headers are injected into every request to Kong's Admin API
// to help with authorization/authentication.
Client *kong.Client
PluginSchemaStore *util.PluginSchemaStore
InMemory bool
// DeprecatedHasTagSupport is not used in KIC 2.x.
// If the gateway instance does not support tags, pass an empty FilterTags slice instead.
DeprecatedHasTagSupport bool
Enterprise bool
Version semver.Version
Concurrency int
}
Kong Represents a Kong client and connection information
Click to show internal directories.
Click to hide internal directories.