mylego

package
v1.8.8-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Email        string                 `json:"email"`
	Registration *registration.Resource `json:"registration"`
	// contains filtered or unexported fields
}

Account represents a users local saved credentials.

func (*Account) GetEmail

func (a *Account) GetEmail() string

GetEmail returns the email address for the account.

func (*Account) GetPrivateKey

func (a *Account) GetPrivateKey() crypto.PrivateKey

GetPrivateKey returns the private RSA account key.

func (*Account) GetRegistration

func (a *Account) GetRegistration() *registration.Resource

GetRegistration returns the server registration.

type CertConfig

type CertConfig struct {
	CertMode string `mapstructure:"CertMode"` // none, file
	CertFile string `mapstructure:"CertFile"`
	KeyFile  string `mapstructure:"KeyFile"`
}

type LegoCMD

type LegoCMD struct {
	C *CertConfig
	// contains filtered or unexported fields
}

func New

func New(certConf *CertConfig) (*LegoCMD, error)

Jump to

Keyboard shortcuts

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