Documentation ¶
Index ¶
- Constants
- func CreateMd5Hash(value string) string
- func Decrypt(data []byte, passphrase string) ([]byte, error)
- func DownloadTruststore(w http.ResponseWriter, req *http.Request)
- func DownloadTruststoreCLI(fileName string, content []byte, password string)
- func Encrypt(data []byte, passphrase string) ([]byte, error)
- func RandomString(n int) string
- type DB
- type DownloadRequest
- type DownloadResponse
- type Vault
- type VaultService
Constants ¶
const DEFAULTBUCKETNAME = "ODP"
DEFAULTBUCKETNAME - default bucket name for BoltDB
const DEFAULTPASSWORDKEYNAME = "_PASSWORD"
DEFAULTPASSWORDKEYNAME - default key name for password
const DEFAULTRANDOMKEYNAME = "_HASH"
DEFAULTRANDOMKEYNAME - default key name for encryption random string
const RANDOMSTRINGLENGTH = 16
RANDOMSTRINGLENGTH - length of random string for encryption
const TEMPTRUSTORESPATH = ".\\temp"
Variables ¶
This section is empty.
Functions ¶
func CreateMd5Hash ¶
CreateMd5Hash - get md5 hash of some value
func DownloadTruststore ¶
func DownloadTruststore(w http.ResponseWriter, req *http.Request)
DownloadTruststore - download trustore request
func DownloadTruststoreCLI ¶
DownloadTruststoreCLI - downloadTrustStore using CLI
func RandomString ¶
RandomString - random string generator for specified length
Types ¶
type DB ¶
DB - Base truststore struct
type DownloadRequest ¶
type DownloadRequest struct { StorePassword string `json:"storePassword"` Data map[string]string `json:"data"` }
DownloadRequest - input structure for download request of trustore
type DownloadResponse ¶
DownloadResponse - output response for download request of trustore
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
Vault - Base Vault structure
func CreateVault ¶
CreateVault - create new vault with specified location and password
func (*Vault) ChangePassword ¶
ChangePassword - change trustore password