Documentation ¶
Index ¶
- func NewClient(baseURL string) proto.APIContract
- type Client
- func (c *Client) Authenticate(cred proto.CredentialsDto) (proto.TokenDto, error)
- func (c *Client) DeleteAlias(token proto.TokenDto, name string) error
- func (c *Client) GetAliases(token proto.TokenDto) ([]proto.AliasDto, error)
- func (c *Client) GetDomains(token proto.TokenDto) ([]proto.DomainDto, error)
- func (c *Client) RegisterAlias(token proto.TokenDto, alias proto.AliasDto) (proto.AliasDto, error)
- func (c *Client) UpdateAlias(token proto.TokenDto, alias proto.AliasDto) (proto.AliasDto, error)
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 ¶
Authenticate see proto.APIContract
func (*Client) DeleteAlias ¶
DeleteAlias see proto.APIContract
func (*Client) GetAliases ¶
GetAliases see proto.APIContract
func (*Client) GetDomains ¶
GetDomains see proto.APIContract
func (*Client) RegisterAlias ¶
RegisterAlias see proto.APIContract
Click to show internal directories.
Click to hide internal directories.