Documentation ¶
Index ¶
- Constants
- type CpanelApi
- func (c CpanelApi) BrandingInclude(name string) (cpanelgo.BaseAPI1Response, error)
- func (c CpanelApi) DeleteCert(certId string) (cpanelgo.BaseUAPIResponse, error)
- func (c CpanelApi) DeleteKey(keyId string) (cpanelgo.BaseUAPIResponse, error)
- func (c CpanelApi) DeleteSSL(domain string) (cpanelgo.BaseUAPIResponse, error)
- func (c CpanelApi) DomainsData() (DomainsDataApiResponse, error)
- func (c CpanelApi) EditZoneRecord(args cpanelgo.Args) (EditZoneRecordApiResponse, error)
- func (c CpanelApi) EnableMailSNI(domains ...string) (EnableMailSNIAPIResponse, error)
- func (c CpanelApi) FetchZone(domain, types string) (FetchZoneApiResponse, error)
- func (c CpanelApi) FetchZoneRecords(domain string, args cpanelgo.Args) (FetchZoneRecordsApiResponse, error)
- func (c CpanelApi) GenerateSSLKey(keySize int, friendlyName string) (GenerateSSLKeyAPIResponse, error)
- func (c CpanelApi) GetDom(pageTitle string) (GetDomAPIResponse, error)
- func (c CpanelApi) GetLocaleAttributes() (LocaleAPIResponse_UAPI, error)
- func (c CpanelApi) GetNVData(name string) (NVDataGetApiResult, error)
- func (c CpanelApi) GetQuotaInfo() (GetQuotaInfoApiResponse, error)
- func (c CpanelApi) GetTheme() (GetThemeAPIResponse, error)
- func (c CpanelApi) GetUserLocale() (LocaleAPIResponse_API2, error)
- func (c CpanelApi) HasFeature(name string) (string, error)
- func (c CpanelApi) InstallSSLKey(domain string, cert string, key string, cabundle string) (InstallSSLKeyAPIResponse, error)
- func (c CpanelApi) InstalledHosts() (InstalledHostsApiResponse, error)
- func (c CpanelApi) IsMailSNISupported() (IsMailSNISupportedAPIResponse, error)
- func (c CpanelApi) ListParkedDomains() (ListParkedDomainsApiResponse, error)
- func (c CpanelApi) ListSSLCerts() (ListSSLCertsAPIResponse, error)
- func (c CpanelApi) ListSSLKeys() (ListSSLKeysAPIResponse, error)
- func (c CpanelApi) MailSNIStatus(domain string) (MailSNIStatusAPIResponse, error)
- func (c CpanelApi) Mkdir(name, permissions, path string) (MkdirApiResponse, error)
- func (c CpanelApi) RebuildMailSNIConfig() (RebuildMailSNIConfigAPIResponse, error)
- func (c CpanelApi) SetNVData(name string, data interface{}) (NVDataSetApiResult, error)
- func (c CpanelApi) SetNVDataRaw(name string, buf []byte) (NVDataSetApiResult, error)
- func (c CpanelApi) SetVar(key, value string) (cpanelgo.BaseAPI1Response, error)
- func (c CpanelApi) SingleDomainData(domain string) (SingleDomainDataApiResponse, error)
- func (c CpanelApi) UploadFiles(name, contents, dir string) error
- func (c CpanelApi) WebVhostsListDomains() (WebVhostsListDomainsApiResponse, error)
- type CpanelApiRequest
- type CpanelSslCertificate
- type DomainsDataApiResponse
- type DomainsDataDomain
- type EditZoneRecordApiResponse
- type EnableMailSNIAPIResponse
- type FetchZoneApiResponse
- type FetchZoneRecordsApiResponse
- type GenerateSSLKeyAPIResponse
- type GetDomAPIResponse
- type GetQuotaInfoApiResponse
- type GetThemeAPIResponse
- type InstallSSLKeyAPIResponse
- type InstalledCertificate
- type InstalledHostsApiResponse
- type IsMailSNISupportedAPIResponse
- type JsonApiGateway
- func (c *JsonApiGateway) API1(module, function string, arguments []string, out interface{}) error
- func (c *JsonApiGateway) API2(module, function string, arguments cpanelgo.Args, out interface{}) error
- func (c *JsonApiGateway) Close() error
- func (c *JsonApiGateway) UAPI(module, function string, arguments cpanelgo.Args, out interface{}) error
- type ListParkedDomainsApiResponse
- type ListSSLCertsAPIResponse
- type ListSSLKeysAPIResponse
- type LiveApiGateway
- func (c *LiveApiGateway) API1(module, function string, arguments []string, out interface{}) error
- func (c *LiveApiGateway) API2(module, function string, arguments cpanelgo.Args, out interface{}) error
- func (c *LiveApiGateway) Close() error
- func (c *LiveApiGateway) UAPI(module, function string, arguments cpanelgo.Args, out interface{}) error
- type LocaleAPIResponse_API2
- type LocaleAPIResponse_UAPI
- type MailSNIStatusAPIResponse
- type MkdirApiResponse
- type NVDataGetApiResult
- type NVDataSetApiResult
- type ParkedDomain
- type RebuildMailSNIConfigAPIResponse
- type SingleDomainDataApiResponse
- type UploadFilesApiResponse
- type VhostEntry
- type WebVhostsListDomainsApiResponse
- type ZoneRecord
Constants ¶
View Source
const (
ParkedStatusNotRedirected = "not redirected"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CpanelApi ¶
func NewJsonApi ¶
func NewLiveApi ¶
func (CpanelApi) BrandingInclude ¶
func (c CpanelApi) BrandingInclude(name string) (cpanelgo.BaseAPI1Response, error)
This is fucking undocumented
func (CpanelApi) DeleteCert ¶
func (c CpanelApi) DeleteCert(certId string) (cpanelgo.BaseUAPIResponse, error)
func (CpanelApi) DeleteKey ¶
func (c CpanelApi) DeleteKey(keyId string) (cpanelgo.BaseUAPIResponse, error)
func (CpanelApi) DeleteSSL ¶
func (c CpanelApi) DeleteSSL(domain string) (cpanelgo.BaseUAPIResponse, error)
func (CpanelApi) DomainsData ¶
func (c CpanelApi) DomainsData() (DomainsDataApiResponse, error)
func (CpanelApi) EditZoneRecord ¶
func (c CpanelApi) EditZoneRecord(args cpanelgo.Args) (EditZoneRecordApiResponse, error)
func (CpanelApi) EnableMailSNI ¶
func (c CpanelApi) EnableMailSNI(domains ...string) (EnableMailSNIAPIResponse, error)
func (CpanelApi) FetchZone ¶
func (c CpanelApi) FetchZone(domain, types string) (FetchZoneApiResponse, error)
func (CpanelApi) FetchZoneRecords ¶
func (CpanelApi) GenerateSSLKey ¶
func (c CpanelApi) GenerateSSLKey(keySize int, friendlyName string) (GenerateSSLKeyAPIResponse, error)
func (CpanelApi) GetLocaleAttributes ¶
func (c CpanelApi) GetLocaleAttributes() (LocaleAPIResponse_UAPI, error)
func (CpanelApi) GetQuotaInfo ¶
func (c CpanelApi) GetQuotaInfo() (GetQuotaInfoApiResponse, error)
func (CpanelApi) GetTheme ¶
func (c CpanelApi) GetTheme() (GetThemeAPIResponse, error)
func (CpanelApi) GetUserLocale ¶
func (c CpanelApi) GetUserLocale() (LocaleAPIResponse_API2, error)
func (CpanelApi) InstallSSLKey ¶
func (CpanelApi) InstalledHosts ¶
func (c CpanelApi) InstalledHosts() (InstalledHostsApiResponse, error)
func (CpanelApi) IsMailSNISupported ¶
func (c CpanelApi) IsMailSNISupported() (IsMailSNISupportedAPIResponse, error)
func (CpanelApi) ListParkedDomains ¶
func (c CpanelApi) ListParkedDomains() (ListParkedDomainsApiResponse, error)
func (CpanelApi) ListSSLCerts ¶
func (c CpanelApi) ListSSLCerts() (ListSSLCertsAPIResponse, error)
func (CpanelApi) ListSSLKeys ¶
func (c CpanelApi) ListSSLKeys() (ListSSLKeysAPIResponse, error)
func (CpanelApi) MailSNIStatus ¶
func (c CpanelApi) MailSNIStatus(domain string) (MailSNIStatusAPIResponse, error)
func (CpanelApi) Mkdir ¶
func (c CpanelApi) Mkdir(name, permissions, path string) (MkdirApiResponse, error)
func (CpanelApi) RebuildMailSNIConfig ¶
func (c CpanelApi) RebuildMailSNIConfig() (RebuildMailSNIConfigAPIResponse, error)
func (CpanelApi) SetNVData ¶
func (c CpanelApi) SetNVData(name string, data interface{}) (NVDataSetApiResult, error)
func (CpanelApi) SetNVDataRaw ¶
func (c CpanelApi) SetNVDataRaw(name string, buf []byte) (NVDataSetApiResult, error)
func (CpanelApi) SetVar ¶
func (c CpanelApi) SetVar(key, value string) (cpanelgo.BaseAPI1Response, error)
func (CpanelApi) SingleDomainData ¶
func (c CpanelApi) SingleDomainData(domain string) (SingleDomainDataApiResponse, error)
func (CpanelApi) UploadFiles ¶
func (CpanelApi) WebVhostsListDomains ¶
func (c CpanelApi) WebVhostsListDomains() (WebVhostsListDomainsApiResponse, error)
type CpanelApiRequest ¶
type CpanelSslCertificate ¶
type CpanelSslCertificate struct { Domains []string `json:"domains"` CommonName string `json:"subject.commonName"` IsSelfSigned cpanelgo.MaybeInt64 `json:"is_self_signed"` Id string `json:"id"` NotAfter cpanelgo.MaybeInt64 `json:"not_after"` OrgName string `json:"issuer.organizationName"` }
func (CpanelSslCertificate) Expiry ¶
func (s CpanelSslCertificate) Expiry() time.Time
type DomainsDataApiResponse ¶
type DomainsDataApiResponse struct { cpanelgo.BaseUAPIResponse Data struct { MainDomain DomainsDataDomain `json:"main_domain"` AddonDomains []DomainsDataDomain `json:"addon_domains"` ParkedDomains []string `json:"parked_domains"` Sub_Domains []json.RawMessage `json:"sub_domains"` Subdomains []DomainsDataDomain `json:"-"` } `json:"data"` }
func (DomainsDataApiResponse) DataList ¶
func (dd DomainsDataApiResponse) DataList() []DomainsDataDomain
func (DomainsDataApiResponse) DomainList ¶
func (r DomainsDataApiResponse) DomainList() []string
type DomainsDataDomain ¶
type EditZoneRecordApiResponse ¶
type EditZoneRecordApiResponse struct { cpanelgo.BaseAPI2Response Data []struct { Result struct { NewSerial cpanelgo.MaybeInt64 `json:"newserial"` StatusMessage string `json:"statusmsg"` Status cpanelgo.MaybeInt64 `json:"status"` } `json:"result"` } `json:"data"` }
type EnableMailSNIAPIResponse ¶
type EnableMailSNIAPIResponse struct { cpanelgo.BaseUAPIResponse Data struct { UpdatedDomains map[string]int `json:"updated_domains"` FailedDomains map[string]interface{} `json:"failed_domains"` } `json:"data"` }
type FetchZoneApiResponse ¶
type FetchZoneApiResponse struct { cpanelgo.BaseAPI2Response Data []struct { StatusMessage string `json:"statusmsg"` Records []ZoneRecord `json:"record"` } `json:"data"` }
type FetchZoneRecordsApiResponse ¶
type FetchZoneRecordsApiResponse struct { cpanelgo.BaseAPI2Response Data []ZoneRecord `json:"data"` }
type GenerateSSLKeyAPIResponse ¶
type GenerateSSLKeyAPIResponse struct { cpanelgo.BaseUAPIResponse Data struct { Created cpanelgo.MaybeInt64 `json:"created"` Modulus string `json:"modulus"` Text string `json:"text"` Id string `json:"id"` FriendlyName string `json:"friendly_name"` ModulusLength int `json:"modulus_length"` } `json:"data"` }
type GetDomAPIResponse ¶
type GetDomAPIResponse struct { cpanelgo.BaseUAPIResponse Data struct { Header string `json:"header"` Footer string `json:"footer"` } `json:"data"` }
type GetQuotaInfoApiResponse ¶
type GetQuotaInfoApiResponse struct { cpanelgo.BaseUAPIResponse Data struct { UnderQuotaOverall *json.RawMessage `json:"under_quota_overall"` } `json:"data"` }
func (GetQuotaInfoApiResponse) IsUnderQuota ¶
func (q GetQuotaInfoApiResponse) IsUnderQuota() bool
type GetThemeAPIResponse ¶
type GetThemeAPIResponse struct { cpanelgo.BaseUAPIResponse Theme string `json:"data"` }
type InstallSSLKeyAPIResponse ¶
type InstallSSLKeyAPIResponse struct { cpanelgo.BaseUAPIResponse Data struct { Action string `json:"action"` CertId string `json:"cert_id"` Domain string `json:"domain"` Html string `json:"html"` Ip string `json:"ip"` KeyId string `json:"key_id"` Message string `json:"message"` StatusMsg string `json:"statusmsg"` User string `json:"user"` WarningDomains []string `json:"warning_domains"` WorkingDomains []string `json:"working_domains"` ExtraCertificateDomains []string `json:"extra_certificate_domains"` } `json:"data"` }
type InstalledCertificate ¶
type InstalledCertificate struct { Certificate CpanelSslCertificate `json:"certificate"` CertificateText string `json:"certificate_text"` }
type InstalledHostsApiResponse ¶
type InstalledHostsApiResponse struct { cpanelgo.BaseUAPIResponse Data []InstalledCertificate `json:"data"` }
func (InstalledHostsApiResponse) HasDomain ¶
func (r InstalledHostsApiResponse) HasDomain(d string) bool
func (InstalledHostsApiResponse) HasValidDomain ¶
func (r InstalledHostsApiResponse) HasValidDomain(d string, expiryCutoff time.Time) bool
type IsMailSNISupportedAPIResponse ¶
type IsMailSNISupportedAPIResponse struct { cpanelgo.BaseUAPIResponse Data int `json:"data"` }
type JsonApiGateway ¶
func (*JsonApiGateway) API1 ¶
func (c *JsonApiGateway) API1(module, function string, arguments []string, out interface{}) error
func (*JsonApiGateway) API2 ¶
func (c *JsonApiGateway) API2(module, function string, arguments cpanelgo.Args, out interface{}) error
func (*JsonApiGateway) Close ¶
func (c *JsonApiGateway) Close() error
type ListParkedDomainsApiResponse ¶
type ListParkedDomainsApiResponse struct { cpanelgo.BaseAPI2Response Data []ParkedDomain `json:"data"` }
type ListSSLCertsAPIResponse ¶
type ListSSLCertsAPIResponse struct { cpanelgo.BaseUAPIResponse Data []CpanelSslCertificate `json:"data"` }
type ListSSLKeysAPIResponse ¶
type ListSSLKeysAPIResponse struct { cpanelgo.BaseUAPIResponse Data struct { Created cpanelgo.MaybeInt64 `json:"created"` Modulus string `json:"modulus"` Id string `json:"id"` FriendlyName string `json:"friendly_name"` ModulusLength int `json:"modulus_length"` } `json:"data"` }
type LiveApiGateway ¶
func (*LiveApiGateway) API1 ¶
func (c *LiveApiGateway) API1(module, function string, arguments []string, out interface{}) error
func (*LiveApiGateway) API2 ¶
func (c *LiveApiGateway) API2(module, function string, arguments cpanelgo.Args, out interface{}) error
func (*LiveApiGateway) Close ¶
func (c *LiveApiGateway) Close() error
type LocaleAPIResponse_API2 ¶
type LocaleAPIResponse_API2 struct { cpanelgo.BaseAPI2Response Data []struct { Locale string `json:"locale"` } `json:"data"` }
type LocaleAPIResponse_UAPI ¶
type MailSNIStatusAPIResponse ¶
type MailSNIStatusAPIResponse struct { cpanelgo.BaseUAPIResponse Data struct { Enabled int `json:"enabled"` } `json:"data"` }
type MkdirApiResponse ¶
type MkdirApiResponse struct { cpanelgo.BaseAPI2Response Data []struct { Permissions string `json:"permissions"` Name string `json:"name"` Path string `json:"path"` } `json:"data"` }
type NVDataGetApiResult ¶
type NVDataGetApiResult struct { cpanelgo.BaseUAPIResponse Data []struct { FileName string `json:"name"` FileContents string `json:"value"` } `json:"data"` }
type NVDataSetApiResult ¶
type NVDataSetApiResult struct { cpanelgo.BaseUAPIResponse Data []struct { Set string `json:"set"` } `json:"data"` }
type ParkedDomain ¶
type RebuildMailSNIConfigAPIResponse ¶
type RebuildMailSNIConfigAPIResponse struct { cpanelgo.BaseUAPIResponse Data struct { Success int `json:"success"` } }
type UploadFilesApiResponse ¶
type VhostEntry ¶
type WebVhostsListDomainsApiResponse ¶
type WebVhostsListDomainsApiResponse struct { cpanelgo.BaseUAPIResponse Data []VhostEntry `json:"data"` }
type ZoneRecord ¶
Click to show internal directories.
Click to hide internal directories.