Documentation ¶
Index ¶
Constants ¶
View Source
const ( RemovedDataVolumesAnnotationKey = prefix + "/removedDataVolumes" AnnotationMigrationTarget = prefix + "/migrationTargetNodeName" AnnotationMigrationUID = prefix + "/migrationUID" AnnotationMigrationState = prefix + "/migrationState" AnnotationTimestamp = prefix + "/timestamp" )
Variables ¶
This section is empty.
Functions ¶
func EncodePrivateKeyToPEM ¶
func EncodePrivateKeyToPEM(privateKey *rsa.PrivateKey) []byte
EncodePrivateKeyToPEM encodes Private Key from RSA to PEM format
func GeneratePrivateKey ¶
func GeneratePrivateKey(bitSize int) (*rsa.PrivateKey, error)
GeneratePrivateKey creates a RSA Private Key of specified byte size
func GeneratePublicKey ¶
GeneratePublicKey take a rsa.PublicKey and return bytes suitable for writing to .pub file returns in the format "ssh-rsa ..."
Types ¶
type CountingReader ¶
type CountingReader struct { Reader io.ReadCloser Current int64 // Total can be negative meaning the total size is unknown Total int64 Done bool }
CountingReader is a reader that keeps track of how much has been read
Click to show internal directories.
Click to hide internal directories.