Documentation
¶
Index ¶
- func CreateOrUpdateGlobalSecret(ctx context.Context, name, data, description string) (*secret_model.Secret, bool, error)
- func CreateOrUpdateSecret(ctx context.Context, ownerID, repoID int64, name, data, description string) (*secret_model.Secret, bool, error)
- func DeleteGlobalSecretByID(ctx context.Context, secretID int64) error
- func DeleteSecretByID(ctx context.Context, ownerID, repoID, secretID int64) error
- func DeleteSecretByName(ctx context.Context, ownerID, repoID int64, name string) error
- func ValidateName(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateGlobalSecret ¶ added in v3.1.55
func CreateOrUpdateGlobalSecret(ctx context.Context, name, data, description string) (*secret_model.Secret, bool, error)
CreateOrUpdateGlobalSecret creates or updates a global secret (OwnerID=0, RepoID=0) Global secrets are available to all workflows system-wide
func CreateOrUpdateSecret ¶
func DeleteGlobalSecretByID ¶ added in v3.1.55
DeleteGlobalSecretByID deletes a global secret by ID
func DeleteSecretByID ¶
func DeleteSecretByName ¶
Types ¶
This section is empty.
Source Files
¶
- secrets.go
- validation.go
Click to show internal directories.
Click to hide internal directories.