Documentation ¶
Index ¶
- type Fake
- type ResourceRecordSetFake
- type ResourceRecordSetsFake
- func (f *ResourceRecordSetsFake) Add(rrs dnsprovider.ResourceRecordSet) (dnsprovider.ResourceRecordSet, error)
- func (f *ResourceRecordSetsFake) List() ([]dnsprovider.ResourceRecordSet, error)
- func (f *ResourceRecordSetsFake) New(name string, rrdatas []string, ttl int64, rrstype rrstype.RrsType) dnsprovider.ResourceRecordSet
- func (f *ResourceRecordSetsFake) Remove(rrs dnsprovider.ResourceRecordSet) error
- type ZoneFake
- type ZonesFake
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
func (f *ResourceRecordSetFake) Type() rrstype.RrsType
Type returns type of Resource Record Set.
type ResourceRecordSetsFake ¶
type ResourceRecordSetsFake struct {
RRSList []dnsprovider.ResourceRecordSet
}
ResourceRecordSetsFake fake implementation of ResourceRecordSets.
func (*ResourceRecordSetsFake) Add ¶
func (f *ResourceRecordSetsFake) Add(rrs dnsprovider.ResourceRecordSet) (dnsprovider.ResourceRecordSet, error)
Add Resource Record Set to list.
func (*ResourceRecordSetsFake) List ¶
func (f *ResourceRecordSetsFake) List() ([]dnsprovider.ResourceRecordSet, error)
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 ¶
func (f *ResourceRecordSetsFake) Remove(rrs dnsprovider.ResourceRecordSet) error
Remove Resource Record Set from list.
type ZoneFake ¶
type ZoneFake struct { ZoneName string RRS *ResourceRecordSetsFake }
ZoneFake is a fake implementation 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 ¶
func (f *ZonesFake) Add(z dnsprovider.Zone) (dnsprovider.Zone, error)
Add zone to list.
func (*ZonesFake) List ¶
func (f *ZonesFake) List() ([]dnsprovider.Zone, error)
List of added zones.