rainyun

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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(apiKey string) (*Client, error)

func (*Client) RcdnInstanceSslBind

func (c *Client) RcdnInstanceSslBind(instanceId int64, req *RcdnInstanceSslBindRequest) (*RcdnInstanceSslBindResponse, error)

func (*Client) RcdnInstanceSslBindWithContext

func (c *Client) RcdnInstanceSslBindWithContext(ctx context.Context, instanceId int64, req *RcdnInstanceSslBindRequest) (*RcdnInstanceSslBindResponse, error)

func (*Client) SetTimeout

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

func (*Client) SslCenterCreate

func (c *Client) SslCenterCreate(req *SslCenterCreateRequest) (*SslCenterCreateResponse, error)

func (*Client) SslCenterCreateWithContext

func (c *Client) SslCenterCreateWithContext(ctx context.Context, req *SslCenterCreateRequest) (*SslCenterCreateResponse, error)

func (*Client) SslCenterGet

func (c *Client) SslCenterGet(sslId int64) (*SslCenterGetResponse, error)

func (*Client) SslCenterGetWithContext

func (c *Client) SslCenterGetWithContext(ctx context.Context, sslId int64) (*SslCenterGetResponse, error)

func (*Client) SslCenterList

func (c *Client) SslCenterList(req *SslCenterListRequest) (*SslCenterListResponse, error)

func (*Client) SslCenterListWithContext

func (c *Client) SslCenterListWithContext(ctx context.Context, req *SslCenterListRequest) (*SslCenterListResponse, error)

func (*Client) SslCenterUpdate added in v0.4.5

func (c *Client) SslCenterUpdate(certId int64, req *SslCenterUpdateRequest) (*SslCenterUpdateResponse, error)

func (*Client) SslCenterUpdateWithContext added in v0.4.5

func (c *Client) SslCenterUpdateWithContext(ctx context.Context, certId int64, req *SslCenterUpdateRequest) (*SslCenterUpdateResponse, error)

type RcdnInstanceSslBindRequest

type RcdnInstanceSslBindRequest struct {
	CertId  int64    `json:"cert_id"`
	Domains []string `json:"domains"`
}

type RcdnInstanceSslBindResponse

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

func (*RcdnInstanceSslBindResponse) GetCode

func (r *RcdnInstanceSslBindResponse) GetCode() int32

func (*RcdnInstanceSslBindResponse) GetMessage

func (r *RcdnInstanceSslBindResponse) GetMessage() string

type SslCenterCreateRequest

type SslCenterCreateRequest struct {
	Cert string `json:"cert"`
	Key  string `json:"key"`
}

type SslCenterCreateResponse

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

func (*SslCenterCreateResponse) GetCode

func (r *SslCenterCreateResponse) GetCode() int32

func (*SslCenterCreateResponse) GetMessage

func (r *SslCenterCreateResponse) GetMessage() string

type SslCenterGetResponse

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

func (*SslCenterGetResponse) GetCode

func (r *SslCenterGetResponse) GetCode() int32

func (*SslCenterGetResponse) GetMessage

func (r *SslCenterGetResponse) GetMessage() string

type SslCenterListFilters

type SslCenterListFilters struct {
	Domain *string `json:"Domain,omitempty"`
}

type SslCenterListRequest

type SslCenterListRequest struct {
	Filters *SslCenterListFilters `json:"columnFilters,omitempty"`
	Sort    []*string             `json:"sort,omitempty"`
	Page    *int32                `json:"page,omitempty"`
	PerPage *int32                `json:"perPage,omitempty"`
}

type SslCenterListResponse

type SslCenterListResponse struct {
	Data *struct {
		TotalRecords int32        `json:"TotalRecords"`
		Records      []*SslRecord `json:"Records"`
	} `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SslCenterListResponse) GetCode

func (r *SslCenterListResponse) GetCode() int32

func (*SslCenterListResponse) GetMessage

func (r *SslCenterListResponse) GetMessage() string

type SslCenterUpdateRequest added in v0.4.5

type SslCenterUpdateRequest struct {
	Cert string `json:"cert"`
	Key  string `json:"key"`
}

type SslCenterUpdateResponse added in v0.4.5

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

func (*SslCenterUpdateResponse) GetCode added in v0.4.5

func (r *SslCenterUpdateResponse) GetCode() int32

func (*SslCenterUpdateResponse) GetMessage added in v0.4.5

func (r *SslCenterUpdateResponse) GetMessage() string

type SslDetail

type SslDetail struct {
	Cert       string `json:"Cert"`
	Key        string `json:"Key"`
	Domain     string `json:"DomainName"`
	Issuer     string `json:"Issuer"`
	StartDate  int64  `json:"StartDate"`
	ExpireDate int64  `json:"ExpDate"`
	RemainDays int64  `json:"RemainDays"`
}

type SslRecord

type SslRecord struct {
	ID         int64  `json:"ID"`
	UID        int64  `json:"UID"`
	Domain     string `json:"Domain"`
	Issuer     string `json:"Issuer"`
	StartDate  int64  `json:"StartDate"`
	ExpireDate int64  `json:"ExpDate"`
	UploadTime int64  `json:"UploadTime"`
}

Jump to

Keyboard shortcuts

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