pkg

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthorizationHeader = "Authorization"
	ContentTypeHeader   = "Content-Type"
	ContentTypeJSON     = "application/json"
	RdnsSecretName      = "rdns-token"
)

Variables

This section is empty.

Functions

func SetSecret

func SetSecret(namespace string, user *User) (*v1.Secret, error)

Types

type DNSClient

type DNSClient struct {
	// contains filtered or unexported fields
}

func (*DNSClient) DeleteDNSRecord

func (d *DNSClient) DeleteDNSRecord(domain string) error

func (*DNSClient) Do

func (d *DNSClient) Do(method, url string, data io.Reader) (*http.Response, error)

func (*DNSClient) SetTXTRecord

func (d *DNSClient) SetTXTRecord(domain, text string) error

type DNSProvider

type DNSProvider struct {
	// contains filtered or unexported fields
}

func NewDNSProvider

func NewDNSProvider() (*DNSProvider, error)

func NewDNSProviderCredential

func NewDNSProviderCredential(apiEndpoint, token string) (*DNSProvider, error)

func (*DNSProvider) CleanUp

func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error

func (*DNSProvider) Present

func (d *DNSProvider) Present(domain, token, keyAuth string) error

func (*DNSProvider) Timeout

func (d *DNSProvider) Timeout() (timeout, interval time.Duration)

type User

type User struct {
	Name         string
	Email        string
	Registration *registration.Resource
	Key          crypto.PrivateKey
	URL          string
}

func FromSecret

func FromSecret(secret *v1.Secret) (*User, error)

func (*User) GetEmail

func (u *User) GetEmail() string

func (*User) GetPrivateKey

func (u *User) GetPrivateKey() crypto.PrivateKey

func (User) GetRegistration

func (u User) GetRegistration() *registration.Resource

Jump to

Keyboard shortcuts

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