Documentation ¶
Index ¶
- type APIResponse
- type Client
- func (c Client) CreateRecord(ctx context.Context, zoneID string, record Record) (*Record, error)
- func (c Client) DeleteRecord(ctx context.Context, zoneID string, recordID string) error
- func (c Client) EditRecord(ctx context.Context, zoneID string, recordID string, record Record) (*Record, error)
- func (c Client) GetRecord(ctx context.Context, zoneID string, recordID string) (*Record, error)
- func (c Client) GetRecords(ctx context.Context, zoneID string, params *GetRecordsParameters) (*GetRecordsResponse, error)
- func (c Client) GetZones(ctx context.Context) ([]Zone, error)
- type GetRecordsParameters
- type GetRecordsResponse
- type Record
- type Zone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type Client ¶
func (Client) CreateRecord ¶
CreateRecord creates a new record.
func (Client) DeleteRecord ¶
DeleteRecord deletes an existing record.
func (Client) EditRecord ¶
func (c Client) EditRecord(ctx context.Context, zoneID string, recordID string, record Record) (*Record, error)
EditRecord edits an existing record.
func (Client) GetRecords ¶
func (c Client) GetRecords(ctx context.Context, zoneID string, params *GetRecordsParameters) (*GetRecordsResponse, error)
GetRecords gets all records. Note: the response is not influenced by the query parameters, so the documentation seems wrong.
type GetRecordsParameters ¶
type GetRecordsResponse ¶
type Record ¶
type Record struct { Type string `json:"type,omitempty"` Host string `json:"host,omitempty"` Content string `json:"content,omitempty"` ID string `json:"recordId,omitempty"` TTL int `json:"ttl,omitempty"` Cloud bool `json:"cloud,omitempty"` Priority int `json:"priority,omitempty"` Service string `json:"service,omitempty"` Protocol string `json:"protocol,omitempty"` Weight int `json:"weight,omitempty"` Port int `json:"port,omitempty"` Advanced bool `json:"advanced,omitempty"` UpstreamPort int `json:"upstreamPort,omitempty"` UpstreamProtocol string `json:"upstreamProtocol,omitempty"` CustomSSLType string `json:"customSSLType,omitempty"` }
type Zone ¶
type Zone struct { ID string `json:"zoneId,omitempty"` Tags []string `json:"tags,omitempty"` ContextID string `json:"contextId,omitempty"` ContextType string `json:"contextType,omitempty"` HumanReadable string `json:"humanReadable,omitempty"` Serial string `json:"serial,omitempty"` CreationTime int64 `json:"creationTime,omitempty"` CreationTimeDate time.Time `json:"creationTimeDate,omitempty"` Status string `json:"status,omitempty"` IsMoved bool `json:"is_moved,omitempty"` Paused bool `json:"paused,omitempty"` ServiceType string `json:"serviceType,omitempty"` Limbo bool `json:"limbo,omitempty"` TeamName string `json:"teamName,omitempty"` TeamID string `json:"teamId,omitempty"` MyTeam bool `json:"myTeam,omitempty"` RoleName string `json:"roleName,omitempty"` IsBoard bool `json:"isBoard,omitempty"` BoardRole []string `json:"boardRole,omitempty"` }
Click to show internal directories.
Click to hide internal directories.