qiniu

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 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 BindBucketCertRequest added in v0.3.22

type BindBucketCertRequest struct {
	CertID string `json:"certid"`
	Domain string `json:"domain"`
}

type BindBucketCertResponse added in v0.3.22

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

type CdnManager

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

func NewCdnManager

func NewCdnManager(mac *auth.Credentials) *CdnManager

func (*CdnManager) EnableDomainHttps

func (m *CdnManager) EnableDomainHttps(ctx context.Context, domain string, certId string, forceHttps bool, http2Enable bool) (*EnableDomainHttpsResponse, error)

func (*CdnManager) GetDomainInfo

func (m *CdnManager) GetDomainInfo(ctx context.Context, domain string) (*GetDomainInfoResponse, error)

func (*CdnManager) GetDomainList added in v0.4.5

func (m *CdnManager) GetDomainList(ctx context.Context, marker string, limit int) (*GetDomainListResponse, error)

func (*CdnManager) ModifyDomainHttpsConf

func (m *CdnManager) ModifyDomainHttpsConf(ctx context.Context, domain string, certId string, forceHttps bool, http2Enable bool) (*ModifyDomainHttpsConfResponse, error)

type EnableDomainHttpsRequest

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

type EnableDomainHttpsResponse

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

type GetDomainInfoResponse

type GetDomainInfoResponse struct {
	Code  *int    `json:"code,omitempty"`
	Error *string `json:"error,omitempty"`
	Name  string  `json:"name"`
	Type  string  `json:"type"`
	CName string  `json:"cname"`
	Https *struct {
		CertID      string `json:"certId"`
		ForceHttps  bool   `json:"forceHttps"`
		Http2Enable bool   `json:"http2Enable"`
	} `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 GetDomainListResponse added in v0.4.5

type GetDomainListResponse struct {
	Code    *int    `json:"code,omitempty"`
	Error   *string `json:"error,omitempty"`
	Marker  string  `json:"marker"`
	Domains []*struct {
		Name               string `json:"name"`
		Type               string `json:"type"`
		CName              string `json:"cname"`
		OperatingState     string `json:"operatingState"`
		OperatingStateDesc string `json:"operatingStateDesc"`
		CreateAt           string `json:"createAt"`
		ModifyAt           string `json:"modifyAt"`
	} `json:"domains"`
}

type GetSslCertListResponse added in v0.3.22

type GetSslCertListResponse struct {
	Code  *int    `json:"code,omitempty"`
	Error *string `json:"error,omitempty"`
	Certs []*struct {
		CertID           string   `json:"certid"`
		Name             string   `json:"name"`
		CommonName       string   `json:"common_name"`
		DnsNames         []string `json:"dnsnames"`
		CreateTime       int64    `json:"create_time"`
		NotBefore        int64    `json:"not_before"`
		NotAfter         int64    `json:"not_after"`
		ProductType      string   `json:"product_type"`
		ProductShortName string   `json:"product_short_name,omitempty"`
		OrderId          string   `json:"orderid,omitempty"`
		CertType         string   `json:"cert_type"`
		Encrypt          string   `json:"encrypt"`
		EncryptParameter string   `json:"encryptParameter,omitempty"`
		Enable           bool     `json:"enable"`
	} `json:"certs"`
	Marker string `json:"marker"`
}

type KodoManager added in v0.3.22

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

func NewKodoManager added in v0.3.22

func NewKodoManager(mac *auth.Credentials) *KodoManager

func (*KodoManager) BindBucketCert added in v0.3.22

func (m *KodoManager) BindBucketCert(ctx context.Context, domain string, certId string) (*BindBucketCertResponse, error)

type ModifyDomainHttpsConfRequest

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

type ModifyDomainHttpsConfResponse

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

type SslCertManager added in v0.3.22

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

func NewSslCertManager added in v0.3.22

func NewSslCertManager(mac *auth.Credentials) *SslCertManager

func (*SslCertManager) GetSslCertList added in v0.3.22

func (m *SslCertManager) GetSslCertList(ctx context.Context, marker string, limit int32) (*GetSslCertListResponse, error)

func (*SslCertManager) UploadSslCert added in v0.3.22

func (m *SslCertManager) UploadSslCert(ctx context.Context, name string, commonName string, certificate string, privateKey string) (*UploadSslCertResponse, error)

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 {
	Code   *int    `json:"code,omitempty"`
	Error  *string `json:"error,omitempty"`
	CertID string  `json:"certID"`
}

Jump to

Keyboard shortcuts

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