Documentation
¶
Overview ¶
Package labels provides label parsing for labelgate.
Index ¶
Constants ¶
View Source
const ( // DefaultPrefix is the default label prefix. DefaultPrefix = "labelgate" // TypeDNS is the DNS label type. TypeDNS = "dns" // TypeTunnel is the Tunnel label type. TypeTunnel = "tunnel" // TypeAccess is the Access label type (Phase 4). TypeAccess = "access" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostnameConflictError ¶
HostnameConflictError represents a hostname conflict between DNS and Tunnel.
func (*HostnameConflictError) Error ¶
func (e *HostnameConflictError) Error() string
type ParseResult ¶
type ParseResult struct {
DNSServices []*types.DNSService
TunnelServices []*types.TunnelService
AccessPolicies map[string]*types.AccessPolicyDef // policy_name -> definition
Errors []error
}
ParseResult contains the parsed DNS, Tunnel, and Access services.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser parses container labels into service configurations.
func (*Parser) CheckHostnameConflict ¶
func (p *Parser) CheckHostnameConflict(result *ParseResult) error
CheckHostnameConflict checks if the same hostname is configured for both DNS and Tunnel.
Click to show internal directories.
Click to hide internal directories.