asiaispcdn

package
v0.4.35 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

A simple SDK client for Asia-ISP CDN.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	CertId string `json:"certId"`
	Name   string `json:"name"`
}

type CertificateDetail

type CertificateDetail struct {
	Certificate

	PrivateKey  string `json:"privateKey"`
	PublicKey   string `json:"publicKey"`
	SubjectName string `json:"subjectName"`
	Brand       string `json:"brand"`
	IssueTime   string `json:"issueTime"`
	ExpireTime  string `json:"expireTime"`
}

type CertificateQueryListResponse

type CertificateQueryListResponse struct {
	Data []*Certificate `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CertificateQueryListResponse) GetCode

func (r *CertificateQueryListResponse) GetCode() int

func (*CertificateQueryListResponse) GetMsg

func (r *CertificateQueryListResponse) GetMsg() string

type CertificateQueryResponse

type CertificateQueryResponse struct {
	Data *CertificateDetail `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CertificateQueryResponse) GetCode

func (r *CertificateQueryResponse) GetCode() int

func (*CertificateQueryResponse) GetMsg

func (r *CertificateQueryResponse) GetMsg() string

type CertificateUploadRequest

type CertificateUploadRequest struct {
	PublicKey  *string `json:"publicKey,omitempty"`
	PrivateKey *string `json:"privateKey,omitempty"`
	Name       *string `json:"name,omitempty"`
}

type CertificateUploadResponse

type CertificateUploadResponse struct {
	Data json.Number `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CertificateUploadResponse) GetCode

func (r *CertificateUploadResponse) GetCode() int

func (*CertificateUploadResponse) GetMsg

func (r *CertificateUploadResponse) GetMsg() string

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(optFns ...OptionsFunc) (*Client, error)

func (*Client) CertificateQuery

func (c *Client) CertificateQuery(certId string) (*CertificateQueryResponse, error)

func (*Client) CertificateQueryList

func (c *Client) CertificateQueryList() (*CertificateQueryListResponse, error)

func (*Client) CertificateQueryListWithContext

func (c *Client) CertificateQueryListWithContext(ctx context.Context) (*CertificateQueryListResponse, error)

func (*Client) CertificateQueryWithContext

func (c *Client) CertificateQueryWithContext(ctx context.Context, certId string) (*CertificateQueryResponse, error)

func (*Client) CertificateUpload

func (c *Client) CertificateUpload(req *CertificateUploadRequest) (*CertificateUploadResponse, error)

func (*Client) CertificateUploadWithContext

func (c *Client) CertificateUploadWithContext(ctx context.Context, req *CertificateUploadRequest) (*CertificateUploadResponse, error)

func (*Client) DomainModify

func (c *Client) DomainModify(req *DomainModifyRequest) (*DomainModifyResponse, error)

func (*Client) DomainModifyWithContext

func (c *Client) DomainModifyWithContext(ctx context.Context, req *DomainModifyRequest) (*DomainModifyResponse, error)

func (*Client) DomainQueryList

func (c *Client) DomainQueryList(req *DomainQueryListRequest) (*DomainQueryListResponse, error)

func (*Client) DomainQueryListWithContext

func (c *Client) DomainQueryListWithContext(ctx context.Context, req *DomainQueryListRequest) (*DomainQueryListResponse, error)

func (*Client) SetTLSConfig

func (c *Client) SetTLSConfig(config *tls.Config) *Client

func (*Client) SetTimeout

func (c *Client) SetTimeout(timeout time.Duration) *Client

type Domain

type Domain struct {
	Domain          string `json:"domain"`
	ServiceType     string `json:"serviceType"`
	Scope           string `json:"scope"`
	Cname           string `json:"cname"`
	ICP             string `json:"icp"`
	Protocol        string `json:"protocol"`
	CertId          int64  `json:"certId"`
	OriginProtocol  string `json:"originProtocol"`
	OriginHost      string `json:"originHost"`
	OriginType      string `json:"originType"`
	OriginAddr      string `json:"originAddr"`
	OriginBackAddr  string `json:"originBackAddr"`
	DomainStatus    int32  `json:"domainStatus"`
	OperatingStatus int32  `json:"operatingStatus"`
}

type DomainModifyRequest

type DomainModifyRequest struct {
	Domain   *string `json:"domain,omitempty"`
	Protocol *string `json:"protocol,omitempty"`
	CertId   *int64  `json:"certId,omitempty"`
}

type DomainModifyResponse

type DomainModifyResponse struct {
	Data int64 `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DomainModifyResponse) GetCode

func (r *DomainModifyResponse) GetCode() int

func (*DomainModifyResponse) GetMsg

func (r *DomainModifyResponse) GetMsg() string

type DomainQueryListRequest

type DomainQueryListRequest struct {
	Domain     *string `json:"domain,omitempty"     url:"domain,omitempty"`
	SubDomain  *bool   `json:"subDomain,omitempty"  url:"subDomain,omitempty"`
	LiveDomain *bool   `json:"liveDomain,omitempty" url:"liveDomain,omitempty"`
}

type DomainQueryListResponse

type DomainQueryListResponse struct {
	Data []*Domain `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DomainQueryListResponse) GetCode

func (r *DomainQueryListResponse) GetCode() int

func (*DomainQueryListResponse) GetMsg

func (r *DomainQueryListResponse) GetMsg() string

type Options

type Options struct {
	AccessKeyId     string
	AccessKeySecret string
}

type OptionsFunc

type OptionsFunc func(*Options)

func WithAkSk

func WithAkSk(ak, sk string) OptionsFunc

Jump to

Keyboard shortcuts

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