traits

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigsTrait

type ConfigsTrait struct {
	Configs []*app.Configuration `json:"configs"`
}

func NewConfigsTrait

func NewConfigsTrait(configs []*app.Configuration) *ConfigsTrait

func (*ConfigsTrait) GetName

func (m *ConfigsTrait) GetName() string

func (*ConfigsTrait) GetType

func (m *ConfigsTrait) GetType() string

type Egress

type Egress struct {
	Hosts []string     `json:"hosts"`
	Port  *egress.Port `json:"port"`
}

type Gateway

type Gateway struct {
	Name string `json:"name"`
	Host string `json:"host"`
}

type Redirect

type Redirect struct {
	URL  URL    `json:"url,omitempty"`
	Code uint32 `json:"code,omitempty"`
}

type Route

type Route struct {
	Name           string                `json:"name"`
	URI            string                `json:"uri,omitempty"`
	Methods        []string              `json:"methods,omitempty"`
	ExactMatch     bool                  `json:"exactMatch,omitempty"`
	DirectResponse *route.DirectResponse `json:"directResponse,omitempty"`
	Redirect       *Redirect             `json:"redirect,omitempty"`
	Forward        *route.Forward        `json:"forward,omitempty"`
}

type RouteTrait

type RouteTrait struct {
	Name     string    `json:"name"`
	Gateways []Gateway `json:"gateways,omitempty"`
	Routes   []Route   `json:"routes,omitempty"`
}

func NewRouteTrait

func NewRouteTrait(name string, entries []*entry.Entry, rs []*route.Route) *RouteTrait

func (*RouteTrait) GetName

func (c *RouteTrait) GetName() string

func (*RouteTrait) GetType

func (c *RouteTrait) GetType() string

type Secret2Envs

type Secret2Envs struct {
	SecretName string `json:"secretName"`
}

func NewSecret2Envs

func NewSecret2Envs(secretName string) *Secret2Envs

func (*Secret2Envs) GetName

func (m *Secret2Envs) GetName() string

func (*Secret2Envs) GetType

func (m *Secret2Envs) GetType() string

type Secret2File

type Secret2File struct {
	SecretName string `json:"secretName"`
}

func NewSecret2File

func NewSecret2File(secretName string) *Secret2File

func (*Secret2File) GetName

func (m *Secret2File) GetName() string

func (*Secret2File) GetType

func (m *Secret2File) GetType() string

type ServiceEntry

type ServiceEntry struct {
	Hosts []string       `json:"hosts"`
	Ports []*egress.Port `json:"ports"`
}

func NewServiceEntry

func NewServiceEntry(egresses []*egress.Egress) *ServiceEntry

func (*ServiceEntry) GetName

func (m *ServiceEntry) GetName() string

func (*ServiceEntry) GetType

func (m *ServiceEntry) GetType() string

type Sidecar

type Sidecar struct {
	Egress []Egress `json:"egress"`
}

func NewSidecar

func NewSidecar(egresses []*egress.Egress) *Sidecar

func (*Sidecar) GetName

func (m *Sidecar) GetName() string

func (*Sidecar) GetType

func (m *Sidecar) GetType() string

type Trait

type Trait interface {
	GetName() string
	GetType() string
}

type URL

type URL struct {
	Schema string `json:"schema,omitempty"`
	Host   string `json:"host,omitempty"`
	Path   string `json:"path,omitempty"`
}

func NewURL

func NewURL(urlStr string) URL

Jump to

Keyboard shortcuts

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