proxmoxve

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 Client

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

func NewClient

func NewClient(serverUrl string, optFns ...OptionsFunc) (*Client, error)

func (*Client) NodeUploadCustomCertificate

func (c *Client) NodeUploadCustomCertificate(node string, req *NodeUploadCustomCertificateRequest) (*NodeUploadCustomCertificateResponse, error)

func (*Client) NodeUploadCustomCertificateWithContext

func (c *Client) NodeUploadCustomCertificateWithContext(ctx context.Context, node string, req *NodeUploadCustomCertificateRequest) (*NodeUploadCustomCertificateResponse, error)

func (*Client) SetTLSConfig

func (c *Client) SetTLSConfig(config *tls.Config) *Client

func (*Client) SetTimeout

func (c *Client) SetTimeout(timeout time.Duration) *Client

type CustomCertificate

type CustomCertificate struct {
	Certificates string `json:"certificates,omitempty"`
	Force        bool   `json:"force,omitempty"`
	Key          string `json:"key,omitempty"`
	Restart      bool   `json:"restart,omitempty"`
}

type NodeUploadCustomCertificateRequest

type NodeUploadCustomCertificateRequest CustomCertificate

type NodeUploadCustomCertificateResponse

type NodeUploadCustomCertificateResponse struct {
	Data *struct {
		FileName    string   `json:"filename,omitempty"`
		Fingerprint string   `json:"fingerprint,omitempty"`
		Subject     string   `json:"subject,omitempty"`
		Issuer      string   `json:"issuer,omitempty"`
		SAN         []string `json:"san,omitempty"`
		NotAfter    int64    `json:"notafter,omitempty"`
		NotBefore   int64    `json:"notbefore,omitempty"`
	} `json:"data,omitempty"`
}

type Options

type Options struct {
	TokenId     string
	TokenSecret string
}

type OptionsFunc

type OptionsFunc func(*Options)

func WithApiToken

func WithApiToken(tokenId string, tokenSecret string) OptionsFunc

Jump to

Keyboard shortcuts

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