cf

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudFlare

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

func New

func New(ctx context.Context, config Config) (*CloudFlare, error)

func (*CloudFlare) Register

func (cf *CloudFlare) Register(ctx context.Context, domains []string) error

type Config

type Config struct {
	IP       string `` /* 134-byte string literal not displayed */
	Proxy    bool   `` /* 149-byte string literal not displayed */
	APIToken string `long:"api-token" env:"API_TOKEN" description:"API token"`
	Domain   string // root domain name
}

type ErrCloudFlare

type ErrCloudFlare struct {
	Code    int
	Message string
}

func (*ErrCloudFlare) Error

func (ecf *ErrCloudFlare) Error() string

type ErrHTTP

type ErrHTTP struct {
	Code   int
	Status string
}

func (*ErrHTTP) Error

func (eh *ErrHTTP) Error() string

Jump to

Keyboard shortcuts

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