client

package
v0.0.0-...-8cc68c2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HEClient

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

func NewClient

func NewClient(config *config.Config) (*HEClient, error)

func (*HEClient) CreateRecords

func (c *HEClient) CreateRecords(zone string, zoneData *common.ZoneData, records []*endpoint.Endpoint) error

func (*HEClient) DeleteRecords

func (c *HEClient) DeleteRecords(zone string, zoneData *common.ZoneData, records []*endpoint.Endpoint) error

we have already determined the zone where we create or delete the records

func (*HEClient) DoLogin

func (c *HEClient) DoLogin() error

func (*HEClient) DoLogout

func (c *HEClient) DoLogout() error

func (*HEClient) GetMatchingZones

func (c *HEClient) GetMatchingZones(domainFilter *endpoint.DomainFilter) (map[string]*common.ZoneData, error)

func (*HEClient) GetZoneEndpoints

func (c *HEClient) GetZoneEndpoints(zone string, zoneData *common.ZoneData) ([]*endpoint.Endpoint, error)

type MockClient

type MockClient struct {
	CreatedRecords []*endpoint.Endpoint
	DeletedRecords []*endpoint.Endpoint
	// contains filtered or unexported fields
}

func NewMockClient

func NewMockClient(config *config.Config) *MockClient

func (*MockClient) CreateRecords

func (c *MockClient) CreateRecords(zone string, zoneData *common.ZoneData, records []*endpoint.Endpoint) error

func (*MockClient) DeleteRecords

func (c *MockClient) DeleteRecords(zone string, zoneData *common.ZoneData, records []*endpoint.Endpoint) error

func (*MockClient) DoLogin

func (c *MockClient) DoLogin() error

func (*MockClient) DoLogout

func (c *MockClient) DoLogout() error

func (*MockClient) GetMatchingZones

func (c *MockClient) GetMatchingZones(domainFilter *endpoint.DomainFilter) (map[string]*common.ZoneData, error)

func (*MockClient) GetZoneEndpoints

func (c *MockClient) GetZoneEndpoints(zone string, zoneData *common.ZoneData) ([]*endpoint.Endpoint, error)

func (*MockClient) SetFailure

func (c *MockClient) SetFailure(failure string)

Jump to

Keyboard shortcuts

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