registration

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

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 NewAPIRegistrar(endpoint string, httpClient *http.Client, bidirectional bool, connectionDelay time.Duration, maxRetries int, secondaryRegistrar tapdance.Registrar) (*APIRegistrar, error)

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 NewDecoyRegistrarWithDialer

func NewDecoyRegistrarWithDialer(dialer func(context.Context, string, string) (net.Conn, error)) *DecoyRegistrar

func (DecoyRegistrar) Register

Jump to

Keyboard shortcuts

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