dump

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(client *kong.Client, config Config) (*utils.KongRawState, error)

Get queries all the entities using client and returns all the entities in KongRawState.

func GetAllCertificates

func GetAllCertificates(client *kong.Client, tags []string) ([]*kong.Certificate, error)

GetAllCertificates queries Kong for all the certificates using client.

func GetAllConsumers

func GetAllConsumers(client *kong.Client, tags []string) ([]*kong.Consumer, error)

GetAllConsumers queries Kong for all the consumers using client. Please use this method with caution if you have a lot of consumers.

func GetAllPlugins

func GetAllPlugins(client *kong.Client, tags []string) ([]*kong.Plugin, error)

GetAllPlugins queries Kong for all the plugins using client.

func GetAllRoutes

func GetAllRoutes(client *kong.Client, tags []string) ([]*kong.Route, error)

GetAllRoutes queries Kong for all the routes using client.

func GetAllSNIs

func GetAllSNIs(client *kong.Client, tags []string) ([]*kong.SNI, error)

GetAllSNIs queries Kong for all the SNIs using client.

func GetAllServices

func GetAllServices(client *kong.Client, tags []string) ([]*kong.Service, error)

GetAllServices queries Kong for all the services using client.

func GetAllTargets

func GetAllTargets(client *kong.Client,
	upstreams []*kong.Upstream, tags []string) ([]*kong.Target, error)

GetAllTargets queries Kong for all the Targets of upstreams using client. Targets are queries per upstream as there exists no endpoint in Kong to list all targets of all upstreams.

func GetAllUpstreams

func GetAllUpstreams(client *kong.Client, tags []string) ([]*kong.Upstream, error)

GetAllUpstreams queries Kong for all the Upstreams using client.

func GetState

func GetState(client *kong.Client, config Config) (*state.KongState, error)

GetState queries Kong for all entities using client and constructs a structered state.

Types

type Config

type Config struct {
	// If true, consumers and any plugins associated with it
	// are not exported.
	SkipConsumers bool

	// SelectorTags can be used to export entities tagged with only specific
	// tags.
	SelectorTags []string
}

Config can be used to skip exporting certain entities

Jump to

Keyboard shortcuts

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