safeline

package
v0.3.21 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateManul

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

type Client

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

func NewClient

func NewClient(serverUrl, apiToken string) (*Client, error)

func (*Client) SetTLSConfig

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

func (*Client) SetTimeout

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

func (*Client) UpdateCertificate

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

func (*Client) UpdateCertificateWithContext

func (c *Client) UpdateCertificateWithContext(ctx context.Context, req *UpdateCertificateRequest) (*UpdateCertificateResponse, error)

type UpdateCertificateRequest

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

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