qiniusdk

package
v0.3.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse added in v0.2.14

type BaseResponse struct {
	Code  *int    `json:"code,omitempty"`
	Error *string `json:"error,omitempty"`
}

type Client

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

func NewClient

func NewClient(mac *auth.Credentials) *Client

func (*Client) EnableDomainHttps

func (c *Client) EnableDomainHttps(domain, certId string, forceHttps, http2Enable bool) (*EnableDomainHttpsResponse, error)

func (*Client) GetDomainInfo

func (c *Client) GetDomainInfo(domain string) (*GetDomainInfoResponse, error)

func (*Client) ModifyDomainHttpsConf

func (c *Client) ModifyDomainHttpsConf(domain, certId string, forceHttps, http2Enable bool) (*ModifyDomainHttpsConfResponse, error)

func (*Client) UploadSslCert

func (c *Client) UploadSslCert(name, commonName, certificate, privateKey string) (*UploadSslCertResponse, error)

type DomainInfoHttpsData

type DomainInfoHttpsData struct {
	CertID      string `json:"certId"`
	ForceHttps  bool   `json:"forceHttps"`
	Http2Enable bool   `json:"http2Enable"`
}

type EnableDomainHttpsRequest

type EnableDomainHttpsRequest struct {
	DomainInfoHttpsData
}

type EnableDomainHttpsResponse

type EnableDomainHttpsResponse struct {
	BaseResponse
}

type GetDomainInfoResponse

type GetDomainInfoResponse struct {
	BaseResponse
	Name               string               `json:"name"`
	Type               string               `json:"type"`
	CName              string               `json:"cname"`
	Https              *DomainInfoHttpsData `json:"https"`
	PareDomain         string               `json:"pareDomain"`
	OperationType      string               `json:"operationType"`
	OperatingState     string               `json:"operatingState"`
	OperatingStateDesc string               `json:"operatingStateDesc"`
	CreateAt           string               `json:"createAt"`
	ModifyAt           string               `json:"modifyAt"`
}

type ModifyDomainHttpsConfRequest

type ModifyDomainHttpsConfRequest struct {
	DomainInfoHttpsData
}

type ModifyDomainHttpsConfResponse

type ModifyDomainHttpsConfResponse struct {
	BaseResponse
}

type UploadSslCertRequest

type UploadSslCertRequest struct {
	Name        string `json:"name"`
	CommonName  string `json:"common_name"`
	Certificate string `json:"ca"`
	PrivateKey  string `json:"pri"`
}

type UploadSslCertResponse

type UploadSslCertResponse struct {
	*BaseResponse
	CertID string `json:"certID"`
}

Jump to

Keyboard shortcuts

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