sendconfig

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

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

Jump to

Keyboard shortcuts

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