domain

package
v0.0.0-...-de483c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSRecord

type DNSRecord struct {
	Data string `json:"data"`
	Name string `json:"name"`
	Id   string `json:"id"`
	Type string `json:"type"`
	Ttl  *int   `json:"ttl"`
}

type DNSRecordCreateRequest

type DNSRecordCreateRequest struct {
	Data string `json:"data"`
	Name string `json:"name"`
	Type string `json:"type"`
	Ttl  *int   `json:"ttl"`
}

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 DNSRecordUpdateRequest struct {
	Data string `json:"data"`
	Name string `json:"name"`
	Type string `json:"type"`
	Ttl  *int   `json:"ttl"`
}

type DNSRecordsUpdateRequest

type DNSRecordsUpdateRequest []struct {
	Data string `url:"data,omitempty"`
	Name string `url:"name,omitempty"`
	Type string `url:"type,omitempty"`
	Ttl  int    `url:"ttl,omitempty"`
}

type DNSZone

type DNSZone struct {
	Hostmaster string             `json:"hostmaster"`
	ProjectId  string             `json:"project_id"`
	Name       string             `json:"name"`
	CreatedAt  string             `json:"created_at"`
	Type       string             `json:"type"`
	Ns2        string             `json:"ns2"`
	Ns1        string             `json:"ns1"`
	Labels     map[string]*string `json:"labels"`
}

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 DNSZoneUpdateRequest struct {
	Hostmaster *string            `json:"hostmaster"`
	Ns2        *string            `json:"ns2"`
	Ns1        *string            `json:"ns1"`
	Labels     map[string]*string `json:"labels"`
}

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 DomainAuthinfo struct {
	ValidUntil *string `json:"valid_until"`
	Authinfo   string  `json:"authinfo"`
}

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 (DomainClient) CreateDomain

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 (DomainClient) GetDNSZones

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 (DomainClient) GetDomainPricingList

func (DomainClient) GetDomains

func (DomainClient) GetLabels

func (DomainClient) RemoveDomainAuthinfo

func (c DomainClient) RemoveDomainAuthinfo(name string) (EmptyResponse, *http.Response, error)

func (*DomainClient) Request

func (c *DomainClient) Request(method string, path string, postBody io.Reader) (*http.Response, []byte, error)

func (DomainClient) RestoreDomain

func (c DomainClient) RestoreDomain(name string) (EmptyResponse, *http.Response, error)

func (DomainClient) ScheduleDomainDelete

func (DomainClient) Search

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 (DomainClient) UpdateDNSZone

func (DomainClient) UpdateDNSZoneRecords

func (c DomainClient) UpdateDNSZoneRecords(in DNSRecordsUpdateRequest, name string) (DNSRecordListResponse, *http.Response, error)

func (DomainClient) UpdateDomain

func (DomainClient) UpdateDomainHandle

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 DomainPricing struct {
	Restore *float32 `json:"restore"`
	Create  *float32 `json:"create"`
	Renew   *float32 `json:"renew"`
	Tld     string   `json:"tld"`
}

type DomainRequestNameserver

type DomainRequestNameserver struct {
	Addresses *[]string `json:"addresses"`
	Name      string    `json:"name"`
}

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 GetDNSZoneRecordsQueryParams

type GetDNSZoneRecordsQueryParams struct {
	Order    *string `url:"order,omitempty"`
	PageSize *int    `url:"page_size,omitempty"`
	OrderBy  *string `url:"order_by,omitempty"`
	Page     *int    `url:"page,omitempty"`
}

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 GetDNSZonesQueryParamsFilter

type GetDNSZonesQueryParamsFilter struct {
	ProjectId *string            `url:"project_id,omitempty"`
	Labels    map[string]*string `url:"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 GetDomainHandlesQueryParamsFilter

type GetDomainHandlesQueryParamsFilter struct {
	ProjectId *string            `url:"project_id,omitempty"`
	Labels    map[string]*string `url:"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 GetLabelsQueryParamsFilter

type GetLabelsQueryParamsFilter struct {
	ObjectType *string `url:"object_type,omitempty"`
	ProjectId  *string `url:"project_id,omitempty"`
	Value      *string `url:"value,omitempty"`
	Name       *string `url:"name,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 ResponseMessage struct {
	Message string `json:"message"`
	Key     string `json:"key"`
}

type ResponseMessages

type ResponseMessages struct {
	Warnings []ResponseMessage `json:"warnings"`
	Errors   []ResponseMessage `json:"errors"`
	Infos    []ResponseMessage `json:"infos"`
}

type ResponseMetadata

type ResponseMetadata struct {
	TransactionId  string `json:"transaction_id"`
	BuildCommit    string `json:"build_commit"`
	BuildTimestamp string `json:"build_timestamp"`
}

type ResponsePagination

type ResponsePagination struct {
	Total    int `json:"total"`
	Page     int `json:"page"`
	PageSize int `json:"page_size"`
}

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 SearchQueryParamsLabels struct {
	Name map[string]*string `url:"name,omitempty"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL