gopass

package
v0.370.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 GetPrivateKey added in v0.297.0

func GetPrivateKey(ctx context.Context, getOptions *parameteroptions.GopassSecretOptions) (crypto.PrivateKey, error)

func GetSslCertificate added in v0.239.0

func GetSslCertificate(ctx context.Context, getOptions *parameteroptions.GopassSecretOptions) (cert *x509.Certificate, err error)

func InsertFile added in v0.239.0

func InsertFile(ctx context.Context, fileToInsert files.File, gopassOptions *parameteroptions.GopassSecretOptions) (err error)

func InsertFileByString added in v0.239.0

func InsertFileByString(ctx context.Context, fileContent string, gopassOptions *parameteroptions.GopassSecretOptions) (err error)

func InsertPrivateKey added in v0.297.0

func InsertPrivateKey(ctx context.Context, privateKey crypto.PrivateKey, gopassOptions *parameteroptions.GopassSecretOptions) error

func InsertSecret added in v0.239.0

func InsertSecret(ctx context.Context, secretToInsert string, gopassOptions *parameteroptions.GopassSecretOptions) (err error)

func InsertX509Certificate added in v0.297.0

func InsertX509Certificate(ctx context.Context, cert *x509.Certificate, gopassOptions *parameteroptions.GopassSecretOptions) error

func SecretNameExist added in v0.239.0

func SecretNameExist(secretName string) (secretExists bool, err error)

func Sync added in v0.239.0

func Sync(ctx context.Context) (err error)

func WriteInfoToGopass added in v0.239.0

func WriteInfoToGopass(gopassPath string) (err error)

func WriteSecretIntoTemporaryFile added in v0.239.0

func WriteSecretIntoTemporaryFile(ctx context.Context, 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(ctx context.Context, credentialName string) (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 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) MustGetName

func (c *GopassCredential) MustGetName() (name string)

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(ctx context.Context, outputFile files.File) (err error)

func (*GopassCredential) WriteIntoTemporaryFile

func (c *GopassCredential) WriteIntoTemporaryFile(ctx context.Context) (temporaryFile files.File, err error)

Jump to

Keyboard shortcuts

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