Documentation
¶
Index ¶
- func Get(client *kong.Client, config Config) (*utils.KongRawState, error)
- func GetAllACLGroups(client *kong.Client, tags []string) ([]*kong.ACLGroup, error)
- func GetAllBasicAuths(client *kong.Client, tags []string) ([]*kong.BasicAuth, error)
- func GetAllCACertificates(client *kong.Client, tags []string) ([]*kong.CACertificate, error)
- func GetAllCertificates(client *kong.Client, tags []string) ([]*kong.Certificate, error)
- func GetAllConsumers(client *kong.Client, tags []string) ([]*kong.Consumer, error)
- func GetAllHMACAuths(client *kong.Client, tags []string) ([]*kong.HMACAuth, error)
- func GetAllJWTAuths(client *kong.Client, tags []string) ([]*kong.JWTAuth, error)
- func GetAllKeyAuths(client *kong.Client, tags []string) ([]*kong.KeyAuth, error)
- func GetAllPlugins(client *kong.Client, tags []string) ([]*kong.Plugin, error)
- func GetAllRoutes(client *kong.Client, tags []string) ([]*kong.Route, error)
- func GetAllSNIs(client *kong.Client, tags []string) ([]*kong.SNI, error)
- func GetAllServices(client *kong.Client, tags []string) ([]*kong.Service, error)
- func GetAllTargets(client *kong.Client, upstreams []*kong.Upstream, tags []string) ([]*kong.Target, error)
- func GetAllUpstreams(client *kong.Client, tags []string) ([]*kong.Upstream, error)
- func GetState(client *kong.Client, config Config) (*state.KongState, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllACLGroups ¶ added in v0.5.0
GetAllACLGroups queries Kong for all ACL groups using client.
func GetAllBasicAuths ¶ added in v0.5.0
GetAllBasicAuths queries Kong for all basic-auth credentials using client.
func GetAllCACertificates ¶ added in v0.5.0
GetAllCACertificates queries Kong for all the CACertificates using client.
func GetAllCertificates ¶
GetAllCertificates queries Kong for all the certificates using client.
func GetAllConsumers ¶
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
GetAllHMACAuths queries Kong for all hmac-auth credentials using client.
func GetAllJWTAuths ¶ added in v0.5.0
GetAllJWTAuths queries Kong for all jwt credentials using client.
func GetAllKeyAuths ¶ added in v0.5.0
GetAllKeyAuths queries Kong for all key-auth credentials using client.
func GetAllPlugins ¶
GetAllPlugins queries Kong for all the plugins using client.
func GetAllRoutes ¶
GetAllRoutes queries Kong for all the routes using client.
func GetAllSNIs ¶
GetAllSNIs queries Kong for all the SNIs using client.
func GetAllServices ¶
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 ¶
GetAllUpstreams queries Kong for all the Upstreams using client.
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