Documentation
¶
Index ¶
- func CreateRootCaAndAddToGopass(createOptions *x509utils.X509CreateCertificateOptions, ...) (err error)
- func CredentialExists(fullCredentialPath string) (credentialExists bool, err error)
- func GetCredentialNameList() (credentialNames []string, err error)
- func GetCredentialValueAsString(getOptions *parameteroptions.GopassSecretOptions) (credentialValue string, err error)
- func GetCredentialValueAsStringByPath(secretPath string) (secretValue string, err error)
- func GetCredentialValueOrEmptyIfUnsetAsStringByPath(secretPath string) (credentialValue string, err error)
- func GetSslCertificate(getOptions *parameteroptions.GopassSecretOptions) (cert *x509utils.X509Certificate, err error)
- func InsertFile(fileToInsert files.File, gopassOptions *parameteroptions.GopassSecretOptions) (err error)
- func InsertFileByString(fileContent string, gopassOptions *parameteroptions.GopassSecretOptions) (err error)
- func InsertSecret(secretToInsert string, gopassOptions *parameteroptions.GopassSecretOptions) (err error)
- func MustCreateRootCaAndAddToGopass(createOptions *x509utils.X509CreateCertificateOptions, ...)
- func MustCredentialExists(fullCredentialPath string) (credentialExists bool)
- func MustGetCredentialNameList() (credentialNames []string)
- func MustGetCredentialValue(getOptions *parameteroptions.GopassSecretOptions) (credentialValue string)
- func MustGetCredentialValueAsString(getOptions *parameteroptions.GopassSecretOptions) (credentialValue string)
- func MustGetCredentialValueAsStringByPath(secretPath string) (secretValue string)
- func MustGetCredentialValueOrEmptyIfUnsetAsStringByPath(secretPath string) (credentialValue string)
- func MustGetSslCertificate(getOptions *parameteroptions.GopassSecretOptions) (cert *x509utils.X509Certificate)
- func MustInsertFile(fileToInsert files.File, gopassOptions *parameteroptions.GopassSecretOptions)
- func MustInsertSecret(secretToInsert string, gopassOptions *parameteroptions.GopassSecretOptions)
- func MustSecretNameExist(secretName string) (secretExists bool)
- func MustSync(verbose bool)
- func MustWriteInfoToGopass(gopassPath string)
- func MustWriteSecretIntoTemporaryFile(getOptions *parameteroptions.GopassSecretOptions) (temporaryFile files.File)
- func SecretNameExist(secretName string) (secretExists bool, err error)
- func Sync(verbose bool) (err error)
- func WriteInfoToGopass(gopassPath string) (err error)
- func WriteSecretIntoTemporaryFile(getOptions *parameteroptions.GopassSecretOptions) (temporaryFile files.File, err error)
- type GopassCredential
- func Generate(credentialName string, verbose bool) (generatedCredential *GopassCredential, err error)
- func GetCredential(getOptions *parameteroptions.GopassSecretOptions) (credential *GopassCredential, err error)
- func GetCredentialList() (credentials []*GopassCredential, err error)
- func GetGopassCredentialByName(name string) (credential *GopassCredential, err error)
- func MustGenerate(credentialName string, verbose bool) (generatedCredential *GopassCredential)
- func MustGetCredential(getOptions *parameteroptions.GopassSecretOptions) (credential *GopassCredential)
- func MustGetCredentialList() (credentials []*GopassCredential)
- func MustGetGopassCredentialByName(name string) (credential *GopassCredential)
- func NewGopassCredential() (gopassCredential *GopassCredential)
- func (c *GopassCredential) Exists() (exists bool, err error)
- func (c *GopassCredential) GetAsBytes() (credential []byte, err error)
- func (c *GopassCredential) GetAsInt() (value int, err error)
- func (c *GopassCredential) GetAsString() (credential string, err error)
- func (c *GopassCredential) GetName() (name string, err error)
- func (c *GopassCredential) GetSslCertificate() (sslCert *x509utils.X509Certificate, err error)
- func (c *GopassCredential) IncrementIntValue() (err error)
- func (g *GopassCredential) MustExists() (exists bool)
- func (g *GopassCredential) MustGetAsBytes() (credential []byte)
- func (g *GopassCredential) MustGetAsInt() (value int)
- func (g *GopassCredential) MustGetAsString() (credential string)
- func (c *GopassCredential) MustGetName() (name string)
- func (g *GopassCredential) MustGetSslCertificate() (sslCert *x509utils.X509Certificate)
- func (g *GopassCredential) MustIncrementIntValue()
- func (g *GopassCredential) MustSetByInt(newValue int)
- func (g *GopassCredential) MustSetByString(newValue string)
- func (g *GopassCredential) MustSetName(name string)
- func (g *GopassCredential) MustWriteIntoFile(outputFile files.File, verbose bool)
- func (g *GopassCredential) MustWriteIntoTemporaryFile(verbose bool) (temporaryFile files.File)
- func (c *GopassCredential) SetByInt(newValue int) (err error)
- func (c *GopassCredential) SetByString(newValue string) (err error)
- func (c *GopassCredential) SetName(name string) (err error)
- func (c *GopassCredential) WriteIntoFile(outputFile files.File, verbose bool) (err error)
- func (c *GopassCredential) WriteIntoTemporaryFile(verbose bool) (temporaryFile files.File, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRootCaAndAddToGopass ¶ added in v0.238.0
func CreateRootCaAndAddToGopass(createOptions *x509utils.X509CreateCertificateOptions, gopassOptions *parameteroptions.GopassSecretOptions) (err error)
func CredentialExists ¶ added in v0.239.0
func GetCredentialNameList ¶ added in v0.239.0
func GetCredentialValueAsString ¶ added in v0.239.0
func GetCredentialValueAsString(getOptions *parameteroptions.GopassSecretOptions) (credentialValue string, err error)
func GetCredentialValueAsStringByPath ¶ added in v0.239.0
func GetCredentialValueOrEmptyIfUnsetAsStringByPath ¶ added in v0.239.0
func GetSslCertificate ¶ added in v0.239.0
func GetSslCertificate(getOptions *parameteroptions.GopassSecretOptions) (cert *x509utils.X509Certificate, err error)
func InsertFile ¶ added in v0.239.0
func InsertFile(fileToInsert files.File, gopassOptions *parameteroptions.GopassSecretOptions) (err error)
func InsertFileByString ¶ added in v0.239.0
func InsertFileByString(fileContent string, gopassOptions *parameteroptions.GopassSecretOptions) (err error)
func InsertSecret ¶ added in v0.239.0
func InsertSecret(secretToInsert string, gopassOptions *parameteroptions.GopassSecretOptions) (err error)
func MustCreateRootCaAndAddToGopass ¶ added in v0.239.0
func MustCreateRootCaAndAddToGopass(createOptions *x509utils.X509CreateCertificateOptions, gopassOptions *parameteroptions.GopassSecretOptions)
func MustCredentialExists ¶ added in v0.239.0
func MustGetCredentialNameList ¶ added in v0.239.0
func MustGetCredentialNameList() (credentialNames []string)
func MustGetCredentialValue ¶ added in v0.239.0
func MustGetCredentialValue(getOptions *parameteroptions.GopassSecretOptions) (credentialValue string)
func MustGetCredentialValueAsString ¶ added in v0.239.0
func MustGetCredentialValueAsString(getOptions *parameteroptions.GopassSecretOptions) (credentialValue string)
func MustGetCredentialValueAsStringByPath ¶ added in v0.239.0
func MustGetCredentialValueOrEmptyIfUnsetAsStringByPath ¶ added in v0.239.0
func MustGetSslCertificate ¶ added in v0.239.0
func MustGetSslCertificate(getOptions *parameteroptions.GopassSecretOptions) (cert *x509utils.X509Certificate)
func MustInsertFile ¶ added in v0.239.0
func MustInsertFile(fileToInsert files.File, gopassOptions *parameteroptions.GopassSecretOptions)
func MustInsertSecret ¶ added in v0.239.0
func MustInsertSecret(secretToInsert string, gopassOptions *parameteroptions.GopassSecretOptions)
func MustSecretNameExist ¶ added in v0.239.0
func MustWriteInfoToGopass ¶ added in v0.239.0
func MustWriteInfoToGopass(gopassPath string)
func MustWriteSecretIntoTemporaryFile ¶ added in v0.239.0
func MustWriteSecretIntoTemporaryFile(getOptions *parameteroptions.GopassSecretOptions) (temporaryFile files.File)
func SecretNameExist ¶ added in v0.239.0
func WriteInfoToGopass ¶ added in v0.239.0
func WriteSecretIntoTemporaryFile ¶ added in v0.239.0
func WriteSecretIntoTemporaryFile(getOptions *parameteroptions.GopassSecretOptions) (temporaryFile files.File, err error)
Types ¶
type GopassCredential ¶
type GopassCredential struct {
// contains filtered or unexported fields
}
func Generate ¶ added in v0.239.0
func Generate(credentialName string, verbose bool) (generatedCredential *GopassCredential, err error)
func GetCredential ¶ added in v0.239.0
func GetCredential(getOptions *parameteroptions.GopassSecretOptions) (credential *GopassCredential, err error)
func GetCredentialList ¶ added in v0.239.0
func GetCredentialList() (credentials []*GopassCredential, err error)
func GetGopassCredentialByName ¶
func GetGopassCredentialByName(name string) (credential *GopassCredential, err error)
func MustGenerate ¶ added in v0.239.0
func MustGenerate(credentialName string, verbose bool) (generatedCredential *GopassCredential)
func MustGetCredential ¶ added in v0.239.0
func MustGetCredential(getOptions *parameteroptions.GopassSecretOptions) (credential *GopassCredential)
func MustGetCredentialList ¶ added in v0.239.0
func MustGetCredentialList() (credentials []*GopassCredential)
func MustGetGopassCredentialByName ¶
func MustGetGopassCredentialByName(name string) (credential *GopassCredential)
func NewGopassCredential ¶
func NewGopassCredential() (gopassCredential *GopassCredential)
func (*GopassCredential) Exists ¶
func (c *GopassCredential) Exists() (exists bool, err error)
func (*GopassCredential) GetAsBytes ¶
func (c *GopassCredential) GetAsBytes() (credential []byte, err error)
func (*GopassCredential) GetAsInt ¶
func (c *GopassCredential) GetAsInt() (value int, err error)
func (*GopassCredential) GetAsString ¶
func (c *GopassCredential) GetAsString() (credential string, err error)
func (*GopassCredential) GetName ¶
func (c *GopassCredential) GetName() (name string, err error)
func (*GopassCredential) GetSslCertificate ¶
func (c *GopassCredential) GetSslCertificate() (sslCert *x509utils.X509Certificate, err error)
func (*GopassCredential) IncrementIntValue ¶
func (c *GopassCredential) IncrementIntValue() (err error)
func (*GopassCredential) MustExists ¶
func (g *GopassCredential) MustExists() (exists bool)
func (*GopassCredential) MustGetAsBytes ¶
func (g *GopassCredential) MustGetAsBytes() (credential []byte)
func (*GopassCredential) MustGetAsInt ¶
func (g *GopassCredential) MustGetAsInt() (value int)
func (*GopassCredential) MustGetAsString ¶
func (g *GopassCredential) MustGetAsString() (credential string)
func (*GopassCredential) MustGetName ¶
func (c *GopassCredential) MustGetName() (name string)
func (*GopassCredential) MustGetSslCertificate ¶
func (g *GopassCredential) MustGetSslCertificate() (sslCert *x509utils.X509Certificate)
func (*GopassCredential) MustIncrementIntValue ¶
func (g *GopassCredential) MustIncrementIntValue()
func (*GopassCredential) MustSetByInt ¶
func (g *GopassCredential) MustSetByInt(newValue int)
func (*GopassCredential) MustSetByString ¶
func (g *GopassCredential) MustSetByString(newValue string)
func (*GopassCredential) MustSetName ¶
func (g *GopassCredential) MustSetName(name string)
func (*GopassCredential) MustWriteIntoFile ¶
func (g *GopassCredential) MustWriteIntoFile(outputFile files.File, verbose bool)
func (*GopassCredential) MustWriteIntoTemporaryFile ¶
func (g *GopassCredential) MustWriteIntoTemporaryFile(verbose bool) (temporaryFile files.File)
func (*GopassCredential) SetByInt ¶
func (c *GopassCredential) SetByInt(newValue int) (err error)
func (*GopassCredential) SetByString ¶
func (c *GopassCredential) SetByString(newValue string) (err error)
func (*GopassCredential) SetName ¶
func (c *GopassCredential) SetName(name string) (err error)
func (*GopassCredential) WriteIntoFile ¶
func (c *GopassCredential) WriteIntoFile(outputFile files.File, verbose bool) (err error)
func (*GopassCredential) WriteIntoTemporaryFile ¶
func (c *GopassCredential) WriteIntoTemporaryFile(verbose bool) (temporaryFile files.File, err error)
Click to show internal directories.
Click to hide internal directories.