Documentation ¶
Index ¶
- Constants
- Variables
- func BuildEgress(name string) error
- func GetEgressType(egress config.Egress) string
- func Init() error
- func InstallEgressService(name string, f func() (Egress, error))
- func IsDNS1123Label(value string) bool
- func IsWildcardDNS1123Label(value string) bool
- func Match(hostname string) (bool, *control.EgressConfig)
- func ValidateEgressRule(rules map[string][]*config.EgressRule) (bool, error)
- func ValidateHostName(host string) error
- type Egress
- type Options
Constants ¶
View Source
const ( DefaultEgressType = "cse" // EgressTLS defines tls prefix EgressTLS = "egress" )
Variables ¶
View Source
var ErrNoExist = errors.New("Egress not exists")
ErrNoExist means if there is no egress implementation
Functions ¶
func GetEgressType ¶
GetEgressType returns the type of egress
func InstallEgressService ¶
InstallEgressService install egress service for developer
func IsWildcardDNS1123Label ¶
IsWildcardDNS1123Label validate wild card label
func Match ¶
func Match(hostname string) (bool, *control.EgressConfig)
Match Check Egress rule matches
func ValidateEgressRule ¶
func ValidateEgressRule(rules map[string][]*config.EgressRule) (bool, error)
ValidateEgressRule validate the Egress rules of each service
func ValidateHostName ¶
ValidateHostName validates the host
Types ¶
Click to show internal directories.
Click to hide internal directories.