safeline

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: May 20, 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 BaseResponse

type BaseResponse interface {
	GetErrCode() *string
	GetErrMsg() *string
}

type Client

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

func NewClient

func NewClient(apiHost, apiToken string) *Client

func (*Client) UpdateCertificate

func (c *Client) UpdateCertificate(req *UpdateCertificateRequest) (*UpdateCertificateResponse, error)

func (*Client) WithTLSConfig

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

func (*Client) WithTimeout

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

type UpdateCertificateRequest

type UpdateCertificateRequest struct {
	Id     int32                              `json:"id"`
	Type   int32                              `json:"type"`
	Manual *UpdateCertificateRequestBodyManul `json:"manual"`
}

type UpdateCertificateRequestBodyManul

type UpdateCertificateRequestBodyManul struct {
	Crt string `json:"crt"`
	Key string `json:"key"`
}

type UpdateCertificateResponse

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

func (*UpdateCertificateResponse) GetErrCode

func (r *UpdateCertificateResponse) GetErrCode() *string

func (*UpdateCertificateResponse) GetErrMsg

func (r *UpdateCertificateResponse) GetErrMsg() *string

Jump to

Keyboard shortcuts

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