Versions in this module Expand all Collapse all v4 v4.14.5 Dec 29, 2024 v4.14.4 Oct 15, 2023 v4.14.3 Oct 15, 2023 v4.8.2 Oct 15, 2023 Changes in this version + func WithContext(ctx context.Context, credential string) context.Context + type AddDNSSettingsAPIResponse struct + Response AddDNSSettingsResponse + type AddDNSSettingsResponse struct + KasFloodDelay float64 + ReturnInfo string + ReturnString string + type AuthRequest struct + AuthData string + AuthType string + Login string + SessionLifetime int + SessionUpdateLifetime string + type Authentication interface + Authentication func(ctx context.Context, sessionLifetime int, sessionUpdateLifetime bool) (string, error) + type Client struct + HTTPClient *http.Client + func NewClient(login string) *Client + func (c *Client) AddDNSSettings(ctx context.Context, record DNSRequest) (string, error) + func (c *Client) DeleteDNSSettings(ctx context.Context, recordID string) (bool, error) + func (c *Client) GetDNSSettings(ctx context.Context, zone, recordID string) ([]ReturnInfo, error) + type DNSRequest struct + RecordAux int + RecordData string + RecordName string + RecordType string + ZoneHost string + type DeleteDNSSettingsAPIResponse struct + Response DeleteDNSSettingsResponse + type DeleteDNSSettingsResponse struct + KasFloodDelay float64 + ReturnInfo bool + ReturnString string + type Fault struct + Actor string + Code string + Message string + func (f Fault) Error() string + type GetDNSSettingsAPIResponse struct + Response GetDNSSettingsResponse + type GetDNSSettingsResponse struct + KasFloodDelay float64 + ReturnInfo []ReturnInfo + ReturnString string + type Identifier struct + HTTPClient *http.Client + func NewIdentifier(login string, password string) *Identifier + func (c *Identifier) Authentication(ctx context.Context, sessionLifetime int, sessionUpdateLifetime bool) (string, error) + type Item struct + Items []*Item + Key *Item + Raw string + Text string + Type string + Value *Item + type KasAPIBody struct + Fault *Fault + KasAPIResponse *KasResponse + type KasAPIResponseEnvelope struct + Body KasAPIBody + XMLName xml.Name + type KasAuthBody struct + Fault *Fault + KasAuthResponse *KasResponse + type KasAuthEnvelope struct + Body KasAuthBody + XMLName xml.Name + type KasRequest struct + Action string + AuthData string + AuthType string + Login string + RequestParams any + type KasResponse struct + Return *Item + type ReturnInfo struct + Aux int + Changeable string + Data string + ID any + Name string + Type string + Zone string + type Trimmer struct + func (tr Trimmer) Token() (xml.Token, error)