gopass

package
v0.237.0 Latest Latest
Warning

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

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

Documentation

Index

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)

Jump to

Keyboard shortcuts

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