Documentation ¶
Index ¶
- Variables
- func CreateDomainFilter(regexDomainFilter string, regexDomainExclude string, listDomainFilter []string, ...) *endpoint.DomainFilter
- func ExpandRecords(eps []*endpoint.Endpoint) []*endpoint.Endpoint
- func SameEndpoints(eps1 []*endpoint.Endpoint, eps2 []*endpoint.Endpoint) bool
- type TestCase
- type ZoneData
- type ZoneInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var TestCases []*TestCase = []*TestCase{ &TestCase{ IncludeList: []string{"foo.bar", "foo.baz"}, AdjustEndpointsInput: append(TestData["foo.bar"].Endpoints, TestData["foo.baz"].Endpoints...), ApplyChangesInput: &plan.Changes{ Create: []*endpoint.Endpoint{ endpoint.NewEndpoint("aaa.foo.bar", "A", "10.1.1.1"), }, Delete: []*endpoint.Endpoint{ endpoint.NewEndpoint("aaa.foo.bar", "A", "10.1.1.1"), }, UpdateOld: []*endpoint.Endpoint{ endpoint.NewEndpointWithTTL("update.foo.baz", "A", 500, "1.1.1.1", "2.2.2.2"), }, UpdateNew: []*endpoint.Endpoint{ endpoint.NewEndpointWithTTL("update.foo.baz", "A", 1500, "3.3.3.3", "5.5.5.5"), }, }, }, &TestCase{ IncludeList: []string{"foo.zzz"}, AdjustEndpointsInput: TestData["foo.zzz"].Endpoints, ApplyChangesInput: &plan.Changes{ Create: []*endpoint.Endpoint{ endpoint.NewEndpoint("aaa.foo.zzz", "A", "10.1.1.1"), }, Delete: []*endpoint.Endpoint{ endpoint.NewEndpoint("bbb.foo.zzz", "A", "10.1.1.1"), }, UpdateOld: []*endpoint.Endpoint{ endpoint.NewEndpointWithTTL("single.foo.zzz", "A", 500, "172.16.100.199", "172.16.100.200"), }, UpdateNew: []*endpoint.Endpoint{ endpoint.NewEndpointWithTTL("single.foo.zzz", "A", 1500, "172.16.100.199", "172.16.100.200"), }, }, }, }
View Source
var TestData map[string]*ZoneInfo = map[string]*ZoneInfo{ "foo.bar": &ZoneInfo{ ZoneData: &ZoneData{}, Endpoints: []*endpoint.Endpoint{ endpoint.NewEndpoint("a.foo.bar", "A", "1.1.1.1"), endpoint.NewEndpoint("b.foo.bar", "A", "1.1.1.3"), endpoint.NewEndpoint("z.foo.bar", "A", "1.1.1.4"), endpoint.NewEndpoint("z.foo.bar", "TXT", "foobar"), }}, "foo.baz": &ZoneInfo{ ZoneData: &ZoneData{}, Endpoints: []*endpoint.Endpoint{ endpoint.NewEndpoint("n1.foo.baz", "A", "192.168.1.1"), endpoint.NewEndpoint("hello.foo.baz", "A", "192.168.1.3"), endpoint.NewEndpoint("foo.baz", "A", "192.168.1.4"), }}, "foo.zzz": &ZoneInfo{ ZoneData: &ZoneData{}, Endpoints: []*endpoint.Endpoint{ endpoint.NewEndpoint("single.foo.zzz", "A", "172.16.100.199"), endpoint.NewEndpoint("single.foo.zzz", "A", "172.16.100.200"), endpoint.NewEndpoint("bbb.foo.zzz", "A", "172.17.100.199"), }, }, }
Functions ¶
func CreateDomainFilter ¶
func CreateDomainFilter(regexDomainFilter string, regexDomainExclude string, listDomainFilter []string, listDomainFilterExclude []string) *endpoint.DomainFilter
utilities
Types ¶
Click to show internal directories.
Click to hide internal directories.