Documentation
¶
Overview ¶
A simple SDK client for Linode. API documentation: https://techdocs.akamai.com/linode-api/reference/api
Index ¶
- type Client
- func (c *Client) CreateDomainRecord(domainId int, req *CreateDomainRecordRequest) (*CreateDomainRecordResponse, error)
- func (c *Client) CreateDomainRecordWithContext(ctx context.Context, domainId int, req *CreateDomainRecordRequest) (*CreateDomainRecordResponse, error)
- func (c *Client) DeleteDomainRecord(domainId int, recordId int) (*DeleteDomainRecordResponse, error)
- func (c *Client) DeleteDomainRecordWithContext(ctx context.Context, domainId int, recordId int) (*DeleteDomainRecordResponse, error)
- func (c *Client) DeleteObjectStorageSSL(regionId string, bucket string) (*DeleteObjectStorageSSLResponse, error)
- func (c *Client) DeleteObjectStorageSSLWithContext(ctx context.Context, regionId string, bucket string) (*DeleteObjectStorageSSLResponse, error)
- func (c *Client) GetObjectStorageSSL(regionId string, bucket string) (*GetObjectStorageSSLResponse, error)
- func (c *Client) GetObjectStorageSSLWithContext(ctx context.Context, regionId string, bucket string) (*GetObjectStorageSSLResponse, error)
- func (c *Client) ListDomains(req *ListDomainsRequest) (*ListDomainsResponse, error)
- func (c *Client) ListDomainsWithContext(ctx context.Context, req *ListDomainsRequest) (*ListDomainsResponse, error)
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- func (c *Client) UploadObjectStorageSSL(regionId string, bucket string, req *UploadObjectStorageSSLRequest) (*UploadObjectStorageSSLResponse, error)
- func (c *Client) UploadObjectStorageSSLWithContext(ctx context.Context, regionId string, bucket string, ...) (*UploadObjectStorageSSLResponse, error)
- type CreateDomainRecordRequest
- type CreateDomainRecordResponse
- type DeleteDomainRecordResponse
- type DeleteObjectStorageSSLResponse
- type Domain
- type DomainRecord
- type GetObjectStorageSSLResponse
- type ListDomainsRequest
- type ListDomainsResponse
- type Options
- type OptionsFunc
- type UploadObjectStorageSSLRequest
- type UploadObjectStorageSSLResponse
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) CreateDomainRecord ¶
func (c *Client) CreateDomainRecord(domainId int, req *CreateDomainRecordRequest) (*CreateDomainRecordResponse, error)
func (*Client) CreateDomainRecordWithContext ¶
func (c *Client) CreateDomainRecordWithContext(ctx context.Context, domainId int, req *CreateDomainRecordRequest) (*CreateDomainRecordResponse, error)
func (*Client) DeleteDomainRecord ¶
func (c *Client) DeleteDomainRecord(domainId int, recordId int) (*DeleteDomainRecordResponse, error)
func (*Client) DeleteDomainRecordWithContext ¶
func (*Client) DeleteObjectStorageSSL ¶ added in v0.4.26
func (c *Client) DeleteObjectStorageSSL(regionId string, bucket string) (*DeleteObjectStorageSSLResponse, error)
func (*Client) DeleteObjectStorageSSLWithContext ¶ added in v0.4.26
func (*Client) GetObjectStorageSSL ¶ added in v0.4.26
func (c *Client) GetObjectStorageSSL(regionId string, bucket string) (*GetObjectStorageSSLResponse, error)
func (*Client) GetObjectStorageSSLWithContext ¶ added in v0.4.26
func (*Client) ListDomains ¶
func (c *Client) ListDomains(req *ListDomainsRequest) (*ListDomainsResponse, error)
func (*Client) ListDomainsWithContext ¶
func (c *Client) ListDomainsWithContext(ctx context.Context, req *ListDomainsRequest) (*ListDomainsResponse, error)
func (*Client) UploadObjectStorageSSL ¶ added in v0.4.26
func (c *Client) UploadObjectStorageSSL(regionId string, bucket string, req *UploadObjectStorageSSLRequest) (*UploadObjectStorageSSLResponse, error)
func (*Client) UploadObjectStorageSSLWithContext ¶ added in v0.4.26
func (c *Client) UploadObjectStorageSSLWithContext(ctx context.Context, regionId string, bucket string, req *UploadObjectStorageSSLRequest) (*UploadObjectStorageSSLResponse, error)
type CreateDomainRecordRequest ¶
type CreateDomainRecordRequest DomainRecord
type CreateDomainRecordResponse ¶
type CreateDomainRecordResponse struct {
DomainRecord `json:",inline"`
// contains filtered or unexported fields
}
func (*CreateDomainRecordResponse) GetAPIError ¶
func (r *CreateDomainRecordResponse) GetAPIError() error
type DeleteDomainRecordResponse ¶
type DeleteDomainRecordResponse struct {
// contains filtered or unexported fields
}
func (*DeleteDomainRecordResponse) GetAPIError ¶
func (r *DeleteDomainRecordResponse) GetAPIError() error
type DeleteObjectStorageSSLResponse ¶ added in v0.4.26
type DeleteObjectStorageSSLResponse struct {
// contains filtered or unexported fields
}
func (*DeleteObjectStorageSSLResponse) GetAPIError ¶ added in v0.4.26
func (r *DeleteObjectStorageSSLResponse) GetAPIError() error
type Domain ¶
type Domain struct {
ID *int `json:"id,omitempty"`
Domain *string `json:"domain,omitempty"`
Type *string `json:"type,omitempty"`
Group *string `json:"group,omitempty"`
Status *string `json:"status,omitempty"`
Description *string `json:"description,omitempty"`
SOAEmail *string `json:"soa_email,omitempty"`
RetrySec *int `json:"retry_sec,omitempty"`
MasterIPs []*string `json:"master_ips,omitempty"`
AXfrIPs []*string `json:"axfr_ips,omitempty"`
Tags []*string `json:"tags,omitempty"`
ExpireSec *int `json:"expire_sec,omitempty"`
RefreshSec *int `json:"refresh_sec,omitempty"`
TTLSec *int `json:"ttl_sec,omitempty"`
}
type DomainRecord ¶
type DomainRecord struct {
ID *int `json:"id,omitempty"`
Type *string `json:"type,omitempty"`
Name *string `json:"name,omitempty"`
Target *string `json:"target,omitempty"`
Priority *int `json:"priority,omitempty"`
Weight *int `json:"weight,omitempty"`
Port *int `json:"port,omitempty"`
Service *string `json:"service,omitempty"`
Protocol *string `json:"protocol,omitempty"`
TTLSec *int `json:"ttl_sec,omitempty"`
Tag *string `json:"tag,omitempty"`
}
type GetObjectStorageSSLResponse ¶ added in v0.4.26
type GetObjectStorageSSLResponse struct {
SSL bool `json:"ssl"`
// contains filtered or unexported fields
}
func (*GetObjectStorageSSLResponse) GetAPIError ¶ added in v0.4.26
func (r *GetObjectStorageSSLResponse) GetAPIError() error
type ListDomainsRequest ¶
type ListDomainsResponse ¶
type ListDomainsResponse struct {
Data []*Domain `json:"data,omitempty"`
Page int `json:"page,omitempty"`
Pages int `json:"pages,omitempty"`
Results int `json:"results,omitempty"`
// contains filtered or unexported fields
}
func (*ListDomainsResponse) GetAPIError ¶
func (r *ListDomainsResponse) GetAPIError() error
type OptionsFunc ¶
type OptionsFunc func(*Options)
func WithAccessToken ¶
func WithAccessToken(accessToken string) OptionsFunc
type UploadObjectStorageSSLRequest ¶ added in v0.4.26
type UploadObjectStorageSSLRequest struct {
Certificate string `json:"certificate"`
PrivateKey string `json:"private_key"`
// contains filtered or unexported fields
}
func (*UploadObjectStorageSSLRequest) GetAPIError ¶ added in v0.4.26
func (r *UploadObjectStorageSSLRequest) GetAPIError() error
type UploadObjectStorageSSLResponse ¶ added in v0.4.26
type UploadObjectStorageSSLResponse struct {
SSL bool `json:"ssl"`
// contains filtered or unexported fields
}
func (*UploadObjectStorageSSLResponse) GetAPIError ¶ added in v0.4.26
func (r *UploadObjectStorageSSLResponse) GetAPIError() error
Click to show internal directories.
Click to hide internal directories.