Documentation ¶
Index ¶
- type ACMEPluginsCreateRequestBody
- type ACMEPluginsGetResponseBody
- type ACMEPluginsGetResponseData
- type ACMEPluginsListResponseBody
- type ACMEPluginsListResponseData
- type ACMEPluginsUpdateRequestBody
- type BaseACMEPluginData
- type Client
- func (c *Client) Create(ctx context.Context, data *ACMEPluginsCreateRequestBody) error
- func (c *Client) Delete(ctx context.Context, id string) error
- func (c *Client) ExpandPath(path string) string
- func (c *Client) Get(ctx context.Context, id string) (*ACMEPluginsGetResponseData, error)
- func (c *Client) List(ctx context.Context) ([]*ACMEPluginsListResponseData, error)
- func (c *Client) Update(ctx context.Context, id string, data *ACMEPluginsUpdateRequestBody) error
- type DNSPluginData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACMEPluginsCreateRequestBody ¶
type ACMEPluginsCreateRequestBody struct { BaseACMEPluginData // ACME Plugin ID name Plugin string `json:"id" url:"id"` // DNS plugin data. (base64 encoded) Data *DNSPluginData `url:"data,omitempty"` // Flag to disable the config. Disable bool `url:"disable,omitempty,int"` }
ACMEPluginsCreateRequestBody contains the body for creating a new ACME plugin.
type ACMEPluginsGetResponseBody ¶
type ACMEPluginsGetResponseBody struct {
Data *ACMEPluginsGetResponseData `json:"data,omitempty"`
}
ACMEPluginsGetResponseBody contains the body from an ACME plugins get response.
type ACMEPluginsGetResponseData ¶
type ACMEPluginsGetResponseData struct { BaseACMEPluginData // ACME Plugin ID name Plugin string `json:"plugin" url:"plugin"` // DNS plugin data. Data *DNSPluginData `json:"data"` }
ACMEPluginsGetResponseData contains the data from an ACME plugins get response.
type ACMEPluginsListResponseBody ¶
type ACMEPluginsListResponseBody struct { // Unique identifier for ACME plugin instance. Data []*ACMEPluginsListResponseData `json:"data,omitempty"` }
ACMEPluginsListResponseBody contains the body from an ACME plugins list response.
type ACMEPluginsListResponseData ¶
type ACMEPluginsListResponseData struct { BaseACMEPluginData // ACME Plugin ID name Plugin string `json:"plugin" url:"plugin"` // DNS plugin data. Data *DNSPluginData `json:"data,omitempty"` }
ACMEPluginsListResponseData contains the data from an ACME plugins list response.
type ACMEPluginsUpdateRequestBody ¶
type ACMEPluginsUpdateRequestBody struct { BaseACMEPluginData // DNS plugin data. (base64 encoded) Data *DNSPluginData `url:"data,omitempty"` // A list of settings you want to delete. Delete string `url:"delete,omitempty"` // Flag to disable the config. Disable bool `url:"disable,omitempty,int"` }
ACMEPluginsUpdateRequestBody contains the body for updating an existing ACME plugin.
type BaseACMEPluginData ¶
type BaseACMEPluginData struct { // ACME challenge type (dns, standalone). Type string `json:"type,omitempty" url:"type,omitempty"` // Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. Digest string `json:"digest,omitempty" url:"digest,omitempty"` // API plugin name API string `json:"api,omitempty" url:"api,omitempty"` // Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records (0 - 172800). ValidationDelay int64 `json:"validation-delay,omitempty" url:"validation-delay,omitempty"` }
BaseACMEPluginData contains common fields for ACME plugin data.
type Client ¶
Client is an interface for accessing the Proxmox ACME plugins API.
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, data *ACMEPluginsCreateRequestBody) error
Create creates a new ACME plugin.
func (*Client) ExpandPath ¶
ExpandPath expands a relative path to the Proxmox ACME plugins API path.
type DNSPluginData ¶
DNSPluginData is a map of DNS plugin data.
func (DNSPluginData) EncodeValues ¶
func (d DNSPluginData) EncodeValues(key string, v *url.Values) error
EncodeValues encodes the DNSPluginData into the URL values.
func (*DNSPluginData) UnmarshalJSON ¶
func (d *DNSPluginData) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals a DNSPluginData struct from JSON.