Documentation ¶
Index ¶
- func AWSMetadataAvailable() bool
- func ParseIPList(ctx context.Context, s, sep string) ([]net.IP, error)
- func SetDefaultResolver(resolver Resolver)
- type All
- type AllowedIPAddresses
- type Any
- type Config
- type DockerChecker
- type DomainChecker
- type False
- type IPList
- type InterfacesAddrFunc
- type Not
- type Regexp
- type Resolver
- type True
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AWSMetadataAvailable ¶ added in v0.23.10
func AWSMetadataAvailable() bool
func ParseIPList ¶ added in v0.23.10
func SetDefaultResolver ¶ added in v0.20.5
func SetDefaultResolver(resolver Resolver)
Types ¶
type AllowedIPAddresses ¶
func AWSPublicIPs ¶ added in v0.23.10
func AWSPublicIPs() AllowedIPAddresses
func GetIPByExternalRequest ¶ added in v0.23.10
func GetIPByExternalRequest(url string) AllowedIPAddresses
func SelfBindedPublicIPs ¶ added in v0.23.10
func SelfBindedPublicIPs(binded InterfacesAddrFunc) AllowedIPAddresses
type Config ¶
type Config struct { IPSelf bool IPSelfDetectMethod string IPSelfExternalDetectorURL string IPWhiteList string BlackList string WhiteList string Resolver string }
func (*Config) CreateDomainChecker ¶
type DockerChecker ¶ added in v0.23.18
type DockerChecker struct {
// contains filtered or unexported fields
}
func NewDockerChecker ¶ added in v0.23.18
func NewDockerChecker(client docker.Interface) DockerChecker
func (DockerChecker) IsDomainAllowed ¶ added in v0.23.18
type DomainChecker ¶
type DomainChecker interface { // IsDomainAllowed called for check domain for allow certificate // It can call concurrency for many domains same time // guarantee about domain will correct domain name (as minimum for character set) IsDomainAllowed(ctx context.Context, domain string) (bool, error) }
func NewSelfIPChecker ¶ added in v0.23.10
func NewSelfIPChecker(ctx context.Context, config *Config) (DomainChecker, error)
type IPList ¶
type IPList struct { Addresses AllowedIPAddresses Resolver Resolver AutoUpdateInterval time.Duration // Set zero for disable autorenew. // contains filtered or unexported fields }
func NewIPList ¶
func NewIPList(ctx context.Context, addresses AllowedIPAddresses) *IPList
After create can change settings fields, than can call StartAutoRenew struct fields MUST NOT changes after call StartAutoRenew or concurrency with usage.
func (*IPList) IsDomainAllowed ¶
func (*IPList) StartAutoRenew ¶
func (s *IPList) StartAutoRenew()
Can called most once - for autorenew internal ips
type InterfacesAddrFunc ¶
type Not ¶
type Not struct {
// contains filtered or unexported fields
}
func NewNot ¶
func NewNot(origin DomainChecker) Not
Click to show internal directories.
Click to hide internal directories.