Documentation ¶
Index ¶
Constants ¶
View Source
const (
// define Upstream type name
UpstreamTypeKube = "kubernetes"
)
Variables ¶
This section is empty.
Functions ¶
func EncodeUpstreamSpec ¶
func EncodeUpstreamSpec(spec UpstreamSpec) *types.Struct
func NewEndpointDiscovery ¶
Types ¶
type Plugin ¶
type Plugin struct{}
func (*Plugin) GetDependencies ¶
func (p *Plugin) GetDependencies(_ *v1.Config) *plugin.Dependencies
func (*Plugin) ProcessUpstream ¶
type UpstreamSpec ¶
type UpstreamSpec struct { ServiceName string `json:"service_name"` ServiceNamespace string `json:"service_namespace"` ServicePort int32 `json:"service_port,omitempty"` Labels map[string]string `json:"labels,omitempty"` }
func DecodeUpstreamSpec ¶
func DecodeUpstreamSpec(generic v1.UpstreamSpec) (*UpstreamSpec, error)
Click to show internal directories.
Click to hide internal directories.