Documentation ¶
Index ¶
- Constants
- Variables
- func Authenticate(file string, sigfile string, pubkey *rsa.PublicKey) error
- func AuthenticateFile(file string, sigfile string, pubkeyfile string) error
- func AuthenticateFiles(files []string, pub string) error
- func CleanupWorkArea()
- func CreateUniqueId() uuid.UUID
- func CreateWorkArea(root string) string
- func Decrypt(passphrase string, from string, to string) error
- func Encrypt(passphrase string, from string, to string) error
- func GenerateKeys(priv, pub string) error
- func LoadPrivateKey(keyfile string) (*rsa.PrivateKey, error)
- func LoadPublicKey(pubkeyfile string) (*rsa.PublicKey, error)
- func Package(bn string) error
- func Packfiles(fn, dir string) error
- func SetUniqueId(id string)
- func Sign(file string, sigfile string, pvt *rsa.PrivateKey) error
- func SignFile(file string, sigfile string, pvtkeyfile string) error
- func SignFiles(files []string, pvtkeyfile string) error
- func UnPackfiles(fn, dir string) error
Constants ¶
View Source
const DefaultPrivateKeyFileName = "private.pem"
View Source
const DefaultPublicKeyFileName = "public.pem"
Variables ¶
View Source
var ArtifactsDir string
View Source
var ContentsDir string
View Source
var Verbose = false
View Source
var WorkDir string
Functions ¶
func AuthenticateFiles ¶
func CleanupWorkArea ¶
func CleanupWorkArea()
func CreateUniqueId ¶
func CreateWorkArea ¶
func GenerateKeys ¶
func LoadPrivateKey ¶
func LoadPrivateKey(keyfile string) (*rsa.PrivateKey, error)
func SetUniqueId ¶
func SetUniqueId(id string)
func UnPackfiles ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.