Documentation ¶
Index ¶
- func OAuthStaticAccessToken(client *http.Client, accessToken string) *http.Client
- type APIError
- type Client
- func (c Client) CreateRecord(ctx context.Context, domainName string, record Record) (*Record, error)
- func (c Client) DeleteRecord(ctx context.Context, domainName, recordID string) error
- func (c Client) GetRecord(ctx context.Context, domainName, recordID string) (*Record, error)
- func (c Client) GetRecords(ctx context.Context, domainName string) ([]Record, error)
- type Content
- type Record
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIError ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client a Liara DNS API client.
func (Client) CreateRecord ¶
func (c Client) CreateRecord(ctx context.Context, domainName string, record Record) (*Record, error)
CreateRecord creates a record.
func (Client) DeleteRecord ¶
DeleteRecord deletes a record.
func (Client) GetRecords ¶
GetRecords gets the records of a domain. https://dns-service.iran.liara.ir/swagger
Click to show internal directories.
Click to hide internal directories.