providers

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderImages = map[string]string{
	"aws":        fmt.Sprintf("ghcr.io/pier-oliviert/providers-aws:v%s", ProviderVersion),
	"azure":      fmt.Sprintf("ghcr.io/pier-oliviert/providers-azure:v%s", ProviderVersion),
	"cloudflare": fmt.Sprintf("ghcr.io/pier-oliviert/providers-cloudflare:v%s", ProviderVersion),
	"desec":      fmt.Sprintf("ghcr.io/pier-oliviert/providers-desec:v%s", ProviderVersion),
	"gcore":      fmt.Sprintf("ghcr.io/pier-oliviert/providers-gcore:v%s", ProviderVersion),
}
View Source
var ProviderVersion = "0.0.0"

This constant needs to be configured through a build flag when Phonebook is released

Functions

This section is empty.

Types

type Provider

type Provider interface {
	Configure(ctx context.Context, integration string, zones []string) error

	// Create a DNS Record
	Create(context.Context, phonebook.DNSRecord, phonebook.StagingUpdater) error

	// Delete a DNS Record
	Delete(context.Context, phonebook.DNSRecord, phonebook.StagingUpdater) error

	// Zones the Provider has authority over
	Zones() []string
}

type ProviderStore

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

func (*ProviderStore) Provider

func (ps *ProviderStore) Provider() Provider

func (*ProviderStore) Store

func (ps *ProviderStore) Store(p Provider)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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