Documentation
¶
Index ¶
- type APIError
- type Auth
- type Client
- func (c *Client) CreateDNSRecord(ctx context.Context, zone string, record Record) error
- func (c *Client) DeleteDNSRecord(ctx context.Context, zone string, record Record) error
- func (c *Client) GetDNSZones(ctx context.Context, name string) ([]Zone, error)
- func (c *Client) Login(ctx context.Context) (*Auth, error)
- func (c *Client) Me(ctx context.Context) (*UserInfo, error)
- type HandlerConfig
- type Login
- type Permission
- type Record
- type UserInfo
- type Zone
- type Zones
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type Client ¶
Client the Gravity API client.
func (*Client) CreateDNSRecord ¶
func (*Client) DeleteDNSRecord ¶
func (*Client) GetDNSZones ¶
type HandlerConfig ¶
type Permission ¶
type Record ¶
type Record struct {
Data string `json:"data,omitempty"`
Fqdn string `json:"fqdn,omitempty"`
Hostname string `json:"hostname,omitempty"`
MxPreference int `json:"mxPreference,omitempty"`
SrvPort int `json:"srvPort,omitempty"`
SrvPriority int `json:"srvPriority,omitempty"`
SrvWeight int `json:"srvWeight,omitempty"`
Type string `json:"type,omitempty"`
UID string `json:"uid,omitempty"`
}
type UserInfo ¶
type UserInfo struct {
Username string `json:"username"`
Authenticated bool `json:"authenticated"`
Permissions []Permission `json:"permissions"`
}
Click to show internal directories.
Click to hide internal directories.