gopassutils

package
v0.434.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CredentialExists

func CredentialExists(fullCredentialPath string) (credentialExists bool, err error)

func GetCredentialNameList

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

func GetCredentialValueAsString

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

func GetCredentialValueAsStringByPath

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

func GetCredentialValueOrEmptyIfUnsetAsStringByPath

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

func GetSslCertificate

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

func InsertFile

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

func InsertFileByString

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

func InsertPrivateKey

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

func InsertSecret

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

func InsertX509Certificate

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

func SecretNameExist

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

func Sync

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

func WriteInfoToGopass

func WriteInfoToGopass(gopassPath string) (err error)

func WriteSecretIntoTemporaryFile

func WriteSecretIntoTemporaryFile(ctx context.Context, getOptions *parameteroptions.GopassSecretOptions) (temporaryFile filesinterfaces.File, err error)

Types

type GopassCredential

type GopassCredential struct {
	// contains filtered or unexported fields
}

func Generate

func Generate(ctx context.Context, credentialName string) (generatedCredential *GopassCredential, err error)

func GetCredential

func GetCredential(getOptions *parameteroptions.GopassSecretOptions) (credential *GopassCredential, err error)

func GetCredentialList

func GetCredentialList() (credentials []*GopassCredential, err error)

func GetGopassCredentialByName

func GetGopassCredentialByName(name string) (credential *GopassCredential, err error)

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) 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 filesinterfaces.File) (err error)

func (*GopassCredential) WriteIntoTemporaryFile

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

Jump to

Keyboard shortcuts

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