Documentation ¶
Index ¶
- type SSH
- func (s *SSH) IsCertFresh(c *config.Config) (bool, error)
- func (s *SSH) ReadAndParseCert() (*ssh.Certificate, error)
- func (s *SSH) ReadAndParsePrivateKey() (interface{}, error)
- func (s *SSH) ReadAndParsePublicKey() (ssh.PublicKey, error)
- func (s *SSH) ReadCert() ([]byte, error)
- func (s *SSH) ReadPrivateKey() ([]byte, error)
- func (s *SSH) ReadPublicKey() ([]byte, error)
- func (s *SSH) WriteCert(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSH ¶
type SSH struct {
// contains filtered or unexported fields
}
SSH is a namespace
func (*SSH) IsCertFresh ¶
IsCertFresh determines if the cert is still fresh
func (*SSH) ReadAndParseCert ¶ added in v0.2.8
func (s *SSH) ReadAndParseCert() (*ssh.Certificate, error)
ReadAndParseCert reads a certificate off disk and attempts to unmarshal it
func (*SSH) ReadAndParsePrivateKey ¶ added in v0.2.8
ReadAndParsePrivateKey reads and unmarshals a private key
func (*SSH) ReadAndParsePublicKey ¶ added in v0.2.8
ReadAndParsePublicKey reads and unmarshals a public key
func (*SSH) ReadPrivateKey ¶ added in v0.2.8
ReadPrivateKey reads the private key
func (*SSH) ReadPublicKey ¶
ReadPublicKey reads the SSH public key
Click to show internal directories.
Click to hide internal directories.