dump

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 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 GetAllACLGroups added in v0.5.0

func GetAllACLGroups(client *kong.Client, tags []string) ([]*kong.ACLGroup, error)

GetAllACLGroups queries Kong for all ACL groups using client.

func GetAllBasicAuths added in v0.5.0

func GetAllBasicAuths(client *kong.Client, tags []string) ([]*kong.BasicAuth, error)

GetAllBasicAuths queries Kong for all basic-auth credentials using client.

func GetAllCACertificates added in v0.5.0

func GetAllCACertificates(client *kong.Client,
	tags []string) ([]*kong.CACertificate, error)

GetAllCACertificates queries Kong for all the CACertificates using client.

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 GetAllHMACAuths added in v0.5.0

func GetAllHMACAuths(client *kong.Client, tags []string) ([]*kong.HMACAuth, error)

GetAllHMACAuths queries Kong for all hmac-auth credentials using client.

func GetAllJWTAuths added in v0.5.0

func GetAllJWTAuths(client *kong.Client, tags []string) ([]*kong.JWTAuth, error)

GetAllJWTAuths queries Kong for all jwt credentials using client.

func GetAllKeyAuths added in v0.5.0

func GetAllKeyAuths(client *kong.Client, tags []string) ([]*kong.KeyAuth, error)

GetAllKeyAuths queries Kong for all key-auth credentials using client.

func GetAllOauth2Creds added in v0.5.1

func GetAllOauth2Creds(client *kong.Client,
	tags []string) ([]*kong.Oauth2Credential, error)

GetAllOauth2Creds queries Kong for all oauth2 credentials using client.

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 structured state.

Types

type Config added in v0.2.0

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