Documentation ¶
Index ¶
- func CheckDefaultEnv(db database.Querier) error
- func CreateAudit(db database.QueryExecuter, key string, env *sdk.Environment, u *sdk.User) error
- func DeleteAllEnvironment(db database.Executer, projectID int64) error
- func DeleteAllVariable(db database.Executer, environmentID int64) error
- func DeleteEnvironment(db *sql.Tx, environmentID int64) error
- func DeleteVariable(db database.Executer, envID int64, variableName string) error
- func GetAllVariable(db database.Querier, key, envName string, args ...GetAllVariableFuncArg) ([]sdk.Variable, error)
- func GetAllVariableByID(db database.Querier, environmentID int64, args ...GetAllVariableFuncArg) ([]sdk.Variable, error)
- func GetAllVariableNameByProject(db database.Querier, key string) ([]string, error)
- func GetAudit(db database.Querier, auditID int64) ([]sdk.Variable, error)
- func GetEnvironmentAudit(db database.Querier, key, envName string) ([]sdk.VariableAudit, error)
- func InsertEnvironment(db database.Querier, env *sdk.Environment) error
- func InsertVariable(db database.QueryExecuter, environmentID int64, variable *sdk.Variable) error
- func LoadEnvironmentByGroup(db database.Querier, group *sdk.Group) error
- func LoadEnvironmentByName(db database.Querier, projectKey, envName string) (*sdk.Environment, error)
- func LoadEnvironments(db database.Querier, projectKey string, loadDeps bool, user *sdk.User) ([]sdk.Environment, error)
- func UpdateEnvironment(db database.QueryExecuter, environment *sdk.Environment) error
- func UpdateVariable(db database.Executer, envID int64, variable sdk.Variable) error
- type GetAllVariableFuncArg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDefaultEnv ¶
CheckDefaultEnv create default env if not exists
func CreateAudit ¶
func CreateAudit(db database.QueryExecuter, key string, env *sdk.Environment, u *sdk.User) error
CreateAudit Create environment variable audit for the given project
func DeleteAllEnvironment ¶
DeleteAllEnvironment Delete all environment attached to the given project
func DeleteAllVariable ¶
DeleteAllVariable Delete all variables from the given pipeline
func DeleteEnvironment ¶
DeleteEnvironment Delete the given environment
func DeleteVariable ¶
DeleteVariable Delete a variable from the given pipeline
func GetAllVariable ¶
func GetAllVariable(db database.Querier, key, envName string, args ...GetAllVariableFuncArg) ([]sdk.Variable, error)
GetAllVariable Get all variable for the given environment
func GetAllVariableByID ¶
func GetAllVariableByID(db database.Querier, environmentID int64, args ...GetAllVariableFuncArg) ([]sdk.Variable, error)
GetAllVariableByID Get all variable for the given environment
func GetAllVariableNameByProject ¶
GetAllVariableNameByProject Get all variable from all environment
func GetEnvironmentAudit ¶
GetEnvironmentAudit Get environment audit for the given project
func InsertEnvironment ¶
func InsertEnvironment(db database.Querier, env *sdk.Environment) error
InsertEnvironment Insert new environment
func InsertVariable ¶
InsertVariable Insert a new variable in the given environment
func LoadEnvironmentByGroup ¶
LoadEnvironmentByGroup loads all environments where group has access
func LoadEnvironmentByName ¶
func LoadEnvironmentByName(db database.Querier, projectKey, envName string) (*sdk.Environment, error)
LoadEnvironmentByName load the given environment
func LoadEnvironments ¶
func LoadEnvironments(db database.Querier, projectKey string, loadDeps bool, user *sdk.User) ([]sdk.Environment, error)
LoadEnvironments load all environment from the given project
func UpdateEnvironment ¶
func UpdateEnvironment(db database.QueryExecuter, environment *sdk.Environment) error
UpdateEnvironment Update an environment
Types ¶
type GetAllVariableFuncArg ¶
type GetAllVariableFuncArg func(args *structarg)
GetAllVariableFuncArg defines the base type for functional argument of GetAllVariable
func WithClearPassword ¶
func WithClearPassword() GetAllVariableFuncArg
WithClearPassword is a function argument to GetAllVariable
func WithEncryptPassword ¶
func WithEncryptPassword() GetAllVariableFuncArg
WithEncryptPassword is a function argument to GetAllVariable