acme

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 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 ChallengeschemaChallengeSchemaResponse

type ChallengeschemaChallengeSchemaResponse struct {
	Id     string                 `url:"id" json:"id"`
	Name   string                 `url:"name" json:"name"` // Human readable name, falls back to id
	Schema map[string]interface{} `url:"schema" json:"schema"`
	Type   string                 `url:"type" json:"type"`
}

type Client

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

func New

func New(c HTTPClient) *Client

func (*Client) ChallengeschemaChallengeSchema

func (c *Client) ChallengeschemaChallengeSchema(ctx context.Context) ([]ChallengeschemaChallengeSchemaResponse, error)

ChallengeschemaChallengeSchema Get schema of ACME challenge types.

func (*Client) GetDirectories

func (c *Client) GetDirectories(ctx context.Context) ([]GetDirectoriesResponse, error)

GetDirectories Get named known ACME directory endpoints.

func (*Client) GetTos

func (c *Client) GetTos(ctx context.Context, req GetTosRequest) (*string, error)

GetTos Retrieve ACME TermsOfService URL from CA.

func (*Client) Index

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

Index ACMEAccount index.

type GetDirectoriesResponse

type GetDirectoriesResponse struct {
	Name string `url:"name" json:"name"`
	Url  string `url:"url" json:"url"` // URL of ACME CA directory endpoint.

}

type GetTosRequest

type GetTosRequest struct {

	// The following parameters are optional
	Directory *string `url:"directory,omitempty" json:"directory,omitempty"` // URL of ACME CA directory endpoint.
}

type HTTPClient

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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