tyk

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultIngressTemplate = "default"
	DefaultMeshTemplate    = "default-mesh"
	DefaultInboundTemplate = "default-inbound"
	TemplateNameKey        = "template.service.tyk.io"
)

Variables

This section is empty.

Functions

func CreateCertificate

func CreateCertificate(crt, key []byte) (string, error)

func CreateService

func CreateService(opts *APIDefOptions) (string, error)

func DeleteByID

func DeleteByID(id string) error

func DeleteBySlug

func DeleteBySlug(slug string) error

func GetByObjectID

func GetByObjectID(id string) (*objects.DBApiDefinition, error)

func GetBySlug

func GetBySlug(slug string) (*objects.DBApiDefinition, error)

func Init

func Init(forceConf *TykConf)

func TemplateService

func TemplateService(opts *APIDefOptions) ([]byte, error)

func UpdateAPI

func UpdateAPI(def *apidef.APIDefinition) error

func UpdateAPIs

func UpdateAPIs(svcs map[string]*APIDefOptions) error

Types

type APIDefOptions

type APIDefOptions struct {
	Name          string
	Target        string
	ListenPath    string
	TemplateName  string
	Hostname      string
	Slug          string
	Tags          []string
	APIID         string
	ID            string
	LegacyAPIDef  *objects.DBApiDefinition
	Annotations   map[string]string
	CertificateID []string
}

type TykConf

type TykConf struct {
	URL                string `yaml:"url"`
	Secret             string `yaml:"secret"`
	Org                string `yaml:"org"`
	Templates          string `yaml:"templates"`
	IsGateway          bool   `yaml:"is_gateway"`
	InsecureSkipVerify bool   `yaml:"insecure_skip_verify"`
	IsHybrid           bool   `yaml:"is_hybrid"`
}

Jump to

Keyboard shortcuts

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