account

package
v0.66.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACMEAccountCreateRequestBody

type ACMEAccountCreateRequestBody struct {
	// Contact is the contact email addresses.
	Contact string `url:"contact"`
	// Directory is the URL of the ACME CA directory endpoint.
	Directory string `url:"directory,omitempty"`
	// EABHMACKey is the HMAC key for External Account Binding.
	EABHMACKey string `url:"eab-hmac-key,omitempty"`
	// EABKID is the Key Identifier for External Account Binding.
	EABKID string `url:"eab-kid,omitempty"`
	// Name is the ACME account config file name.
	Name string `url:"name,omitempty"`
	// TOS is the URL of CA TermsOfService - setting this indicates agreement.
	TOS string `url:"tos_url,omitempty"`
}

ACMEAccountCreateRequestBody contains the body for creating a new ACME account.

type ACMEAccountCreateResponseBody

type ACMEAccountCreateResponseBody struct {
	Data *string `json:"data,omitempty"`
}

ACMEAccountCreateResponseBody contains the body from an ACME account create request.

type ACMEAccountData

type ACMEAccountData struct {
	// An array of contact email addresses.
	Contact []string `json:"contact"`
	// Timestamp of the account creation.
	CreatedAt string `json:"createdAt"`
	// Status of the account. Can be one of "valid", "deactivated" or "revoked".
	Status string `json:"status"`
}

ACMEAccountData contains the data from a ACME account.

type ACMEAccountDeleteResponseBody

type ACMEAccountDeleteResponseBody struct {
	Data *string `json:"data,omitempty"`
}

ACMEAccountDeleteResponseBody contains the body from an ACME account delete request.

type ACMEAccountGetResponseBody

type ACMEAccountGetResponseBody struct {
	Data *ACMEAccountGetResponseData `json:"data,omitempty"`
}

ACMEAccountGetResponseBody contains the body from a ACME account get response.

type ACMEAccountGetResponseData

type ACMEAccountGetResponseData struct {
	// Account is the ACME account data.
	Account ACMEAccountData `json:"account"`
	// Directory is the URL of the ACME CA directory endpoint.
	Directory string `json:"directory"`
	// Location is the location of the ACME account.
	Location string `json:"location"`
	// TOS is the terms of service URL.
	TOS string `json:"tos"`
}

ACMEAccountGetResponseData contains the data from a ACME account get response.

type ACMEAccountListResponseBody

type ACMEAccountListResponseBody struct {
	Data []*ACMEAccountListResponseData `json:"data,omitempty"`
}

ACMEAccountListResponseBody contains the body from a ACME account list response.

type ACMEAccountListResponseData

type ACMEAccountListResponseData struct {
	Name string `json:"name"`
}

ACMEAccountListResponseData contains the data from a ACME account list response.

type ACMEAccountUpdateRequestBody

type ACMEAccountUpdateRequestBody struct {
	// Contact is the contact email addresses.
	Contact string `url:"contact,omitempty"`
	// Name is the ACME account config file name.
	Name string `url:"name,omitempty"`
}

ACMEAccountUpdateRequestBody contains the body for updating an existing ACME account.

type ACMEAccountUpdateResponseBody

type ACMEAccountUpdateResponseBody struct {
	Data *string `json:"data,omitempty"`
}

ACMEAccountUpdateResponseBody contains the body from an ACME account update request.

type Client

type Client struct {
	api.Client
}

Client is an interface for accessing the Proxmox ACME management API.

func (*Client) Create

Create creates a new ACME account.

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, accountName string) error

Delete removes an ACME account.

func (*Client) ExpandPath

func (c *Client) ExpandPath(path string) string

ExpandPath expands a relative path to the Proxmox ACME management API path.

func (*Client) Get

Get retrieves a single ACME account based on its identifier.

func (*Client) List

List returns a list of ACME accounts.

func (*Client) Tasks

func (c *Client) Tasks() *tasks.Client

Tasks returns a client for managing ACME account tasks.

func (*Client) Update

func (c *Client) Update(ctx context.Context, accountName string, data *ACMEAccountUpdateRequestBody) error

Update updates an existing ACME account.

Jump to

Keyboard shortcuts

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