Documentation ¶
Index ¶
- type ConfigAuth
- type ConfigUrls
- type FreeDNS
- func (ctx *FreeDNS) Authenticate() (string, error)
- func (ctx *FreeDNS) ConfigEnv() error
- func (ctx *FreeDNS) ConfigFile() error
- func (ctx *FreeDNS) CreateDomain(domain string) error
- func (ctx *FreeDNS) CreateRecord(domain_id string, name string, t string, value string, ttl string) error
- func (ctx *FreeDNS) DeleteDomain(domain_id string) error
- func (ctx *FreeDNS) DeleteRecord(record_id string) error
- func (ctx *FreeDNS) FindRecordIds(m map[string]Record, name string) (ids []string, ok bool)
- func (ctx *FreeDNS) GetDomains() (map[string]string, map[string]string, error)
- func (ctx *FreeDNS) GetRecordDetails(record_id string) (*RecordDetails, error)
- func (ctx *FreeDNS) GetRecords(domain_id string) (map[string]Record, error)
- func (ctx *FreeDNS) UpdateRecord(domain_id string, record_id string, name string, t string, value string, ...) error
- type Record
- type RecordDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigAuth ¶
type ConfigUrls ¶
type ConfigUrls struct { Base string `envconfig:"URLS_BASE"` Login string `envconfig:"URLS_LOGIN"` GetDomains string `envconfig:"URLS_GET_DOMAINS"` CreateDomain string `envconfig:"URLS_CREATE_DOMAIN"` DeleteDomain string `envconfig:"URLS_DELETE_DOMAIN"` GetRecords string `envconfig:"URLS_GET_RECORDS"` GetRecordDetails string `envconfig:"URLS_GET_RECORD_DETAILS"` UpdateRecord string `envconfig:"URLS_UPDATE_RECORD"` DeleteRecord string `envconfig:"URLS_DELETE_RECORD"` }
type FreeDNS ¶
type FreeDNS struct { Urls ConfigUrls Auth ConfigAuth Client *http.Client }
func NewFreeDNS ¶
func (*FreeDNS) Authenticate ¶
func (*FreeDNS) ConfigFile ¶
func (*FreeDNS) CreateDomain ¶
func (*FreeDNS) CreateRecord ¶
func (*FreeDNS) DeleteDomain ¶
func (*FreeDNS) DeleteRecord ¶
func (*FreeDNS) FindRecordIds ¶
func (*FreeDNS) GetDomains ¶
func (*FreeDNS) GetRecordDetails ¶
func (ctx *FreeDNS) GetRecordDetails(record_id string) (*RecordDetails, error)
func (*FreeDNS) GetRecords ¶
Click to show internal directories.
Click to hide internal directories.