commands

package
v0.0.0-...-014ecae Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2017 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKeys

func CreateKeys(fs afero.Fs, name, keyfile string, cipherStrength int)

CreateKeys builds a public and private key and saves them to a file

func DeleteKeys

func DeleteKeys(fs afero.Fs, keyfile, name string)

DeleteKeys removes a key from the keystore

func ExtractKeys

func ExtractKeys(fs afero.Fs, keyfile, name, outfile string)

ExtractKeys extracts a key into PEM encoded formats

func ImportKey

func ImportKey(fs afero.Fs, repoName, keyName, fileName string) error

ImportKey imports a key into the repository with the given key name. The PEM encoded key is read from the io.Reader. The function then saves the keystore with the new key.

func ListContents

func ListContents(fs afero.Fs, archive, keystore, pubkey, privkey string, output io.Writer)

ListContents lists the contents of an archive

func ListKeys

func ListKeys(fs afero.Fs, keyfile string)

ListKeys prints all the key names

func PackRepository

func PackRepository(fs afero.Fs, args map[string]string)

PackRepository packages a repository

func UnpackRepository

func UnpackRepository(fs afero.Fs, archive, keystore, privKeyName, pubKeyName string)

UnpackRepository unpacks a repository

Types

This section is empty.

Jump to

Keyboard shortcuts

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