client

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(baseURL string) proto.APIContract

NewClient return a new configured Client using given baseURL

Types

type Client

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

Client is an HTTP REST client to interface with a OpenDyDNS daemon

func (*Client) Authenticate

func (c *Client) Authenticate(cred proto.CredentialsDto) (proto.TokenDto, error)

Authenticate see proto.APIContract

func (*Client) DeleteAlias

func (c *Client) DeleteAlias(token proto.TokenDto, name string) error

DeleteAlias see proto.APIContract

func (*Client) GetAliases

func (c *Client) GetAliases(token proto.TokenDto) ([]proto.AliasDto, error)

GetAliases see proto.APIContract

func (*Client) GetDomains

func (c *Client) GetDomains(token proto.TokenDto) ([]proto.DomainDto, error)

GetDomains see proto.APIContract

func (*Client) RegisterAlias

func (c *Client) RegisterAlias(token proto.TokenDto, alias proto.AliasDto) (proto.AliasDto, error)

RegisterAlias see proto.APIContract

func (*Client) UpdateAlias

func (c *Client) UpdateAlias(token proto.TokenDto, alias proto.AliasDto) (proto.AliasDto, error)

UpdateAlias see proto.APIContract

Jump to

Keyboard shortcuts

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