kedge_config_common

package
v0.1.1-rc.6 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package kedge_config_common is a generated protocol buffer package.

It is generated from these files:

kedge/config/common/adhoc.proto

It has these top-level messages:

Adhoc

Package kedge_config_common is a generated protocol buffer package.

It is generated from these files:

kedge/config/common/adhoc.proto

It has these top-level messages:

Adhoc

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adhoc

type Adhoc struct {
	// / dns_name_matcher matches the hostname that will be used to resolve A records.
	// / The names are matched with a * prefix. For example:
	// / - *.pod.cluster.local
	// / - *.my_namespace.svc.cluster.local
	// / - *.local
	// / The first rule that matches a DNS name will be used, and its ports will be checked.
	DnsNameMatcher string `protobuf:"bytes,1,opt,name=dns_name_matcher,json=dnsNameMatcher" json:"dns_name_matcher,omitempty"`
	// / Port controls the :port behaviour of the URI requested.
	Port *Adhoc_Port `protobuf:"bytes,2,opt,name=port" json:"port,omitempty"`
	// / dns_name_replace is an optional replacement pattern to alter hostname before A records resolution.
	// / This is useful when exposed domain is different than local resolvable one.
	// /
	// / Example:
	// / Inside cluster you can resolve only 'abc.default.svc.cluster.local' however since you have multiple clusters
	// / you want this abc service/pod to be accessible as 'abc.default.svc.cluster1.example.com'. In this case you want
	// / to set dns_name_replace.pattern "cluster1.example.com" , dns_name_replace.substitution="cluster.local"
	DnsNameReplace *Adhoc_Replace `protobuf:"bytes,3,opt,name=dns_name_replace,json=dnsNameReplace" json:"dns_name_replace,omitempty"`
}

/ Adhoc describes an adhoc proxying method that is not backed by a backend, but dials a "free form" DNS record.

func (*Adhoc) Descriptor

func (*Adhoc) Descriptor() ([]byte, []int)

func (*Adhoc) GetDnsNameMatcher

func (m *Adhoc) GetDnsNameMatcher() string

func (*Adhoc) GetDnsNameReplace

func (m *Adhoc) GetDnsNameReplace() *Adhoc_Replace

func (*Adhoc) GetPort

func (m *Adhoc) GetPort() *Adhoc_Port

func (*Adhoc) ProtoMessage

func (*Adhoc) ProtoMessage()

func (*Adhoc) Reset

func (m *Adhoc) Reset()

func (*Adhoc) String

func (m *Adhoc) String() string

func (*Adhoc) Validate

func (this *Adhoc) Validate() error

type Adhoc_Port

type Adhoc_Port struct {
	// / default is the default port used if no entry is present.
	// / This defaults to 80.
	Default uint32 `protobuf:"varint,1,opt,name=default" json:"default,omitempty"`
	// / allowed ports is a list of whitelisted ports that this Adhoc rule will allow.
	Allowed []uint32 `protobuf:"varint,3,rep,packed,name=allowed" json:"allowed,omitempty"`
	// / allowed_ranges is a list of whitelisted port ranges that this Adhoc rule will allow.
	AllowedRanges []*Adhoc_Port_Range `protobuf:"bytes,4,rep,name=allowed_ranges,json=allowedRanges" json:"allowed_ranges,omitempty"`
}

/ Port controls how the :port part of the URI is processed.

func (*Adhoc_Port) Descriptor

func (*Adhoc_Port) Descriptor() ([]byte, []int)

func (*Adhoc_Port) GetAllowed

func (m *Adhoc_Port) GetAllowed() []uint32

func (*Adhoc_Port) GetAllowedRanges

func (m *Adhoc_Port) GetAllowedRanges() []*Adhoc_Port_Range

func (*Adhoc_Port) GetDefault

func (m *Adhoc_Port) GetDefault() uint32

func (*Adhoc_Port) ProtoMessage

func (*Adhoc_Port) ProtoMessage()

func (*Adhoc_Port) Reset

func (m *Adhoc_Port) Reset()

func (*Adhoc_Port) String

func (m *Adhoc_Port) String() string

func (*Adhoc_Port) Validate

func (this *Adhoc_Port) Validate() error

type Adhoc_Port_Range

type Adhoc_Port_Range struct {
	// / from is an inclusive lower bound for the port range
	From uint32 `protobuf:"varint,1,opt,name=from" json:"from,omitempty"`
	// / to is an inclusive upper bound for the port range
	To uint32 `protobuf:"varint,2,opt,name=to" json:"to,omitempty"`
}

func (*Adhoc_Port_Range) Descriptor

func (*Adhoc_Port_Range) Descriptor() ([]byte, []int)

func (*Adhoc_Port_Range) GetFrom

func (m *Adhoc_Port_Range) GetFrom() uint32

func (*Adhoc_Port_Range) GetTo

func (m *Adhoc_Port_Range) GetTo() uint32

func (*Adhoc_Port_Range) ProtoMessage

func (*Adhoc_Port_Range) ProtoMessage()

func (*Adhoc_Port_Range) Reset

func (m *Adhoc_Port_Range) Reset()

func (*Adhoc_Port_Range) String

func (m *Adhoc_Port_Range) String() string

func (*Adhoc_Port_Range) Validate

func (this *Adhoc_Port_Range) Validate() error

type Adhoc_Replace

type Adhoc_Replace struct {
	// pattern specified pattern to substitute the hostname with. If not pattern is not found, nothing is substituted
	// with warning.
	Pattern      string `protobuf:"bytes,1,opt,name=pattern" json:"pattern,omitempty"`
	Substitution string `protobuf:"bytes,2,opt,name=substitution" json:"substitution,omitempty"`
}

func (*Adhoc_Replace) Descriptor

func (*Adhoc_Replace) Descriptor() ([]byte, []int)

func (*Adhoc_Replace) GetPattern

func (m *Adhoc_Replace) GetPattern() string

func (*Adhoc_Replace) GetSubstitution

func (m *Adhoc_Replace) GetSubstitution() string

func (*Adhoc_Replace) ProtoMessage

func (*Adhoc_Replace) ProtoMessage()

func (*Adhoc_Replace) Reset

func (m *Adhoc_Replace) Reset()

func (*Adhoc_Replace) String

func (m *Adhoc_Replace) String() string

func (*Adhoc_Replace) Validate

func (this *Adhoc_Replace) Validate() error

Directories

Path Synopsis
Package kedge_config_common_resolvers is a generated protocol buffer package.
Package kedge_config_common_resolvers is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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