Versions in this module Expand all Collapse all v0 v0.4.0 Jan 27, 2017 v0.3.0 Jan 12, 2017 Changes in this version + func AddKeyPairToEnvironment(db database.QueryExecuter, envID int64, keyname string) error + 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 Exists(db database.Querier, projectKey, envName string) (bool, 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 GetVariable(db database.Querier, key, envName string, varName string, ...) (sdk.Variable, error) + func Import(db database.QueryExecuter, proj *sdk.Project, env *sdk.Environment, ...) 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 LoadEnvironmentByID(db database.Querier, ID int64) (*sdk.Environment, 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 func(args *structarg) + func WithClearPassword() GetAllVariableFuncArg + func WithEncryptPassword() GetAllVariableFuncArg