client

package
v0.0.0-...-f7dc056 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2018 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugFile *os.File
View Source
var PrintDebug = false

Functions

func MakeCreds

func MakeCreds(cert, key []byte) []byte

MakeCreds returns a JSON encoded ExecCredential from cert and key.

func NewClient

func NewClient(server, email string, key *rsa.PrivateKey, pebbleCAPool *x509.CertPool, debugFile string) (*client, error)

registration and some other routines based on the pebble client.

Types

type BadNonce

type BadNonce struct {
	Type   string
	Detail string
	Status int
}

type ChallengeInfo

type ChallengeInfo struct {
	ChallengeType   string `json:"type"`
	ChallengeUrl    string `json:"url"`
	ChallengeToken  string `json:"token"`
	ChallengeStatus string `json:"status"`
}

type ChallengeResponse

type ChallengeResponse struct {
	Status     string          `json:"status"`
	Identifier OrderIdentifier `json:"identifier"`
	Challenges []ChallengeInfo `json:"challenges"`
	Expires    string          `json:"expires"`
}

type OrderIdentifier

type OrderIdentifier struct {
	IdType  string `json:"type"`
	IdValue string `json:"value"`
}

type OrderResponse

type OrderResponse struct {
	Status         string
	Expires        string
	Identifiers    []OrderIdentifier
	Finalize       string
	Authorizations []string
	Certificate    string
}

Jump to

Keyboard shortcuts

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