Documentation
¶
Index ¶
- type Client
- func (c *Client) DnsCreateRecord(domainId string, req *DnsCreateRecordRequest) (*DnsCreateRecordResponse, error)
- func (c *Client) DnsCreateRecordWithContext(ctx context.Context, domainId string, req *DnsCreateRecordRequest) (*DnsCreateRecordResponse, error)
- func (c *Client) DnsDeleteRecord(domainId string, recordId string) (*DnsDeleteRecordResponse, error)
- func (c *Client) DnsDeleteRecordWithContext(ctx context.Context, domainId string, recordId string) (*DnsDeleteRecordResponse, error)
- func (c *Client) DnsGetDomainsList(req *DnsGetDomainsListRequest) (*DnsGetDomainsListResponse, error)
- func (c *Client) DnsGetDomainsListWithContext(ctx context.Context, req *DnsGetDomainsListRequest) (*DnsGetDomainsListResponse, error)
- func (c *Client) SetTLSConfig(config *tls.Config) *Client
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- type DnsCreateRecordRequest
- type DnsCreateRecordResponse
- type DnsDeleteRecordResponse
- type DnsGetDomainsListRequest
- type DnsGetDomainsListResponse
- type Domain
- type Options
- type OptionsFunc
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 NewClient ¶
func NewClient(optFns ...OptionsFunc) (*Client, error)
func (*Client) DnsCreateRecord ¶
func (c *Client) DnsCreateRecord(domainId string, req *DnsCreateRecordRequest) (*DnsCreateRecordResponse, error)
func (*Client) DnsCreateRecordWithContext ¶
func (c *Client) DnsCreateRecordWithContext(ctx context.Context, domainId string, req *DnsCreateRecordRequest) (*DnsCreateRecordResponse, error)
func (*Client) DnsDeleteRecord ¶
func (c *Client) DnsDeleteRecord(domainId string, recordId string) (*DnsDeleteRecordResponse, error)
func (*Client) DnsDeleteRecordWithContext ¶
func (*Client) DnsGetDomainsList ¶
func (c *Client) DnsGetDomainsList(req *DnsGetDomainsListRequest) (*DnsGetDomainsListResponse, error)
func (*Client) DnsGetDomainsListWithContext ¶
func (c *Client) DnsGetDomainsListWithContext(ctx context.Context, req *DnsGetDomainsListRequest) (*DnsGetDomainsListResponse, error)
type DnsCreateRecordRequest ¶
type DnsCreateRecordResponse ¶
type DnsCreateRecordResponse struct {
UUID string `json:"uuid"`
DomainUUID string `json:"domain_uuid"`
Name string `json:"name"`
Type string `json:"type"`
Data string `json:"data"`
TTL int `json:"ttl"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
// contains filtered or unexported fields
}
type DnsDeleteRecordResponse ¶
type DnsDeleteRecordResponse struct {
// contains filtered or unexported fields
}
type DnsGetDomainsListRequest ¶
type DnsGetDomainsListRequest struct {
Limit *int `json:"limit,omitempty" url:"limit,omitempty"`
Offset *int `json:"offset,omitempty" url:"offset,omitempty"`
SortType *string `json:"sort_type,omitempty" url:"sort_type,omitempty"`
SortKey *string `json:"sort_key,omitempty" url:"sort_key,omitempty"`
}
type DnsGetDomainsListResponse ¶
type OptionsFunc ¶
type OptionsFunc func(*Options)
func WithTenantId ¶
func WithTenantId(tenantId string) OptionsFunc
func WithTenantName ¶
func WithTenantName(tenantName string) OptionsFunc
func WithUserId ¶
func WithUserId(userId string) OptionsFunc
func WithUserName ¶
func WithUserName(userName string) OptionsFunc
func WithUserPassword ¶
func WithUserPassword(userPassword string) OptionsFunc
Click to show internal directories.
Click to hide internal directories.