gopass

package
v0.244.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 CredentialExists(fullCredentialPath string) (credentialExists bool, err error)

func GetCredentialNameList added in v0.239.0

func GetCredentialNameList() (credentialNames []string, err error)

func GetCredentialValueAsString added in v0.239.0

func GetCredentialValueAsString(getOptions *parameteroptions.GopassSecretOptions) (credentialValue string, err error)

func GetCredentialValueAsStringByPath added in v0.239.0

func GetCredentialValueAsStringByPath(secretPath string) (secretValue string, err error)

func GetCredentialValueOrEmptyIfUnsetAsStringByPath added in v0.239.0

func GetCredentialValueOrEmptyIfUnsetAsStringByPath(secretPath string) (credentialValue string, err error)

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 MustCredentialExists(fullCredentialPath string) (credentialExists bool)

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 MustGetCredentialValueAsStringByPath(secretPath string) (secretValue string)

func MustGetCredentialValueOrEmptyIfUnsetAsStringByPath added in v0.239.0

func MustGetCredentialValueOrEmptyIfUnsetAsStringByPath(secretPath string) (credentialValue string)

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 MustSecretNameExist(secretName string) (secretExists bool)

func MustSync added in v0.239.0

func MustSync(verbose bool)

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 SecretNameExist(secretName string) (secretExists bool, err error)

func Sync added in v0.239.0

func Sync(verbose bool) (err error)

func WriteInfoToGopass added in v0.239.0

func WriteInfoToGopass(gopassPath string) (err error)

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)

Jump to

Keyboard shortcuts

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