Versions in this module Expand all Collapse all v0 v0.2.0 Jul 1, 2019 Changes in this version type DNS1Cloud + func (c *DNS1Cloud) UpdateRecord(ctx context.Context, domainID uint64, record Record) (Record, error) v0.1.3 Jul 1, 2019 Changes in this version + type DNS1Cloud struct + func New(apiKey string, opts ...OptFunc) *DNS1Cloud + func (c *DNS1Cloud) AddRecord(ctx context.Context, domainID uint64, record Record) (Record, error) + func (c *DNS1Cloud) DeleteRecord(ctx context.Context, domainID uint64, recordID uint64) error + func (c *DNS1Cloud) GetDomain(ctx context.Context, domainID uint64) (Domain, error) + func (c *DNS1Cloud) GetRecord(ctx context.Context, recordID uint64) (Record, error) + func (c *DNS1Cloud) List(ctx context.Context) ([]Domain, error) + type DateTime struct + func (d *DateTime) UnmarshalJSON(b []byte) error + type Domain struct + DateCreate DateTime + ID uint64 + IsDelegate bool + LinkedRecords []Record + Name string + State State + TechName string + type OptFunc func(*DNS1Cloud) + func WithApiHost(apiHost string) OptFunc + func WithHTTPClient(cli *http.Client) OptFunc + type Record struct + CanonicalDescription string + DateCreate DateTime + ExtHostName string + HostName string + ID uint64 + IP string + MnemonicName string + Port string + Priority string + Proto string + Service string + State State + TTL uint32 + Target string + Text string + TypeRecord RecordType + Weight string + type RecordType uint8 + const RecordTypeA + const RecordTypeAAAA + const RecordTypeCNAME + const RecordTypeMX + const RecordTypeNS + const RecordTypeSRV + const RecordTypeTXT + func (r *RecordType) UnmarshalJSON(b []byte) error + type State uint8 + const StateActive + const StateNew + func (s *State) UnmarshalJSON(b []byte) error