samwaf

package
v0.4.22 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 10 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(serverUrl, apiKey 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) SslConfigDetail

func (c *Client) SslConfigDetail(sslId string) (*SslConfigDetailResponse, error)

func (*Client) SslConfigDetailWithContext

func (c *Client) SslConfigDetailWithContext(ctx context.Context, sslId string) (*SslConfigDetailResponse, error)

func (*Client) SslConfigEdit

func (c *Client) SslConfigEdit(req *SslConfigEditRequest) (*SslConfigEditResponse, error)

func (*Client) SslConfigEditWithContext

func (c *Client) SslConfigEditWithContext(ctx context.Context, req *SslConfigEditRequest) (*SslConfigEditResponse, error)

type SslConfig

type SslConfig struct {
	Id          string `json:"id"`
	CertContent string `json:"cert_content"`
	KeyContent  string `json:"key_content"`
	SerialNo    string `json:"serial_no"`
	Subject     string `json:"subject"`
	Issuer      string `json:"issuer"`
	ValidFrom   string `json:"valid_from"`
	ValidTo     string `json:"valid_to"`
	Domains     string `json:"domains"`
	KeyPath     string `json:"key_path"`
	CertPath    string `json:"cert_path"`
	CreateTime  string `json:"create_time"`
	UpdateTime  string `json:"update_time"`
}

type SslConfigDetailResponse

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

func (*SslConfigDetailResponse) GetCode

func (r *SslConfigDetailResponse) GetCode() int

func (*SslConfigDetailResponse) GetMsg

func (r *SslConfigDetailResponse) GetMsg() string

type SslConfigEditRequest

type SslConfigEditRequest struct {
	Id          string `json:"id"`
	CertContent string `json:"cert_content"`
	CertPath    string `json:"cert_path"`
	KeyContent  string `json:"key_content"`
	KeyPath     string `json:"key_path"`
}

type SslConfigEditResponse

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

func (*SslConfigEditResponse) GetCode

func (r *SslConfigEditResponse) GetCode() int

func (*SslConfigEditResponse) GetMsg

func (r *SslConfigEditResponse) GetMsg() string

Jump to

Keyboard shortcuts

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