client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const BaseURL = "https://api.dnsmadeeasy.com/V2.0/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func GetClient

func GetClient(apiKey, secretKey string, options ...Option) *Client

Returns a singleton

func (*Client) Delete

func (c *Client) Delete(endpoint string) error

func (*Client) GetbyId

func (c *Client) GetbyId(endpoint string) (*container.Container, error)

func (*Client) PrepareModel

func (c *Client) PrepareModel(obj models.Model) (*container.Container, error)

func (*Client) Save

func (c *Client) Save(obj models.Model, endpoint string) (*container.Container, error)

func (*Client) Update

func (c *Client) Update(obj models.Model, endpoint string) (*container.Container, error)

type Option

type Option func(*Client)

func Insecure

func Insecure(insecure bool) Option

func ProxyUrl

func ProxyUrl(pUrl string) Option

Jump to

Keyboard shortcuts

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