account

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 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) Create

func (c *Client) Create(ctx context.Context, req CreateRequest) (string, error)

Create Register a new ACME account with CA.

func (*Client) Delete

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

Delete Deactivate existing ACME account at CA.

func (*Client) Find

func (c *Client) Find(ctx context.Context, req FindRequest) (FindResponse, error)

Find Return existing ACME account information.

func (*Client) Index

func (c *Client) Index(ctx context.Context) ([]map[string]interface{}, error)

Index ACMEAccount index.

func (*Client) Update

func (c *Client) Update(ctx context.Context, req UpdateRequest) (string, error)

Update Update existing ACME account information with CA. Note: not specifying any new account information triggers a refresh.

type CreateRequest

type CreateRequest struct {
	Contact string `url:"contact" json:"contact"` // Contact email addresses.

	// The following parameters are optional
	Directory *string `url:"directory,omitempty" json:"directory,omitempty"` // URL of ACME CA directory endpoint.
	Name      *string `url:"name,omitempty" json:"name,omitempty"`           // ACME account config file name.
	TosUrl    *string `url:"tos_url,omitempty" json:"tos_url,omitempty"`     // URL of CA TermsOfService - setting this indicates agreement.
}

type DeleteRequest

type DeleteRequest struct {

	// The following parameters are optional
	Name *string `url:"name,omitempty" json:"name,omitempty"` // ACME account config file name.
}

type FindRequest

type FindRequest struct {

	// The following parameters are optional
	Name *string `url:"name,omitempty" json:"name,omitempty"` // ACME account config file name.
}

type FindResponse

type FindResponse struct {

	// The following parameters are optional
	Account   *map[string]interface{} `url:"account,omitempty" json:"account,omitempty"`
	Directory *string                 `url:"directory,omitempty" json:"directory,omitempty"` // URL of ACME CA directory endpoint.
	Location  *string                 `url:"location,omitempty" json:"location,omitempty"`
	Tos       *string                 `url:"tos,omitempty" json:"tos,omitempty"`
}

type HTTPClient

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

type UpdateRequest

type UpdateRequest struct {

	// The following parameters are optional
	Contact *string `url:"contact,omitempty" json:"contact,omitempty"` // Contact email addresses.
	Name    *string `url:"name,omitempty" json:"name,omitempty"`       // ACME account config file name.
}

Jump to

Keyboard shortcuts

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