Documentation ¶
Overview ¶
clouddns is the implementation of pkg/dnsprovider interface for Google Cloud DNS
Index ¶
- Constants
- func NewFakeInterface() (dnsprovider.Interface, error)
- type Config
- type Interface
- type ResourceRecordChangeset
- func (c *ResourceRecordChangeset) Add(rrset dnsprovider.ResourceRecordSet) dnsprovider.ResourceRecordChangeset
- func (c *ResourceRecordChangeset) Apply() error
- func (c *ResourceRecordChangeset) IsEmpty() bool
- func (c *ResourceRecordChangeset) Remove(rrset dnsprovider.ResourceRecordSet) dnsprovider.ResourceRecordChangeset
- func (c *ResourceRecordChangeset) ResourceRecordSets() dnsprovider.ResourceRecordSets
- func (c *ResourceRecordChangeset) Upsert(rrset dnsprovider.ResourceRecordSet) dnsprovider.ResourceRecordChangeset
- type ResourceRecordSet
- type ResourceRecordSets
- func (rrsets ResourceRecordSets) Get(name string) ([]dnsprovider.ResourceRecordSet, error)
- func (rrsets ResourceRecordSets) List() ([]dnsprovider.ResourceRecordSet, error)
- func (r ResourceRecordSets) New(name string, rrdatas []string, ttl int64, rrstype rrstype.RrsType) dnsprovider.ResourceRecordSet
- func (r ResourceRecordSets) StartChangeset() dnsprovider.ResourceRecordChangeset
- func (rrset ResourceRecordSets) Zone() dnsprovider.Zone
- type Zone
- type Zones
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 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.
type ResourceRecordChangeset ¶ added in v1.4.1
type ResourceRecordChangeset struct {
// contains filtered or unexported fields
}
func (*ResourceRecordChangeset) Add ¶ added in v1.4.1
func (c *ResourceRecordChangeset) Add(rrset dnsprovider.ResourceRecordSet) dnsprovider.ResourceRecordChangeset
func (*ResourceRecordChangeset) Apply ¶ added in v1.4.1
func (c *ResourceRecordChangeset) Apply() error
func (*ResourceRecordChangeset) IsEmpty ¶ added in v1.6.0
func (c *ResourceRecordChangeset) IsEmpty() bool
func (*ResourceRecordChangeset) Remove ¶ added in v1.4.1
func (c *ResourceRecordChangeset) Remove(rrset dnsprovider.ResourceRecordSet) dnsprovider.ResourceRecordChangeset
func (*ResourceRecordChangeset) ResourceRecordSets ¶ added in v1.6.0
func (c *ResourceRecordChangeset) ResourceRecordSets() dnsprovider.ResourceRecordSets
ResourceRecordSets returns the parent ResourceRecordSets
func (*ResourceRecordChangeset) Upsert ¶ added in v1.6.0
func (c *ResourceRecordChangeset) Upsert(rrset dnsprovider.ResourceRecordSet) dnsprovider.ResourceRecordChangeset
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.1
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 ¶ added in v1.6.0
func (rrsets ResourceRecordSets) Get(name string) ([]dnsprovider.ResourceRecordSet, error)
func (ResourceRecordSets) List ¶
func (rrsets ResourceRecordSets) List() ([]dnsprovider.ResourceRecordSet, error)
List returns a list of resource records in the given project and managed zone. !!CAUTION!! Your memory might explode if you have a huge number of records in your managed zone.
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.1
func (r ResourceRecordSets) StartChangeset() dnsprovider.ResourceRecordChangeset
func (ResourceRecordSets) Zone ¶ added in v1.6.0
func (rrset ResourceRecordSets) Zone() dnsprovider.Zone
Zone returns the parent zone
type Zone ¶
type Zone struct {
// contains filtered or unexported fields
}
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.