account

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 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) (*CreateResponse, error)

Create Register a new ACME account with CA.

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, 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) (*IndexResponse, error)

Index ACMEAccount index.

func (*Client) Update

func (c *Client) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, 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 CreateResponse

type CreateResponse string

type DeleteRequest

type DeleteRequest map[string]interface{}

type DeleteResponse

type DeleteResponse string

type FindRequest

type FindRequest map[string]interface{}

type FindResponse

type FindResponse map[string]interface{}

type HTTPClient

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

type IndexResponse

type IndexResponse []*map[string]interface{}

type UpdateRequest

type UpdateRequest map[string]interface{}

type UpdateResponse

type UpdateResponse string

Jump to

Keyboard shortcuts

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