registrar

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRegistrarProvider

type BaseRegistrarProvider struct {
}

func (BaseRegistrarProvider) GetDomain

func (b BaseRegistrarProvider) GetDomain(ctx context.Context, domain string) (*Domain, error)

func (BaseRegistrarProvider) GetDomains

func (b BaseRegistrarProvider) GetDomains(ctx context.Context) (domains []string, err error)

func (BaseRegistrarProvider) GetMasterIPs

func (b BaseRegistrarProvider) GetMasterIPs(ctx context.Context) (masterIps []string, err error)

func (BaseRegistrarProvider) GetServeAlgorithm

func (b BaseRegistrarProvider) GetServeAlgorithm(ctx context.Context, domain string) (string, error)

func (BaseRegistrarProvider) GetTsigKey

func (b BaseRegistrarProvider) GetTsigKey(ctx context.Context, domain string) (*dns.TSIGKey, error)

type Domain

type Domain struct {
	Name                  string
	Type                  string
	SignAndServe          bool
	SignAndServeAlgorithm string
	Masters               []string
	TsigKey               *dns.TSIGKey
}

type PluginConfig

type PluginConfig struct {
	PluginLibPath    string
	PluginName       string
	PluginConfigPath string
	LogEntry         *log.Entry
	Registrar        *plugin.Plugin
}

type PluginFuncArgs

type PluginFuncArgs struct {
	PluginArg interface{}
}

type PluginFuncResult

type PluginFuncResult struct {
	PluginResult interface{}
	PluginError  error
}

type PluginRegistrarProvider

type PluginRegistrarProvider interface {
	NewPluginLibRegistrar()
	GetDomains()
	GetDomain()
	GetTsigKey()
	GetServeAlgorithm()
	GetMasterIPs()
}

type RegistrarProvider

type RegistrarProvider interface {
	GetDomains(ctx context.Context) ([]string, error)
	GetDomain(ctx context.Context, domain string) (*Domain, error)
	GetTsigKey(ctx context.Context, domain string) (*dns.TSIGKey, error)
	GetServeAlgorithm(ctx context.Context, domain string) (string, error)
	GetMasterIPs(ctx context.Context) ([]string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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