apisix

package
v0.4.25 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 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 Certificate added in v0.4.25

type Certificate struct {
	ID            *string           `json:"id,omitempty"`
	Status        *int32            `json:"status,omitempty"`
	Certificate   *string           `json:"cert,omitempty"`
	PrivateKey    *string           `json:"key,omitempty"`
	SNIs          []*string         `json:"snis,omitempty"`
	Type          *string           `json:"type,omitempty"`
	ValidityStart *int64            `json:"validity_start,omitempty"`
	ValidityEnd   *int64            `json:"validity_end,omitempty"`
	Labels        map[string]string `json:"labels,omitempty"`
}

type Client

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

func NewClient

func NewClient(serverUrl string, optFns ...OptionsFunc) (*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) UpdateSSL

func (c *Client) UpdateSSL(sslId string, req *UpdateSSLRequest) (*UpdateSSLResponse, error)

func (*Client) UpdateSSLWithContext

func (c *Client) UpdateSSLWithContext(ctx context.Context, sslId string, req *UpdateSSLRequest) (*UpdateSSLResponse, error)

type Options added in v0.4.25

type Options struct {
	ApiKey string
}

type OptionsFunc added in v0.4.25

type OptionsFunc func(*Options)

func WithApiKey added in v0.4.25

func WithApiKey(apiKey string) OptionsFunc

type UpdateSSLRequest

type UpdateSSLRequest Certificate

type UpdateSSLResponse

type UpdateSSLResponse Certificate

Jump to

Keyboard shortcuts

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