clouddns

package
v1.6.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

clouddns is the implementation of pkg/dnsprovider interface for Google Cloud DNS

Index

Constants

View Source
const (
	ProviderName = "google-clouddns"
)

Variables

This section is empty.

Functions

func NewFakeInterface

func NewFakeInterface() (dnsprovider.Interface, error)

NewFakeInterface returns a fake clouddns interface, useful for unit testing purposes.

Types

type Config

type Config struct {
	Global struct {
		TokenURL  string `gcfg:"token-url"`
		TokenBody string `gcfg:"token-body"`
		ProjectID string `gcfg:"project-id"`
	}
}

type Interface

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

func CreateInterface

func CreateInterface(projectID string, tokenSource oauth2.TokenSource) (*Interface, error)

CreateInterface creates a clouddns.Interface object using the specified parameters. If no tokenSource is specified, uses oauth2.DefaultTokenSource.

func (Interface) Zones

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

type ResourceRecordChangeset added in v1.4.0

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

func (*ResourceRecordChangeset) Add added in v1.4.0

func (*ResourceRecordChangeset) Apply added in v1.4.0

func (c *ResourceRecordChangeset) Apply() error

func (*ResourceRecordChangeset) IsEmpty

func (c *ResourceRecordChangeset) IsEmpty() bool

func (*ResourceRecordChangeset) Remove added in v1.4.0

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) String added in v1.4.0

func (rrset ResourceRecordSet) String() 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 (r ResourceRecordSets) New(name string, rrdatas []string, ttl int64, rrstype rrstype.RrsType) dnsprovider.ResourceRecordSet

func (ResourceRecordSets) StartChangeset added in v1.4.0

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

Jump to

Keyboard shortcuts

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