userconfig

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Directory = ".heimdallr"

	TokenFilename       = "token"
	CertificateFilename = "client.crt"
	PrivateKeyFilename  = "client.key"
	CSRFilename         = "client.csr"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type UserDir

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

func New

func New() (*UserDir, error)

func (*UserDir) GetCSR

func (u *UserDir) GetCSR() ([]byte, error)

func (*UserDir) GetCertificate

func (u *UserDir) GetCertificate() (*tls.Certificate, error)

func (*UserDir) GetPrivateKey

func (u *UserDir) GetPrivateKey() (crypto.PrivateKey, error)

func (*UserDir) GetToken

func (u *UserDir) GetToken() (string, error)

func (*UserDir) SetCertificate

func (u *UserDir) SetCertificate(c *x509.Certificate) error

func (*UserDir) SetToken

func (u *UserDir) SetToken(token string) error

Jump to

Keyboard shortcuts

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