ssh

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: MIT Imports: 12 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) ReadCert

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

ReadCert reads the ssh cert

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