Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRegFailed = errors.New("registration failed")
)
Functions ¶
This section is empty.
Types ¶
type APIRegistrar ¶
type APIRegistrar struct {
// contains filtered or unexported fields
}
Registration strategy using a centralized REST API to create registrations. Only the Endpoint need be specified; the remaining fields are valid with their zero values and provide the opportunity for additional control over the process.
func NewAPIRegistrar ¶
func (APIRegistrar) Register ¶
func (r APIRegistrar) Register(cjSession *tapdance.ConjureSession, ctx context.Context) (*tapdance.ConjureReg, error)
type DNSRegistrar ¶
type DNSRegistrar struct {
// contains filtered or unexported fields
}
func NewDNSRegistrar ¶
func NewDNSRegistrar(regType pb.DnsRegMethod, target string, domain string, pubkey []byte, utlsDistribution string, maxTries int, bidirectional bool, delay time.Duration, stun_server string) (*DNSRegistrar, error)
NewDNSRegistrar creates a DNSRegistrar.
func NewDNSRegistrarFromConf ¶
func NewDNSRegistrarFromConf(conf *pb.DnsRegConf, bidirectional bool, delay time.Duration, maxTries int, fallbackKey []byte) (*DNSRegistrar, error)
NewDNSRegistrarFromConf creates a DNSRegistrar from DnsRegConf protobuf. Uses the pubkey in conf as default. If it is not supplied (nil), uses fallbackKey instead.
func (*DNSRegistrar) Register ¶
func (r *DNSRegistrar) Register(cjSession *tapdance.ConjureSession, ctx context.Context) (*tapdance.ConjureReg, error)
Register prepares and sends the registration request.
type DecoyRegistrar ¶
type DecoyRegistrar struct {
// contains filtered or unexported fields
}
func NewDecoyRegistrar ¶
func NewDecoyRegistrar() *DecoyRegistrar
func (DecoyRegistrar) Register ¶
func (r DecoyRegistrar) Register(cjSession *tapdance.ConjureSession, ctx context.Context) (*tapdance.ConjureReg, error)
Click to show internal directories.
Click to hide internal directories.