internal

package
v4.14.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL    string
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

Client the Gandi API client.

func NewClient

func NewClient(apiKey string) *Client

NewClient Creates a new Client.

func (*Client) AddTXTRecord

func (c *Client) AddTXTRecord(ctx context.Context, zoneID, version int, name, value string, ttl int) error

func (*Client) CloneZone

func (c *Client) CloneZone(ctx context.Context, zoneID int, name string) (int, error)

func (*Client) DeleteZone

func (c *Client) DeleteZone(ctx context.Context, zoneID int) error

func (*Client) GetZoneID

func (c *Client) GetZoneID(ctx context.Context, domain string) (int, error)

func (*Client) NewZoneVersion

func (c *Client) NewZoneVersion(ctx context.Context, zoneID int) (int, error)

func (*Client) SetZone

func (c *Client) SetZone(ctx context.Context, domain string, zoneID int) error

func (*Client) SetZoneVersion

func (c *Client) SetZoneVersion(ctx context.Context, zoneID, version int) error

type RPCError

type RPCError struct {
	FaultCode   int
	FaultString string
}

func (RPCError) Error

func (e RPCError) Error() string

Jump to

Keyboard shortcuts

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