config

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Instances []Instance
)

Functions

This section is empty.

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 FindInstanceByName(name string) (*Instance, error)

func (*Instance) CreatePluginAtAnyLevel added in v1.4.1

func (i *Instance) CreatePluginAtAnyLevel(plugin *kong.Plugin) (*kong.Plugin, error)

func (*Instance) DeletePluginForRoute added in v1.4.1

func (i *Instance) DeletePluginForRoute(routeId *string, nameOrID *string) error

func (*Instance) DeletePluginForService added in v1.4.1

func (i *Instance) DeletePluginForService(serviceId *string, nameOrID *string) error

func (*Instance) FindConsumer

func (i *Instance) FindConsumer(nameOrId *string) (*kong.Consumer, error)

func (*Instance) FindRoute added in v1.4.0

func (i *Instance) FindRoute(service *kong.Service, nameOrId *string) (*kong.Route, error)

func (*Instance) FindService

func (i *Instance) FindService(nameOrId *string) (*kong.Service, error)

func (*Instance) GetClient

func (i *Instance) GetClient() (*kong.Client, error)

func (*Instance) GetRoutesForService added in v1.4.1

func (i *Instance) GetRoutesForService(serviceNameOrID *string) ([]*kong.Route, *kong.ListOpt, error)

func (*Instance) GetServices

func (i *Instance) GetServices() ([]*kong.Service, error)

func (*Instance) IsAuthenticated

func (i *Instance) IsAuthenticated() bool

func (*Instance) UpdatePluginForRoute added in v1.4.1

func (i *Instance) UpdatePluginForRoute(routeId *string, plugin *kong.Plugin) (*kong.Plugin, error)

func (*Instance) UpdatePluginForService added in v1.4.1

func (i *Instance) UpdatePluginForService(serviceId *string, plugin *kong.Plugin) (*kong.Plugin, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL