kong

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

type Certificate struct {
	Id        *string   `json:"id,omitempty"`
	Cert      *string   `json:"cert,omitempty"`
	CertAlt   *string   `json:"cert_alt,omitempty"`
	Key       *string   `json:"key,omitempty"`
	KeyAlt    *string   `json:"key_alt,omitempty"`
	SNIs      []*string `json:"snis,omitempty"`
	Tags      []*string `json:"tags,omitempty"`
	CreatedAt *string   `json:"created_at,omitempty"`
	UpdatedAt *string   `json:"updated_at,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) UpsertCertificate

func (c *Client) UpsertCertificate(certificateId string, req *UpsertCertificateRequest) (*UpsertCertificateResponse, error)

func (*Client) UpsertCertificateWithContext

func (c *Client) UpsertCertificateWithContext(ctx context.Context, certificateId string, req *UpsertCertificateRequest) (*UpsertCertificateResponse, error)

type Options

type Options struct {
	ApiToken  string
	Workspace string
}

type OptionsFunc

type OptionsFunc func(*Options)

func WithApiToken

func WithApiToken(apiToken string) OptionsFunc

func WithWorkspace

func WithWorkspace(workspace string) OptionsFunc

type UpsertCertificateRequest

type UpsertCertificateRequest Certificate

type UpsertCertificateResponse

type UpsertCertificateResponse Certificate

Jump to

Keyboard shortcuts

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