Documentation
¶
Index ¶
- type 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)
- type GopassService
- func (g *GopassService) CredentialExists(fullCredentialPath string) (credentialExists bool, err error)
- func (g *GopassService) Generate(credentialName string, verbose bool) (generatedCredential *GopassCredential, err error)
- func (g *GopassService) GetCredential(getOptions *parameteroptions.GopassSecretOptions) (credential *GopassCredential, err error)
- func (g *GopassService) GetCredentialList() (credentials []*GopassCredential, err error)
- func (g *GopassService) GetCredentialNameList() (credentialNames []string, err error)
- func (g *GopassService) GetCredentialValueAsString(getOptions *parameteroptions.GopassSecretOptions) (credentialValue string, err error)
- func (g *GopassService) GetCredentialValueAsStringByPath(secretPath string) (secretValue string, err error)
- func (g *GopassService) GetCredentialValueOrEmptyIfUnsetAsStringByPath(secretPath string) (credentialValue string, err error)
- func (g *GopassService) GetGopassCredentialByName(name string) (credential *GopassCredential, err error)
- func (g *GopassService) GetSslCertificate(getOptions *parameteroptions.GopassSecretOptions) (cert *x509utils.X509Certificate, err error)
- func (g *GopassService) InsertFile(fileToInsert files.File, gopassOptions *parameteroptions.GopassSecretOptions) (err error)
- func (g *GopassService) InsertSecret(secretToInsert string, gopassOptions *parameteroptions.GopassSecretOptions) (err error)
- func (g *GopassService) MustCredentialExists(fullCredentialPath string) (credentialExists bool)
- func (g *GopassService) MustGenerate(credentialName string, verbose bool) (generatedCredential *GopassCredential)
- func (g *GopassService) MustGetCredential(getOptions *parameteroptions.GopassSecretOptions) (credential *GopassCredential)
- func (g *GopassService) MustGetCredentialList() (credentials []*GopassCredential)
- func (g *GopassService) MustGetCredentialNameList() (credentialNames []string)
- func (g *GopassService) MustGetCredentialValue(getOptions *parameteroptions.GopassSecretOptions) (credentialValue string)
- func (g *GopassService) MustGetCredentialValueAsString(getOptions *parameteroptions.GopassSecretOptions) (credentialValue string)
- func (g *GopassService) MustGetCredentialValueAsStringByPath(secretPath string) (secretValue string)
- func (g *GopassService) MustGetCredentialValueOrEmptyIfUnsetAsStringByPath(secretPath string) (credentialValue string)
- func (g *GopassService) MustGetGopassCredentialByName(name string) (credential *GopassCredential)
- func (g *GopassService) MustGetSslCertificate(getOptions *parameteroptions.GopassSecretOptions) (cert *x509utils.X509Certificate)
- func (g *GopassService) MustInsertFile(fileToInsert files.File, gopassOptions *parameteroptions.GopassSecretOptions)
- func (g *GopassService) MustInsertSecret(secretToInsert string, gopassOptions *parameteroptions.GopassSecretOptions)
- func (g *GopassService) MustSecretNameExist(secretName string) (secretExists bool)
- func (g *GopassService) MustSync(verbose bool)
- func (g *GopassService) MustWriteInfoToGopass(gopassPath string)
- func (g *GopassService) MustWriteSecretIntoTemporaryFile(getOptions *parameteroptions.GopassSecretOptions) (temporaryFile files.File)
- func (g *GopassService) SecretNameExist(secretName string) (secretExists bool, err error)
- func (g *GopassService) Sync(verbose bool) (err error)
- func (g *GopassService) WriteInfoToGopass(gopassPath string) (err error)
- func (g *GopassService) WriteSecretIntoTemporaryFile(getOptions *parameteroptions.GopassSecretOptions) (temporaryFile files.File, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GopassCredential ¶
type GopassCredential struct {
// contains filtered or unexported fields
}
func GetGopassCredentialByName ¶
func GetGopassCredentialByName(name string) (credential *GopassCredential, err error)
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)
type GopassService ¶
type GopassService struct{}
func Gopass ¶
func Gopass() (gopass *GopassService)
func NewGopassService ¶
func NewGopassService() (g *GopassService)
func (*GopassService) CredentialExists ¶
func (g *GopassService) CredentialExists(fullCredentialPath string) (credentialExists bool, err error)
func (*GopassService) Generate ¶
func (g *GopassService) Generate(credentialName string, verbose bool) (generatedCredential *GopassCredential, err error)
func (*GopassService) GetCredential ¶
func (g *GopassService) GetCredential(getOptions *parameteroptions.GopassSecretOptions) (credential *GopassCredential, err error)
func (*GopassService) GetCredentialList ¶
func (g *GopassService) GetCredentialList() (credentials []*GopassCredential, err error)
func (*GopassService) GetCredentialNameList ¶
func (g *GopassService) GetCredentialNameList() (credentialNames []string, err error)
func (*GopassService) GetCredentialValueAsString ¶
func (g *GopassService) GetCredentialValueAsString(getOptions *parameteroptions.GopassSecretOptions) (credentialValue string, err error)
func (*GopassService) GetCredentialValueAsStringByPath ¶
func (g *GopassService) GetCredentialValueAsStringByPath(secretPath string) (secretValue string, err error)
func (*GopassService) GetCredentialValueOrEmptyIfUnsetAsStringByPath ¶
func (g *GopassService) GetCredentialValueOrEmptyIfUnsetAsStringByPath(secretPath string) (credentialValue string, err error)
func (*GopassService) GetGopassCredentialByName ¶
func (g *GopassService) GetGopassCredentialByName(name string) (credential *GopassCredential, err error)
func (*GopassService) GetSslCertificate ¶
func (g *GopassService) GetSslCertificate(getOptions *parameteroptions.GopassSecretOptions) (cert *x509utils.X509Certificate, err error)
func (*GopassService) InsertFile ¶
func (g *GopassService) InsertFile(fileToInsert files.File, gopassOptions *parameteroptions.GopassSecretOptions) (err error)
func (*GopassService) InsertSecret ¶
func (g *GopassService) InsertSecret(secretToInsert string, gopassOptions *parameteroptions.GopassSecretOptions) (err error)
func (*GopassService) MustCredentialExists ¶
func (g *GopassService) MustCredentialExists(fullCredentialPath string) (credentialExists bool)
func (*GopassService) MustGenerate ¶
func (g *GopassService) MustGenerate(credentialName string, verbose bool) (generatedCredential *GopassCredential)
func (*GopassService) MustGetCredential ¶
func (g *GopassService) MustGetCredential(getOptions *parameteroptions.GopassSecretOptions) (credential *GopassCredential)
func (*GopassService) MustGetCredentialList ¶
func (g *GopassService) MustGetCredentialList() (credentials []*GopassCredential)
func (*GopassService) MustGetCredentialNameList ¶
func (g *GopassService) MustGetCredentialNameList() (credentialNames []string)
func (*GopassService) MustGetCredentialValue ¶
func (g *GopassService) MustGetCredentialValue(getOptions *parameteroptions.GopassSecretOptions) (credentialValue string)
func (*GopassService) MustGetCredentialValueAsString ¶
func (g *GopassService) MustGetCredentialValueAsString(getOptions *parameteroptions.GopassSecretOptions) (credentialValue string)
func (*GopassService) MustGetCredentialValueAsStringByPath ¶
func (g *GopassService) MustGetCredentialValueAsStringByPath(secretPath string) (secretValue string)
func (*GopassService) MustGetCredentialValueOrEmptyIfUnsetAsStringByPath ¶
func (g *GopassService) MustGetCredentialValueOrEmptyIfUnsetAsStringByPath(secretPath string) (credentialValue string)
func (*GopassService) MustGetGopassCredentialByName ¶
func (g *GopassService) MustGetGopassCredentialByName(name string) (credential *GopassCredential)
func (*GopassService) MustGetSslCertificate ¶
func (g *GopassService) MustGetSslCertificate(getOptions *parameteroptions.GopassSecretOptions) (cert *x509utils.X509Certificate)
func (*GopassService) MustInsertFile ¶
func (g *GopassService) MustInsertFile(fileToInsert files.File, gopassOptions *parameteroptions.GopassSecretOptions)
func (*GopassService) MustInsertSecret ¶
func (g *GopassService) MustInsertSecret(secretToInsert string, gopassOptions *parameteroptions.GopassSecretOptions)
func (*GopassService) MustSecretNameExist ¶
func (g *GopassService) MustSecretNameExist(secretName string) (secretExists bool)
func (*GopassService) MustSync ¶
func (g *GopassService) MustSync(verbose bool)
func (*GopassService) MustWriteInfoToGopass ¶
func (g *GopassService) MustWriteInfoToGopass(gopassPath string)
func (*GopassService) MustWriteSecretIntoTemporaryFile ¶
func (g *GopassService) MustWriteSecretIntoTemporaryFile(getOptions *parameteroptions.GopassSecretOptions) (temporaryFile files.File)
func (*GopassService) SecretNameExist ¶
func (g *GopassService) SecretNameExist(secretName string) (secretExists bool, err error)
func (*GopassService) Sync ¶
func (g *GopassService) Sync(verbose bool) (err error)
func (*GopassService) WriteInfoToGopass ¶
func (g *GopassService) WriteInfoToGopass(gopassPath string) (err error)
func (*GopassService) WriteSecretIntoTemporaryFile ¶
func (g *GopassService) WriteSecretIntoTemporaryFile(getOptions *parameteroptions.GopassSecretOptions) (temporaryFile files.File, err error)
Click to show internal directories.
Click to hide internal directories.