discovery

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSResolver

type DNSResolver interface {
	LookupTXT(ctx context.Context, name string) ([]string, error)
}

func NewDefaultDnsResolver

func NewDefaultDnsResolver() DNSResolver

type DomainIndexer

type DomainIndexer interface {
	LookupIdentitiesForDomain(domain string) ([]DomainInfo, error)
	GetLastRun() time.Time
}

func NewDefaultDomainIndexer

func NewDefaultDomainIndexer(dnsResolver DNSResolver, domainStore DomainStore, domainCheckInterval time.Duration, domainRenewalInterval time.Duration, base64PrivateKeys []string) DomainIndexer

type DomainInfo

type DomainInfo struct {
	Domain          string   // root domain for this record, can be invoking or identity domain
	IdentityDomains []string // used to map from invoking domain to parent identity domains
	// contains filtered or unexported fields
}

func (*DomainInfo) GetAdsCertIdentityDomain

func (c *DomainInfo) GetAdsCertIdentityDomain() string

func (*DomainInfo) GetSharedSecret

func (c *DomainInfo) GetSharedSecret() (SharedSecret, bool)

func (*DomainInfo) GetStatus

func (c *DomainInfo) GetStatus() DomainStatus

type DomainStatus added in v0.17.0

type DomainStatus int
const (
	DomainStatusUnspecified DomainStatus = iota // this status is considered and handled as an error condition
	DomainStatusOK
	DomainStatusUnavailable
	DomainStatusNotYetChecked
	DomainStatusKeyFetchPending
	DomainStatusErrorOnDNS
	DomainStatusErrorOnDNSSEC
	DomainStatusErrorOnSharedSecretCalculation
	DomainStatusADPFParseError
	DomainStatusADCRTDParseError
)

type DomainStore

type DomainStore interface {
	GetAllDomains(ctx context.Context) ([]string, error)
	LookupDomainInfo(ctx context.Context, domain string) (DomainInfo, bool, error)
	StoreDomainInfo(ctx context.Context, domainInfo DomainInfo) error
}

func NewDefaultDomainStore

func NewDefaultDomainStore() DomainStore

type SharedSecret

type SharedSecret interface {
	LocalKeyID() string
	RemoteKeyID() string
	Secret() *[32]byte
}

Jump to

Keyboard shortcuts

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