certificates

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 1 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 New

func New(c HTTPClient) *Client

func (*Client) Index

func (c *Client) Index(ctx context.Context, req *IndexRequest) (*IndexResponse, error)

Index Node index.

func (*Client) Info

func (c *Client) Info(ctx context.Context, req *InfoRequest) (*InfoResponse, error)

Info Get information about node's certificates.

func (*Client) RemoveCustomCertCustom

RemoveCustomCertCustom DELETE custom certificate chain and key.

func (*Client) UploadCustomCertCustom

UploadCustomCertCustom Upload or update custom certificate chain and key.

type HTTPClient

type HTTPClient interface {
	Do(context.Context, string, string, interface{}, interface{}) error
}

type IndexRequest

type IndexRequest struct {
	Node string `url:"node",json:"node"` // The cluster node name.

}

type IndexResponse

type IndexResponse []*map[string]interface{}

type InfoRequest

type InfoRequest struct {
	Node string `url:"node",json:"node"` // The cluster node name.

}

type InfoResponse

type InfoResponse []*map[string]interface{}

type RemoveCustomCertCustomRequest

type RemoveCustomCertCustomRequest struct {
	Node string `url:"node",json:"node"` // The cluster node name.

	// The following parameters are optional
	Restart *bool `url:"restart,omitempty",json:"restart,omitempty"` // Restart pveproxy.
}

type RemoveCustomCertCustomResponse

type RemoveCustomCertCustomResponse map[string]interface{}

type UploadCustomCertCustomRequest

type UploadCustomCertCustomRequest struct {
	Certificates string `url:"certificates",json:"certificates"` // PEM encoded certificate (chain).
	Node         string `url:"node",json:"node"`                 // The cluster node name.

	// The following parameters are optional
	Force   *bool   `url:"force,omitempty",json:"force,omitempty"`     // Overwrite existing custom or ACME certificate files.
	Key     *string `url:"key,omitempty",json:"key,omitempty"`         // PEM encoded private key.
	Restart *bool   `url:"restart,omitempty",json:"restart,omitempty"` // Restart pveproxy.
}

type UploadCustomCertCustomResponse

type UploadCustomCertCustomResponse map[string]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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