Documentation
¶
Index ¶
- type APIError
- type CatchAll
- type Client
- func (c *Client) AddSpamBlacklistEntry(ctx context.Context, domain, entry string) error
- func (c *Client) AddSpamWhitelistEntry(ctx context.Context, domain, entry string) error
- func (c *Client) ChangeResellerUserPackage(ctx context.Context, username, packageName string) error
- func (c *Client) CreateDomain(ctx context.Context, name string) (*CreateDomainResponse, error)
- func (c *Client) CreateDomainPointer(ctx context.Context, domain, pointer string, alias bool) error
- func (c *Client) CreateEmailAccount(ctx context.Context, domain string, body CreateEmailAccountRequest) error
- func (c *Client) CreateForwarder(ctx context.Context, domain, alias string, destinations []string) error
- func (c *Client) CreateResellerPackage(ctx context.Context, body CreateResellerPackageRequest) error
- func (c *Client) CreateResellerUser(ctx context.Context, body CreateResellerUserRequest) error
- func (c *Client) DeleteDomain(ctx context.Context, name string) error
- func (c *Client) DeleteDomainPointer(ctx context.Context, domain, pointer string) error
- func (c *Client) DeleteEmailAccount(ctx context.Context, domain, user string) error
- func (c *Client) DeleteForwarder(ctx context.Context, domain, alias string) error
- func (c *Client) DeleteResellerPackage(ctx context.Context, name string) error
- func (c *Client) DeleteResellerUser(ctx context.Context, username string) error
- func (c *Client) DeleteSpamBlacklistEntry(ctx context.Context, domain, entry string) error
- func (c *Client) DeleteSpamWhitelistEntry(ctx context.Context, domain, entry string) error
- func (c *Client) GetCatchAll(ctx context.Context, domain string) (*CatchAll, error)
- func (c *Client) GetDNS(ctx context.Context, domain string) (*DNSInfo, error)
- func (c *Client) GetDomain(ctx context.Context, name string) (*GetDomainResponse, error)
- func (c *Client) GetDomainPointer(ctx context.Context, domain, pointer string) (*DomainPointer, error)
- func (c *Client) GetEmailAccount(ctx context.Context, domain, user string) (*EmailAccount, error)
- func (c *Client) GetEmailQuota(ctx context.Context) (*EmailQuota, error)
- func (c *Client) GetForwarder(ctx context.Context, domain, alias string) (*Forwarder, error)
- func (c *Client) GetQuota(ctx context.Context) (*Quota, error)
- func (c *Client) GetResellerPackage(ctx context.Context, name string) (*ResellerPackage, error)
- func (c *Client) GetResellerUser(ctx context.Context, username string) (*ResellerUser, error)
- func (c *Client) GetSpamSettings(ctx context.Context, domain string) (*SpamSettings, error)
- func (c *Client) GetVerificationKey(ctx context.Context) (*VerificationKey, error)
- func (c *Client) ListDomainPointers(ctx context.Context, domain string) ([]DomainPointer, error)
- func (c *Client) ListDomains(ctx context.Context) ([]string, error)
- func (c *Client) ListEmailAccounts(ctx context.Context, domain string) ([]EmailAccount, error)
- func (c *Client) ListForwarders(ctx context.Context, domain string) ([]Forwarder, error)
- func (c *Client) ListResellerPackages(ctx context.Context) ([]string, error)
- func (c *Client) ListResellerUsers(ctx context.Context) ([]string, error)
- func (c *Client) ListSpamBlacklist(ctx context.Context, domain string) ([]string, error)
- func (c *Client) ListSpamWhitelist(ctx context.Context, domain string) ([]string, error)
- func (c *Client) SetCatchAll(ctx context.Context, domain, catchAllType, address string) error
- func (c *Client) SetMailHosting(ctx context.Context, name string, enabled bool) error
- func (c *Client) SuspendResellerUser(ctx context.Context, username string) error
- func (c *Client) UnsuspendResellerUser(ctx context.Context, username string) error
- func (c *Client) UpdateEmailAccount(ctx context.Context, domain, user string, body UpdateEmailAccountRequest) error
- func (c *Client) UpdateResellerPackage(ctx context.Context, name string, body UpdateResellerPackageRequest) error
- func (c *Client) UpdateResellerUser(ctx context.Context, username string, body UpdateResellerUserRequest) error
- func (c *Client) UpdateSpamSettings(ctx context.Context, domain string, highScore int64) error
- type CreateDomainResponse
- type CreateEmailAccountRequest
- type CreateResellerPackageRequest
- type CreateResellerUserRequest
- type DNSInfo
- type DNSMXRecord
- type DNSRecord
- type DomainPointer
- type EmailAccount
- type EmailQuota
- type EmailQuotaAccount
- type Forwarder
- type GetDomainResponse
- type GracePeriod
- type Quota
- type QuotaBreakdown
- type ResellerPackage
- type ResellerPackageSettings
- type ResellerUser
- type ResellerUserQuota
- type SpamSettings
- type UpdateEmailAccountRequest
- type UpdateResellerPackageRequest
- type UpdateResellerUserRequest
- type VerificationKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddSpamBlacklistEntry ¶
func (*Client) AddSpamWhitelistEntry ¶
func (*Client) ChangeResellerUserPackage ¶
func (*Client) CreateDomain ¶
func (*Client) CreateDomainPointer ¶
func (*Client) CreateEmailAccount ¶
func (*Client) CreateForwarder ¶
func (*Client) CreateResellerPackage ¶
func (c *Client) CreateResellerPackage(ctx context.Context, body CreateResellerPackageRequest) error
func (*Client) CreateResellerUser ¶
func (c *Client) CreateResellerUser(ctx context.Context, body CreateResellerUserRequest) error
func (*Client) DeleteDomainPointer ¶
func (*Client) DeleteEmailAccount ¶
func (*Client) DeleteForwarder ¶
func (*Client) DeleteResellerPackage ¶
func (*Client) DeleteResellerUser ¶
func (*Client) DeleteSpamBlacklistEntry ¶
func (*Client) DeleteSpamWhitelistEntry ¶
func (*Client) GetCatchAll ¶
func (*Client) GetDomainPointer ¶
func (*Client) GetEmailAccount ¶
func (*Client) GetEmailQuota ¶
func (c *Client) GetEmailQuota(ctx context.Context) (*EmailQuota, error)
func (*Client) GetForwarder ¶
func (*Client) GetResellerPackage ¶
func (*Client) GetResellerUser ¶
func (*Client) GetSpamSettings ¶
func (*Client) GetVerificationKey ¶
func (c *Client) GetVerificationKey(ctx context.Context) (*VerificationKey, error)
func (*Client) ListDomainPointers ¶
func (*Client) ListEmailAccounts ¶
func (*Client) ListForwarders ¶
func (*Client) ListResellerPackages ¶
func (*Client) ListResellerUsers ¶
func (*Client) ListSpamBlacklist ¶
func (*Client) ListSpamWhitelist ¶
func (*Client) SetCatchAll ¶
func (*Client) SetMailHosting ¶
func (*Client) SuspendResellerUser ¶
func (*Client) UnsuspendResellerUser ¶
func (*Client) UpdateEmailAccount ¶
func (*Client) UpdateResellerPackage ¶
func (*Client) UpdateResellerUser ¶
type CreateDomainResponse ¶
type CreateDomainResponse struct {
SSLEnabled bool `json:"ssl_enabled"`
}
CreateDomainResponse is the response body of POST /domains.
type CreateResellerPackageRequest ¶
type CreateResellerPackageRequest struct {
Name string `json:"name"`
Quota *string `json:"quota,omitempty"`
Domains *string `json:"domains,omitempty"`
EmailAccounts *string `json:"email_accounts,omitempty"`
EmailForwarders *string `json:"email_forwarders,omitempty"`
DomainPointers *string `json:"domain_pointers,omitempty"`
}
type DNSInfo ¶
type DNSInfo struct {
MXRecords []DNSMXRecord `json:"mx_records"`
SPF *DNSRecord `json:"spf"`
DKIM *DNSRecord `json:"dkim"`
Verification *DNSRecord `json:"verification"`
}
type DNSMXRecord ¶
type DomainPointer ¶
type EmailAccount ¶
type EmailQuota ¶
type EmailQuota struct {
Username string `json:"username"`
Accounts []EmailQuotaAccount `json:"accounts"`
}
type EmailQuotaAccount ¶
type GetDomainResponse ¶
type GetDomainResponse struct {
Name string `json:"domain"`
MailHosting bool `json:"mail_hosting"`
SSLEnabled bool `json:"ssl_enabled"`
}
GetDomainResponse is the response body of GET /domains/{domain}.
type GracePeriod ¶
type Quota ¶
type Quota struct {
Username string `json:"username"`
TotalUsed int64 `json:"total_used"`
TotalLimit int64 `json:"total_limit"`
PercentUsed float64 `json:"percent_used"`
Breakdown QuotaBreakdown `json:"breakdown"`
GracePeriod *GracePeriod `json:"grace_period"`
UpdatedAt string `json:"updated_at"`
}
type QuotaBreakdown ¶
type ResellerPackage ¶
type ResellerPackage struct {
Name string `json:"name"`
Settings ResellerPackageSettings `json:"settings"`
}
type ResellerPackageSettings ¶
type ResellerUser ¶
type ResellerUserQuota ¶
type SpamSettings ¶
type SpamSettings struct {
HighScore int64 `json:"high_score"`
}
type UpdateResellerPackageRequest ¶
type UpdateResellerPackageRequest struct {
Quota *string `json:"quota,omitempty"`
Domains *string `json:"domains,omitempty"`
EmailAccounts *string `json:"email_accounts,omitempty"`
EmailForwarders *string `json:"email_forwarders,omitempty"`
DomainPointers *string `json:"domain_pointers,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.