akamai

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAkamaiProvider

func NewAkamaiProvider(akamaiConfig AkamaiConfig, akaService AkamaiDNSService) (provider.Provider, error)

NewAkamaiProvider initializes a new Akamai DNS based Provider.

Types

type AkamaiConfig

type AkamaiConfig struct {
	DomainFilter          endpoint.DomainFilter
	ZoneIDFilter          provider.ZoneIDFilter
	ServiceConsumerDomain string
	ClientToken           string
	ClientSecret          string
	AccessToken           string
	EdgercPath            string
	EdgercSection         string
	MaxBody               int
	AccountKey            string
	DryRun                bool
}

type AkamaiDNSService added in v0.8.0

type AkamaiDNSService interface {
	ListZones(queryArgs dns.ZoneListQueryArgs) (*dns.ZoneListResponse, error)
	GetRecordsets(zone string, queryArgs dns.RecordsetQueryArgs) (*dns.RecordSetResponse, error)
	GetRecord(zone string, name string, recordtype string) (*dns.RecordBody, error)
	DeleteRecord(record *dns.RecordBody, zone string, recLock bool) error
	UpdateRecord(record *dns.RecordBody, zone string, recLock bool) error
	CreateRecordsets(recordsets *dns.Recordsets, zone string, recLock bool) error
}

edgeDNSClient is a proxy interface of the Akamai edgegrid configdns-v2 package that can be stubbed for testing.

type AkamaiProvider

type AkamaiProvider struct {
	provider.BaseProvider
	// contains filtered or unexported fields
}

AkamaiProvider implements the DNS provider for Akamai.

func (AkamaiProvider) ApplyChanges

func (p AkamaiProvider) ApplyChanges(ctx context.Context, changes *plan.Changes) error

ApplyChanges applies a given set of changes in a given zone.

func (AkamaiProvider) CreateRecordsets added in v0.8.0

func (p AkamaiProvider) CreateRecordsets(recordsets *dns.Recordsets, zone string, reclock bool) error

func (AkamaiProvider) DeleteRecord added in v0.8.0

func (p AkamaiProvider) DeleteRecord(record *dns.RecordBody, zone string, recLock bool) error

func (AkamaiProvider) GetRecord added in v0.8.0

func (p AkamaiProvider) GetRecord(zone string, name string, recordtype string) (*dns.RecordBody, error)

func (AkamaiProvider) GetRecordsets added in v0.8.0

func (p AkamaiProvider) GetRecordsets(zone string, queryArgs dns.RecordsetQueryArgs) (*dns.RecordSetResponse, error)

func (AkamaiProvider) ListZones added in v0.8.0

func (p AkamaiProvider) ListZones(queryArgs dns.ZoneListQueryArgs) (*dns.ZoneListResponse, error)

func (AkamaiProvider) Records

func (p AkamaiProvider) Records(context.Context) (endpoints []*endpoint.Endpoint, err error)

Records returns the list of records in a given zone.

func (AkamaiProvider) UpdateRecord added in v0.8.0

func (p AkamaiProvider) UpdateRecord(record *dns.RecordBody, zone string, recLock bool) error

Jump to

Keyboard shortcuts

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