Documentation
¶
Index ¶
- type Client
- func (c *Client) Index(ctx context.Context, req *IndexRequest) (*IndexResponse, error)
- func (c *Client) Info(ctx context.Context, req *InfoRequest) (*InfoResponse, error)
- func (c *Client) RemoveCustomCertCustom(ctx context.Context, req *RemoveCustomCertCustomRequest) (*RemoveCustomCertCustomResponse, error)
- func (c *Client) UploadCustomCertCustom(ctx context.Context, req *UploadCustomCertCustomRequest) (*UploadCustomCertCustomResponse, error)
- type HTTPClient
- type IndexRequest
- type IndexResponse
- type InfoRequest
- type InfoResponse
- type RemoveCustomCertCustomRequest
- type RemoveCustomCertCustomResponse
- type UploadCustomCertCustomRequest
- type UploadCustomCertCustomResponse
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 ¶
func (c *Client) RemoveCustomCertCustom(ctx context.Context, req *RemoveCustomCertCustomRequest) (*RemoveCustomCertCustomResponse, error)
RemoveCustomCertCustom DELETE custom certificate chain and key.
func (*Client) UploadCustomCertCustom ¶
func (c *Client) UploadCustomCertCustom(ctx context.Context, req *UploadCustomCertCustomRequest) (*UploadCustomCertCustomResponse, error)
UploadCustomCertCustom Upload or update custom certificate chain and key.
type HTTPClient ¶
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 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{}
Click to show internal directories.
Click to hide internal directories.