Documentation
¶
Index ¶
- Variables
- func ParseConfiguration()
- func ValidateConfiguration()
- type Instance
- func (i *Instance) CreatePluginAtAnyLevel(plugin *kong.Plugin) (*kong.Plugin, error)
- func (i *Instance) DeletePluginForRoute(routeId *string, nameOrID *string) error
- func (i *Instance) DeletePluginForService(serviceId *string, nameOrID *string) error
- func (i *Instance) FindConsumer(nameOrId *string) (*kong.Consumer, error)
- func (i *Instance) FindRoute(service *kong.Service, nameOrId *string) (*kong.Route, error)
- func (i *Instance) FindService(nameOrId *string) (*kong.Service, error)
- func (i *Instance) GetClient() (*kong.Client, error)
- func (i *Instance) GetRoutesForService(serviceNameOrID *string) ([]*kong.Route, *kong.ListOpt, error)
- func (i *Instance) GetServices() ([]*kong.Service, error)
- func (i *Instance) IsAuthenticated() bool
- func (i *Instance) UpdatePluginForRoute(routeId *string, plugin *kong.Plugin) (*kong.Plugin, error)
- func (i *Instance) UpdatePluginForService(serviceId *string, plugin *kong.Plugin) (*kong.Plugin, error)
- type Specification
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Instances []Instance
)
Functions ¶
func ParseConfiguration ¶
func ParseConfiguration()
func ValidateConfiguration ¶
func ValidateConfiguration()
Types ¶
type Instance ¶
type Instance struct {
Name string `json:"name"`
BaseUrl string `json:"baseUrl"`
HeaderKey string `json:"headerKey"`
HeaderValue string `json:"headerValue"`
}
func FindInstanceByName ¶
func (*Instance) CreatePluginAtAnyLevel ¶
func (*Instance) DeletePluginForRoute ¶
func (*Instance) DeletePluginForService ¶
func (*Instance) FindConsumer ¶
func (*Instance) FindService ¶
func (*Instance) GetRoutesForService ¶
func (*Instance) IsAuthenticated ¶
func (*Instance) UpdatePluginForRoute ¶
type Specification ¶
type Specification struct {
DiscoveryAttributesExcludesService []string `json:"discoveryAttributesExcludesService" split_words:"true" required:"false"`
DiscoveryAttributesExcludesRoute []string `json:"discoveryAttributesExcludesRoute" split_words:"true" required:"false"`
}
Specification is the configuration specification for the extension. Configuration values can be applied through environment variables. Learn more through the documentation of the envconfig package. https://github.com/kelseyhightower/envconfig
var (
Config Specification
)
Click to show internal directories.
Click to hide internal directories.