dnsproviderfake

package
v0.0.0-...-4f1f1eb Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	ZonesFake ZonesFake
}

Fake is a fake dns provider.

func (*Fake) Zones

func (f *Fake) Zones() (dnsprovider.Zones, bool)

Zones returns ZonesFake.

type ResourceRecordSetFake

type ResourceRecordSetFake struct {
	RRSName  string
	RRSDatas []string
	RRSTTL   int64
	RRSType  rrstype.RrsType
}

ResourceRecordSetFake is a fake implementation of ResourceRecordSet.

func (*ResourceRecordSetFake) Name

func (f *ResourceRecordSetFake) Name() string

Name returns name of Resource Record Set.

func (*ResourceRecordSetFake) Rrdatas

func (f *ResourceRecordSetFake) Rrdatas() []string

Rrdatas returns datas of Resource Record Set.

func (*ResourceRecordSetFake) Ttl

func (f *ResourceRecordSetFake) Ttl() int64

Ttl returns TTL of Resource Record Set.

func (*ResourceRecordSetFake) Type

Type returns type of Resource Record Set.

type ResourceRecordSetsFake

type ResourceRecordSetsFake struct {
	RRSList []dnsprovider.ResourceRecordSet
}

ResourceRecordSetsFake fake implementation of ResourceRecordSets.

func (*ResourceRecordSetsFake) Add

Add Resource Record Set to list.

func (*ResourceRecordSetsFake) List

List returns list of Resource Record Sets.

func (*ResourceRecordSetsFake) New

func (f *ResourceRecordSetsFake) New(name string, rrdatas []string, ttl int64, rrstype rrstype.RrsType) dnsprovider.ResourceRecordSet

New creates instance of ResourceRecordSetFake.

func (*ResourceRecordSetsFake) Remove

Remove Resource Record Set from list.

type ZoneFake

type ZoneFake struct {
	ZoneName string
	RRS      *ResourceRecordSetsFake
}

ZoneFake is a fake implementation of Zone.

func (*ZoneFake) Name

func (f *ZoneFake) Name() string

Name returns name of zone.

func (*ZoneFake) ResourceRecordSets

func (f *ZoneFake) ResourceRecordSets() (dnsprovider.ResourceRecordSets, bool)

ResourceRecordSets returns ResourceRecordSetsFake.

type ZonesFake

type ZonesFake struct {
	ZoneList []dnsprovider.Zone
}

ZonesFake is a fake of Zones.

func (*ZonesFake) Add

Add zone to list.

func (*ZonesFake) List

func (f *ZonesFake) List() ([]dnsprovider.Zone, error)

List of added zones.

func (*ZonesFake) New

func (f *ZonesFake) New(name string) (dnsprovider.Zone, error)

New creates a new ZoneFake.

func (*ZonesFake) Remove

func (f *ZonesFake) Remove(z dnsprovider.Zone) error

Remove zone from list.

Jump to

Keyboard shortcuts

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