Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientService ¶
type ClientService interface { DoLogin() error DoLogout() error GetMatchingZones(*endpoint.DomainFilter) (map[string]*common.ZoneData, error) GetZoneEndpoints(zone string, zoneData *common.ZoneData) ([]*endpoint.Endpoint, error) CreateRecords(string, *common.ZoneData, []*endpoint.Endpoint) error DeleteRecords(string, *common.ZoneData, []*endpoint.Endpoint) error }
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewMockProvider ¶
func NewMockProvider(config *config.Config, domainFilter *endpoint.DomainFilter) *Provider
func NewProvider ¶
func NewProvider(client ClientService, domainFilter *endpoint.DomainFilter) (*Provider, error)
func NewProvider(client *client.HEClient) (*Provider, error) {
func (*Provider) AdjustEndpoints ¶
func (p *Provider) AdjustEndpoints(desiredEndpoints []*endpoint.Endpoint) ([]*endpoint.Endpoint, error)
here is where we add provider-specific properties to the desired endpoints, so they match the current ones (if they exist, of course). Use allEndpoints to get info about the existing ones.
func (*Provider) DomainFilter ¶
func (p *Provider) DomainFilter() *endpoint.DomainFilter
Click to show internal directories.
Click to hide internal directories.