Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountSecrets ¶ added in v1.21.0
func CountSecrets(ctx context.Context, opts *FindSecretsOptions) (int64, error)
CountSecrets counts the secrets
Types ¶
type ErrSecretNotFound ¶ added in v1.21.0
type ErrSecretNotFound struct {
Name string
}
ErrSecretNotFound represents a "secret not found" error.
func (ErrSecretNotFound) Error ¶ added in v1.21.0
func (err ErrSecretNotFound) Error() string
func (ErrSecretNotFound) Unwrap ¶ added in v1.21.0
func (err ErrSecretNotFound) Unwrap() error
type FindSecretsOptions ¶
type Secret ¶
type Secret struct {
ID int64
OwnerID int64 `xorm:"INDEX UNIQUE(owner_repo_name) NOT NULL"`
RepoID int64 `xorm:"INDEX UNIQUE(owner_repo_name) NOT NULL DEFAULT 0"`
Name string `xorm:"UNIQUE(owner_repo_name) NOT NULL"`
Data string `xorm:"LONGTEXT"` // encrypted data
CreatedUnix timeutil.TimeStamp `xorm:"created NOT NULL"`
}
Secret represents a secret
func FindSecrets ¶
func FindSecrets(ctx context.Context, opts FindSecretsOptions) ([]*Secret, error)
Click to show internal directories.
Click to hide internal directories.