Documentation ¶
Index ¶
- type DNSRecord
- type DNSRecordCreateRequest
- type DNSRecordListResponse
- type DNSRecordSingleResponse
- type DNSRecordUpdateRequest
- type DNSRecordsUpdateRequest
- type DNSZone
- type DNSZoneListResponse
- type DNSZoneSingleResponse
- type DNSZoneUpdateRequest
- type Domain
- type DomainAuthinfo
- type DomainAuthinfoResponse
- type DomainCheckResponse
- type DomainCheckResult
- type DomainCheckVerificationResponse
- type DomainClient
- func (c DomainClient) CheckDomain(name string) (DomainCheckResponse, *http.Response, error)
- func (c DomainClient) CheckDomainVerification(name string) (DomainCheckVerificationResponse, *http.Response, error)
- func (c DomainClient) CreateDNSZoneRecord(in DNSRecordCreateRequest, name string) (DNSRecordSingleResponse, *http.Response, error)
- func (c DomainClient) CreateDomain(in DomainCreateRequest) (DomainSingleResponse, *http.Response, error)
- func (c DomainClient) CreateDomainHandle(in DomainHandleCreateRequest) (DomainHandleSingleResponse, *http.Response, error)
- func (c DomainClient) DeleteDNSRecord(name string, id string) (EmptyResponse, *http.Response, error)
- func (c DomainClient) DeleteDomain(name string) (EmptyResponse, *http.Response, error)
- func (c DomainClient) DeleteDomainHandle(code string) (EmptyResponse, *http.Response, error)
- func (c *DomainClient) GetCurrentProject() string
- func (c DomainClient) GetDNSZone(name string) (DNSZoneSingleResponse, *http.Response, error)
- func (c DomainClient) GetDNSZoneRecords(name string, qParams GetDNSZoneRecordsQueryParams) (DNSRecordListResponse, *http.Response, error)
- func (c DomainClient) GetDNSZones(qParams GetDNSZonesQueryParams) (DNSZoneListResponse, *http.Response, error)
- func (c DomainClient) GetDomain(name string) (DomainSingleResponse, *http.Response, error)
- func (c DomainClient) GetDomainAuthinfo(name string) (DomainAuthinfoResponse, *http.Response, error)
- func (c DomainClient) GetDomainHandle(code string) (DomainHandleSingleResponse, *http.Response, error)
- func (c DomainClient) GetDomainHandles(qParams GetDomainHandlesQueryParams) (DomainHandleListResponse, *http.Response, error)
- func (c DomainClient) GetDomainPricingList(qParams GetDomainPricingListQueryParams) (DomainPriceListResponse, *http.Response, error)
- func (c DomainClient) GetDomains(qParams GetDomainsQueryParams) (DomainListResponse, *http.Response, error)
- func (c DomainClient) GetLabels(qParams GetLabelsQueryParams) (LabelListResponse, *http.Response, error)
- func (c DomainClient) RemoveDomainAuthinfo(name string) (EmptyResponse, *http.Response, error)
- func (c *DomainClient) Request(method string, path string, postBody io.Reader) (*http.Response, []byte, error)
- func (c DomainClient) RestoreDomain(name string) (EmptyResponse, *http.Response, error)
- func (c DomainClient) ScheduleDomainDelete(in DomainScheduleDeleteRequest, name string) (DomainSingleResponse, *http.Response, error)
- func (c DomainClient) Search(qParams SearchQueryParams) (SearchResponse, *http.Response, error)
- func (c DomainClient) SendDomainVerification(name string) (EmptyResponse, *http.Response, error)
- func (c *DomainClient) SetAccessToken(token string)
- func (c *DomainClient) SetCurrentProject(project string)
- func (c *DomainClient) SetHttpClient(client *http.Client)
- func (c DomainClient) UnscheduleDomainDelete(name string) (DomainSingleResponse, *http.Response, error)
- func (c DomainClient) UpdateDNSRecord(in DNSRecordUpdateRequest, name string, id string) (DNSRecordSingleResponse, *http.Response, error)
- func (c DomainClient) UpdateDNSZone(in DNSZoneUpdateRequest, name string) (DNSZoneSingleResponse, *http.Response, error)
- func (c DomainClient) UpdateDNSZoneRecords(in DNSRecordsUpdateRequest, name string) (DNSRecordListResponse, *http.Response, error)
- func (c DomainClient) UpdateDomain(in DomainUpdateRequest, name string) (DomainSingleResponse, *http.Response, error)
- func (c DomainClient) UpdateDomainHandle(in DomainHandleUpdateRequest, code string) (DomainHandleSingleResponse, *http.Response, error)
- type DomainCreateRequest
- type DomainHandle
- type DomainHandleCreateRequest
- type DomainHandleListResponse
- type DomainHandleSingleResponse
- type DomainHandleUpdateRequest
- type DomainListResponse
- type DomainPriceListResponse
- type DomainPricing
- type DomainRequestNameserver
- type DomainScheduleDeleteRequest
- type DomainSingleResponse
- type DomainStatus
- type DomainUpdateRequest
- type DomainVerificationStatus
- type EmptyResponse
- type GetDNSZoneRecordsQueryParams
- type GetDNSZonesQueryParams
- type GetDNSZonesQueryParamsFilter
- type GetDomainHandlesQueryParams
- type GetDomainHandlesQueryParamsFilter
- type GetDomainPricingListQueryParams
- type GetDomainsQueryParams
- type GetDomainsQueryParamsFilter
- type GetLabelsQueryParams
- type GetLabelsQueryParamsFilter
- type InvalidRequestResponse
- type Label
- type LabelListResponse
- type ObjectType
- type ResponseMessage
- type ResponseMessages
- type ResponseMetadata
- type ResponsePagination
- type SearchQueryParams
- type SearchQueryParamsLabels
- type SearchResponse
- type SearchResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSRecordCreateRequest ¶
type DNSRecordListResponse ¶
type DNSRecordListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []DNSRecord `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type DNSRecordSingleResponse ¶
type DNSRecordSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data DNSRecord `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type DNSRecordUpdateRequest ¶
type DNSRecordsUpdateRequest ¶
type DNSZoneListResponse ¶
type DNSZoneListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []DNSZone `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type DNSZoneSingleResponse ¶
type DNSZoneSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data DNSZone `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type DNSZoneUpdateRequest ¶
type Domain ¶
type Domain struct { RegisteredAt *string `json:"registered_at"` AdminHandleCode string `json:"admin_handle_code"` TechHandleCode string `json:"tech_handle_code"` CreatedAt string `json:"created_at"` Labels map[string]*string `json:"labels"` ProjectId string `json:"project_id"` SuspendedUntil *string `json:"suspended_until"` Name string `json:"name"` OwnerHandleCode string `json:"owner_handle_code"` ExpireAt *string `json:"expire_at"` ZoneHandleCode string `json:"zone_handle_code"` Status DomainStatus `json:"status"` SuspendedAt *string `json:"suspended_at"` }
type DomainAuthinfo ¶
type DomainAuthinfoResponse ¶
type DomainAuthinfoResponse struct { Metadata ResponseMetadata `json:"metadata"` Data DomainAuthinfo `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type DomainCheckResponse ¶
type DomainCheckResponse struct { Metadata ResponseMetadata `json:"metadata"` Data DomainCheckResult `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type DomainCheckResult ¶
type DomainCheckResult struct {
Available bool `json:"available"`
}
type DomainCheckVerificationResponse ¶
type DomainCheckVerificationResponse struct { Metadata ResponseMetadata `json:"metadata"` Data DomainVerificationStatus `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type DomainClient ¶
type DomainClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(apiKey string) DomainClient
func NewClientWithUrl ¶
func NewClientWithUrl(apiKey string, baseUrl string) DomainClient
func (DomainClient) CheckDomain ¶
func (c DomainClient) CheckDomain(name string) (DomainCheckResponse, *http.Response, error)
func (DomainClient) CheckDomainVerification ¶
func (c DomainClient) CheckDomainVerification(name string) (DomainCheckVerificationResponse, *http.Response, error)
func (DomainClient) CreateDNSZoneRecord ¶
func (c DomainClient) CreateDNSZoneRecord(in DNSRecordCreateRequest, name string) (DNSRecordSingleResponse, *http.Response, error)
func (DomainClient) CreateDomain ¶
func (c DomainClient) CreateDomain(in DomainCreateRequest) (DomainSingleResponse, *http.Response, error)
func (DomainClient) CreateDomainHandle ¶
func (c DomainClient) CreateDomainHandle(in DomainHandleCreateRequest) (DomainHandleSingleResponse, *http.Response, error)
func (DomainClient) DeleteDNSRecord ¶
func (c DomainClient) DeleteDNSRecord(name string, id string) (EmptyResponse, *http.Response, error)
func (DomainClient) DeleteDomain ¶
func (c DomainClient) DeleteDomain(name string) (EmptyResponse, *http.Response, error)
func (DomainClient) DeleteDomainHandle ¶
func (c DomainClient) DeleteDomainHandle(code string) (EmptyResponse, *http.Response, error)
func (*DomainClient) GetCurrentProject ¶
func (c *DomainClient) GetCurrentProject() string
func (DomainClient) GetDNSZone ¶
func (c DomainClient) GetDNSZone(name string) (DNSZoneSingleResponse, *http.Response, error)
func (DomainClient) GetDNSZoneRecords ¶
func (c DomainClient) GetDNSZoneRecords(name string, qParams GetDNSZoneRecordsQueryParams) (DNSRecordListResponse, *http.Response, error)
func (DomainClient) GetDNSZones ¶
func (c DomainClient) GetDNSZones(qParams GetDNSZonesQueryParams) (DNSZoneListResponse, *http.Response, error)
func (DomainClient) GetDomain ¶
func (c DomainClient) GetDomain(name string) (DomainSingleResponse, *http.Response, error)
func (DomainClient) GetDomainAuthinfo ¶
func (c DomainClient) GetDomainAuthinfo(name string) (DomainAuthinfoResponse, *http.Response, error)
func (DomainClient) GetDomainHandle ¶
func (c DomainClient) GetDomainHandle(code string) (DomainHandleSingleResponse, *http.Response, error)
func (DomainClient) GetDomainHandles ¶
func (c DomainClient) GetDomainHandles(qParams GetDomainHandlesQueryParams) (DomainHandleListResponse, *http.Response, error)
func (DomainClient) GetDomainPricingList ¶
func (c DomainClient) GetDomainPricingList(qParams GetDomainPricingListQueryParams) (DomainPriceListResponse, *http.Response, error)
func (DomainClient) GetDomains ¶
func (c DomainClient) GetDomains(qParams GetDomainsQueryParams) (DomainListResponse, *http.Response, error)
func (DomainClient) GetLabels ¶
func (c DomainClient) GetLabels(qParams GetLabelsQueryParams) (LabelListResponse, *http.Response, error)
func (DomainClient) RemoveDomainAuthinfo ¶
func (c DomainClient) RemoveDomainAuthinfo(name string) (EmptyResponse, *http.Response, error)
func (DomainClient) RestoreDomain ¶
func (c DomainClient) RestoreDomain(name string) (EmptyResponse, *http.Response, error)
func (DomainClient) ScheduleDomainDelete ¶
func (c DomainClient) ScheduleDomainDelete(in DomainScheduleDeleteRequest, name string) (DomainSingleResponse, *http.Response, error)
func (DomainClient) Search ¶
func (c DomainClient) Search(qParams SearchQueryParams) (SearchResponse, *http.Response, error)
func (DomainClient) SendDomainVerification ¶
func (c DomainClient) SendDomainVerification(name string) (EmptyResponse, *http.Response, error)
func (*DomainClient) SetAccessToken ¶
func (c *DomainClient) SetAccessToken(token string)
func (*DomainClient) SetCurrentProject ¶
func (c *DomainClient) SetCurrentProject(project string)
func (*DomainClient) SetHttpClient ¶
func (c *DomainClient) SetHttpClient(client *http.Client)
func (DomainClient) UnscheduleDomainDelete ¶
func (c DomainClient) UnscheduleDomainDelete(name string) (DomainSingleResponse, *http.Response, error)
func (DomainClient) UpdateDNSRecord ¶
func (c DomainClient) UpdateDNSRecord(in DNSRecordUpdateRequest, name string, id string) (DNSRecordSingleResponse, *http.Response, error)
func (DomainClient) UpdateDNSZone ¶
func (c DomainClient) UpdateDNSZone(in DNSZoneUpdateRequest, name string) (DNSZoneSingleResponse, *http.Response, error)
func (DomainClient) UpdateDNSZoneRecords ¶
func (c DomainClient) UpdateDNSZoneRecords(in DNSRecordsUpdateRequest, name string) (DNSRecordListResponse, *http.Response, error)
func (DomainClient) UpdateDomain ¶
func (c DomainClient) UpdateDomain(in DomainUpdateRequest, name string) (DomainSingleResponse, *http.Response, error)
func (DomainClient) UpdateDomainHandle ¶
func (c DomainClient) UpdateDomainHandle(in DomainHandleUpdateRequest, code string) (DomainHandleSingleResponse, *http.Response, error)
type DomainCreateRequest ¶
type DomainCreateRequest struct { Duration *int `json:"duration"` ProjectId string `json:"project_id"` AdminHandleCode string `json:"admin_handle_code"` Name string `json:"name"` OwnerHandleCode string `json:"owner_handle_code"` TechHandleCode string `json:"tech_handle_code"` Nameserver []DomainRequestNameserver `json:"nameserver"` Authinfo *string `json:"authinfo"` ZoneHandleCode string `json:"zone_handle_code"` Labels map[string]*string `json:"labels"` }
type DomainHandle ¶
type DomainHandle struct { Code string `json:"code"` BirthRegion *string `json:"birth_region"` Gender string `json:"gender"` City string `json:"city"` VatNumber *string `json:"vat_number"` BirthDate *string `json:"birth_date"` IdCard *string `json:"id_card"` Organisation *string `json:"organisation"` CreatedAt string `json:"created_at"` Type string `json:"type"` BirthCountryCode *string `json:"birth_country_code"` ProjectId string `json:"project_id"` Street string `json:"street"` TaxNumber *string `json:"tax_number"` Fax *string `json:"fax"` IdCardAuthority *string `json:"id_card_authority"` FirstName string `json:"first_name"` Email string `json:"email"` AdditionalAddress *string `json:"additional_address"` LastName string `json:"last_name"` BirthPlace *string `json:"birth_place"` IdCardIssueDate *string `json:"id_card_issue_date"` Labels map[string]*string `json:"labels"` CountryCode string `json:"country_code"` CompanyRegistrationNumber *string `json:"company_registration_number"` Phone *string `json:"phone"` StreetNumber string `json:"street_number"` PostalCode string `json:"postal_code"` Region *string `json:"region"` PrivacyProtection bool `json:"privacy_protection"` }
type DomainHandleCreateRequest ¶
type DomainHandleCreateRequest struct { BirthRegion *string `json:"birth_region"` Gender string `json:"gender"` City string `json:"city"` VatNumber *string `json:"vat_number"` BirthDate *string `json:"birth_date"` IdCard *string `json:"id_card"` Organisation *string `json:"organisation"` Type string `json:"type"` BirthCountryCode *string `json:"birth_country_code"` ProjectId string `json:"project_id"` Street string `json:"street"` TaxNumber *string `json:"tax_number"` Fax *string `json:"fax"` IdCardAuthority *string `json:"id_card_authority"` FirstName string `json:"first_name"` Email string `json:"email"` AdditionalAddress *string `json:"additional_address"` LastName string `json:"last_name"` BirthPlace *string `json:"birth_place"` IdCardIssueDate *string `json:"id_card_issue_date"` Labels map[string]*string `json:"labels"` CountryCode string `json:"country_code"` CompanyRegistrationNumber *string `json:"company_registration_number"` Phone *string `json:"phone"` StreetNumber string `json:"street_number"` PostalCode string `json:"postal_code"` Region *string `json:"region"` PrivacyProtection *bool `json:"privacy_protection"` }
type DomainHandleListResponse ¶
type DomainHandleListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []DomainHandle `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type DomainHandleSingleResponse ¶
type DomainHandleSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data DomainHandle `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type DomainHandleUpdateRequest ¶
type DomainHandleUpdateRequest struct { AdditionalAddress *string `json:"additional_address"` BirthRegion *string `json:"birth_region"` City *string `json:"city"` VatNumber *string `json:"vat_number"` BirthDate *string `json:"birth_date"` IdCard *string `json:"id_card"` BirthPlace *string `json:"birth_place"` IdCardIssueDate *string `json:"id_card_issue_date"` Labels map[string]*string `json:"labels"` BirthCountryCode *string `json:"birth_country_code"` CountryCode *string `json:"country_code"` CompanyRegistrationNumber *string `json:"company_registration_number"` Phone *string `json:"phone"` Street *string `json:"street"` TaxNumber *string `json:"tax_number"` StreetNumber *string `json:"street_number"` PostalCode *string `json:"postal_code"` Region *string `json:"region"` Fax *string `json:"fax"` IdCardAuthority *string `json:"id_card_authority"` PrivacyProtection *bool `json:"privacy_protection"` Email *string `json:"email"` }
type DomainListResponse ¶
type DomainListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []Domain `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type DomainPriceListResponse ¶
type DomainPriceListResponse struct { Metadata ResponseMetadata `json:"metadata"` Data []DomainPricing `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type DomainPricing ¶
type DomainRequestNameserver ¶
type DomainScheduleDeleteRequest ¶
type DomainScheduleDeleteRequest struct {
Date string `json:"date"`
}
type DomainSingleResponse ¶
type DomainSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data Domain `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type DomainStatus ¶
type DomainStatus string
type DomainUpdateRequest ¶
type DomainUpdateRequest struct { AdminHandleCode *string `json:"admin_handle_code"` OwnerHandleCode *string `json:"owner_handle_code"` TechHandleCode *string `json:"tech_handle_code"` Nameserver *[]DomainRequestNameserver `json:"nameserver"` ZoneHandleCode *string `json:"zone_handle_code"` Labels map[string]*string `json:"labels"` }
type DomainVerificationStatus ¶
type DomainVerificationStatus struct {
Unverified bool `json:"unverified"`
}
type EmptyResponse ¶
type EmptyResponse struct { Metadata ResponseMetadata `json:"metadata"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type GetDNSZonesQueryParams ¶
type GetDNSZonesQueryParams struct { Order *string `url:"order,omitempty"` Filter *GetDNSZonesQueryParamsFilter `url:"filter,omitempty"` PageSize *int `url:"page_size,omitempty"` OrderBy *string `url:"order_by,omitempty"` Search *string `url:"search,omitempty"` Page *int `url:"page,omitempty"` WithLabels *bool `url:"with_labels,omitempty"` }
type GetDomainHandlesQueryParams ¶
type GetDomainHandlesQueryParams struct { Order *string `url:"order,omitempty"` Filter *GetDomainHandlesQueryParamsFilter `url:"filter,omitempty"` PageSize *int `url:"page_size,omitempty"` OrderBy *string `url:"order_by,omitempty"` Search *string `url:"search,omitempty"` Page *int `url:"page,omitempty"` WithLabels *bool `url:"with_labels,omitempty"` }
type GetDomainPricingListQueryParams ¶
type GetDomainPricingListQueryParams struct {
ProjectId *string `url:"project_id,omitempty"`
}
type GetDomainsQueryParams ¶
type GetDomainsQueryParams struct { Order *string `url:"order,omitempty"` Filter *GetDomainsQueryParamsFilter `url:"filter,omitempty"` PageSize *int `url:"page_size,omitempty"` OrderBy *string `url:"order_by,omitempty"` Search *string `url:"search,omitempty"` Page *int `url:"page,omitempty"` WithLabels *bool `url:"with_labels,omitempty"` }
type GetDomainsQueryParamsFilter ¶
type GetDomainsQueryParamsFilter struct { AdminHandleCode *string `url:"admin_handle_code,omitempty"` ZoneHandleCode *string `url:"zone_handle_code,omitempty"` ProjectId *string `url:"project_id,omitempty"` Labels map[string]*string `url:"labels,omitempty"` OwnerHandleCode *string `url:"owner_handle_code,omitempty"` TechHandleCode *string `url:"tech_handle_code,omitempty"` Tld *string `url:"tld,omitempty"` }
type GetLabelsQueryParams ¶
type GetLabelsQueryParams struct { Filter *GetLabelsQueryParamsFilter `url:"filter,omitempty"` PageSize *int `url:"page_size,omitempty"` Search *string `url:"search,omitempty"` Page *int `url:"page,omitempty"` }
type InvalidRequestResponse ¶
type InvalidRequestResponse struct { Metadata ResponseMetadata `json:"metadata"` Data interface{} `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type Label ¶
type Label struct { ObjectType ObjectType `json:"object_type"` Name string `json:"name"` Value string `json:"value"` ObjectId string `json:"object_id"` }
type LabelListResponse ¶
type LabelListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []Label `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type ObjectType ¶
type ObjectType string
type ResponseMessage ¶
type ResponseMessages ¶
type ResponseMessages struct { Warnings []ResponseMessage `json:"warnings"` Errors []ResponseMessage `json:"errors"` Infos []ResponseMessage `json:"infos"` }
type ResponseMetadata ¶
type ResponsePagination ¶
type SearchQueryParams ¶
type SearchQueryParams struct { Search *string `url:"search,omitempty"` ProjectId *string `url:"project_id,omitempty"` Resources *string `url:"resources,omitempty"` Limit *int `url:"limit,omitempty"` WithLabels *bool `url:"with_labels,omitempty"` Labels *SearchQueryParamsLabels `url:"labels,omitempty"` }
type SearchQueryParamsLabels ¶
type SearchResponse ¶
type SearchResponse struct { Metadata ResponseMetadata `json:"metadata"` Data SearchResults `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type SearchResults ¶
type SearchResults struct { Domains *[]Domain `json:"domains"` DomainHandles *[]DomainHandle `json:"domain_handles"` }
Click to show internal directories.
Click to hide internal directories.