ssh

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 NewSSH

func NewSSH(privateKey string) (*SSH, error)

NewSSH returns a new SSH object

func (*SSH) IsCertFresh

func (s *SSH) IsCertFresh(c *config.Config) (bool, error)

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

func (s *SSH) ReadAndParsePrivateKey() (interface{}, error)

ReadAndParsePrivateKey reads and unmarshals a private key

func (*SSH) ReadAndParsePublicKey added in v0.2.8

func (s *SSH) ReadAndParsePublicKey() (ssh.PublicKey, error)

ReadAndParsePublicKey reads and unmarshals a public key

func (*SSH) ReadCert

func (s *SSH) ReadCert() ([]byte, error)

ReadCert reads the ssh cert

func (*SSH) ReadPrivateKey added in v0.2.8

func (s *SSH) ReadPrivateKey() ([]byte, error)

ReadPrivateKey reads the private key

func (*SSH) ReadPublicKey

func (s *SSH) ReadPublicKey() ([]byte, error)

ReadPublicKey reads the SSH public key

func (*SSH) WriteCert

func (s *SSH) WriteCert(b []byte) error

WriteCert writes a cert to disk

Jump to

Keyboard shortcuts

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