Documentation
¶
Index ¶
- func CredentialExists(fullCredentialPath string) (credentialExists bool, err error)
- func GetCredentialNameList() (credentialNames []string, err error)
- func GetCredentialValueAsString(getOptions *parameteroptions.GopassSecretOptions) (credentialValue string, err error)
- func GetCredentialValueAsStringByPath(secretPath string) (secretValue string, err error)
- func GetCredentialValueOrEmptyIfUnsetAsStringByPath(secretPath string) (credentialValue string, err error)
- func GetPrivateKey(ctx context.Context, getOptions *parameteroptions.GopassSecretOptions) (crypto.PrivateKey, error)
- func GetSslCertificate(ctx context.Context, getOptions *parameteroptions.GopassSecretOptions) (cert *x509.Certificate, err error)
- func InsertFile(ctx context.Context, fileToInsert files.File, ...) (err error)
- func InsertFileByString(ctx context.Context, fileContent string, ...) (err error)
- func InsertPrivateKey(ctx context.Context, privateKey crypto.PrivateKey, ...) error
- func InsertSecret(ctx context.Context, secretToInsert string, ...) (err error)
- func InsertX509Certificate(ctx context.Context, cert *x509.Certificate, ...) error
- func SecretNameExist(secretName string) (secretExists bool, err error)
- func Sync(ctx context.Context) (err error)
- func WriteInfoToGopass(gopassPath string) (err error)
- func WriteSecretIntoTemporaryFile(ctx context.Context, getOptions *parameteroptions.GopassSecretOptions) (temporaryFile files.File, err error)
- type GopassCredential
- func Generate(ctx context.Context, credentialName string) (generatedCredential *GopassCredential, err error)
- func GetCredential(getOptions *parameteroptions.GopassSecretOptions) (credential *GopassCredential, err error)
- func GetCredentialList() (credentials []*GopassCredential, err error)
- func GetGopassCredentialByName(name string) (credential *GopassCredential, err error)
- func MustGetGopassCredentialByName(name string) (credential *GopassCredential)
- func NewGopassCredential() (gopassCredential *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 (c *GopassCredential) MustGetName() (name string)
- 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(ctx context.Context, outputFile files.File) (err error)
- func (c *GopassCredential) WriteIntoTemporaryFile(ctx context.Context) (temporaryFile files.File, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CredentialExists ¶ added in v0.239.0
func GetCredentialNameList ¶ added in v0.239.0
func GetCredentialValueAsString ¶ added in v0.239.0
func GetCredentialValueAsString(getOptions *parameteroptions.GopassSecretOptions) (credentialValue string, err error)
func GetCredentialValueAsStringByPath ¶ added in v0.239.0
func GetCredentialValueOrEmptyIfUnsetAsStringByPath ¶ added in v0.239.0
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 WriteInfoToGopass ¶ added in v0.239.0
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 (*GopassCredential) WriteIntoTemporaryFile ¶
Click to show internal directories.
Click to hide internal directories.