Documentation ¶
Index ¶
- Constants
- type UserDir
- func (u *UserDir) GetCSR() ([]byte, error)
- func (u *UserDir) GetCertificate() (*tls.Certificate, error)
- func (u *UserDir) GetPrivateKey() (crypto.PrivateKey, error)
- func (u *UserDir) GetToken() (string, error)
- func (u *UserDir) SetCertificate(c *x509.Certificate) error
- func (u *UserDir) SetToken(token string) error
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 (*UserDir) GetCertificate ¶
func (u *UserDir) GetCertificate() (*tls.Certificate, error)
func (*UserDir) GetPrivateKey ¶
func (u *UserDir) GetPrivateKey() (crypto.PrivateKey, error)
func (*UserDir) SetCertificate ¶
func (u *UserDir) SetCertificate(c *x509.Certificate) error
Click to show internal directories.
Click to hide internal directories.