Documentation ¶
Index ¶
- func Empty(s *string) bool
- func GetKongClient(opt KongClientConfig) (*kong.Client, error)
- func MergeTags(obj interface{}, tags []string) error
- func RemoveTags(obj interface{}, tags []string) error
- func UUID() string
- type Defaulter
- type ErrArray
- type HeaderRoundTripper
- type KongClientConfig
- type KongRawState
- type Overrider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKongClient ¶
func GetKongClient(opt KongClientConfig) (*kong.Client, error)
GetKongClient returns a Kong client
func RemoveTags ¶
RemoveTags removes tags from the Tags in obj.
Types ¶
type Defaulter ¶
type Defaulter struct {
// contains filtered or unexported fields
}
Defaulter registers types and fills in struct fields with default values.
func GetKongDefaulter ¶
GetKongDefaulter returns a defaulter which can set default values for Kong entities.
type HeaderRoundTripper ¶
type HeaderRoundTripper struct {
// contains filtered or unexported fields
}
HeaderRoundTripper injects Headers into requests made via RT.
type KongClientConfig ¶
type KongClientConfig struct { Address string Headers []string TLSSkipVerify bool TLSServerName string TLSCACert string Debug bool }
KongClientConfig holds config details to use to talk to a Kong server.
type KongRawState ¶
type KongRawState struct { Services []*kong.Service Routes []*kong.Route Plugins []*kong.Plugin Upstreams []*kong.Upstream Targets []*kong.Target Certificates []*kong.Certificate SNIs []*kong.SNI Consumers []*kong.Consumer CustomEntities []*custom.Entity }
KongRawState contains all of Kong Data
Source Files ¶
Click to show internal directories.
Click to hide internal directories.