Documentation
¶
Index ¶
- func Get(client *kong.Client, config Config) (*utils.KongRawState, error)
- func GetAllCertificates(client *kong.Client, tags []string) ([]*kong.Certificate, error)
- func GetAllConsumers(client *kong.Client, tags []string) ([]*kong.Consumer, 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 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 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.