provider

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ProviderType     string
	CloudflareZoneID string
	CloudflareApiKey string
	CloudflareEmail  string
}

type Provider

type Provider interface {
	ApplyPlan(plan plan.Plan) error
	CurrentEndpoints() ([]*domain.Endpoint, error)
}

func NewFromConfig

func NewFromConfig(cfg *Config) (Provider, error)

type Stub

type Stub struct {
	Logger *log.Logger
}

func (*Stub) ApplyPlan

func (s *Stub) ApplyPlan(plan plan.Plan) error

func (*Stub) CurrentEndpoints

func (*Stub) CurrentEndpoints() ([]*domain.Endpoint, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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