coredns

package
v1.8.9-azs-1806 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package coredns is the implementation of pkg/dnsprovider interface for CoreDNS

Index

Constants

View Source
const (
	ADDITION = ChangeSetType("ADDITION")
	DELETION = ChangeSetType("DELETION")
	UPSERT   = ChangeSetType("UPSERT")
)
View Source
const (
	ProviderName = "coredns"
)

"coredns" should be used to use this DNS provider

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeSet

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

type ChangeSetType

type ChangeSetType string

type Config

type Config struct {
	Global struct {
		EtcdEndpoints    string `gcfg:"etcd-endpoints"`
		DNSZones         string `gcfg:"zones"`
		CoreDNSEndpoints string `gcfg:"coredns-endpoints"`
	}
}

Config to override defaults

type Interface

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

func (Interface) Zones

func (i Interface) Zones() (dnsprovider.Zones, bool)

type ResourceRecordChangeset

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

func (*ResourceRecordChangeset) Add

func (*ResourceRecordChangeset) Apply

func (c *ResourceRecordChangeset) Apply() error

func (*ResourceRecordChangeset) IsEmpty

func (c *ResourceRecordChangeset) IsEmpty() bool

func (*ResourceRecordChangeset) Remove

func (*ResourceRecordChangeset) ResourceRecordSets

func (c *ResourceRecordChangeset) ResourceRecordSets() dnsprovider.ResourceRecordSets

ResourceRecordSets returns the parent ResourceRecordSets

func (*ResourceRecordChangeset) Upsert

type ResourceRecordSet

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

func (ResourceRecordSet) Name

func (rrset ResourceRecordSet) Name() string

func (ResourceRecordSet) Rrdatas

func (rrset ResourceRecordSet) Rrdatas() []string

func (ResourceRecordSet) Ttl

func (rrset ResourceRecordSet) Ttl() int64

func (ResourceRecordSet) Type

func (rrset ResourceRecordSet) Type() rrstype.RrsType

type ResourceRecordSets

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

func (ResourceRecordSets) Get

func (ResourceRecordSets) List

func (ResourceRecordSets) New

func (rrsets ResourceRecordSets) New(name string, rrdatas []string, ttl int64, rrsType rrstype.RrsType) dnsprovider.ResourceRecordSet

func (ResourceRecordSets) StartChangeset

func (rrsets ResourceRecordSets) StartChangeset() dnsprovider.ResourceRecordChangeset

func (ResourceRecordSets) Zone

func (rrset ResourceRecordSets) Zone() dnsprovider.Zone

Zone returns the parent zone

type Zone

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

func (Zone) ID

func (zone Zone) ID() string

func (Zone) Name

func (zone Zone) Name() string

func (Zone) ResourceRecordSets

func (zone Zone) ResourceRecordSets() (dnsprovider.ResourceRecordSets, bool)

type Zones

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

func (Zones) Add

func (zones Zones) Add(zone dnsprovider.Zone) (dnsprovider.Zone, error)

func (Zones) List

func (zones Zones) List() ([]dnsprovider.Zone, error)

func (Zones) New

func (zones Zones) New(name string) (dnsprovider.Zone, error)

func (Zones) Remove

func (zones Zones) Remove(zone dnsprovider.Zone) error

Directories

Path Synopsis
Package stubs implements a stub for the EtcdKeysAPI, used primarily for unit testing purposes
Package stubs implements a stub for the EtcdKeysAPI, used primarily for unit testing purposes

Jump to

Keyboard shortcuts

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