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 + const LoadApplicationsRequestAdmin + const LoadApplicationsRequestNormalUser + var ErrNoVariable = fmt.Errorf("variable not in the application") + func AddKeyPairToApplication(db database.QueryExecuter, app *sdk.Application, keyname string) error + func AttachPipeline(db database.Executer, appID, pipelineID int64) error + func CountApplicationByProject(db database.Querier, projectID int64) (int, error) + func CountPipeline(db database.Querier, pipelineID int64) (bool, error) + func CreateAudit(db database.QueryExecuter, key string, app *sdk.Application, u *sdk.User) error + func CreateFromWizard(db database.QueryExecuter, app *sdk.Application, p *sdk.Project) error + func DeleteAllApplicationPipeline(db database.Executer, applicationID int64) error + func DeleteAllVariable(db database.Executer, applicationID int64) error + func DeleteApplication(db *sql.Tx, applicationID int64) error + func DeleteVariable(db database.QueryExecuter, app *sdk.Application, variableName string) error + func GetAllPipelineParam(db database.Querier, applicationID, pipelineID int64) ([]sdk.Parameter, error) + func GetAllPipelines(db database.Querier, projectKey, applicationName string) ([]sdk.Pipeline, error) + func GetAllPipelinesByID(db database.Querier, applicationID int64) ([]sdk.ApplicationPipeline, error) + func GetAllVariable(db database.Querier, key, appName string, args ...FuncArg) ([]sdk.Variable, error) + func GetAllVariableByID(db database.Querier, applicationID int64, fargs ...FuncArg) ([]sdk.Variable, error) + func GetAudit(db database.Querier, key, appName string, auditID int64) ([]sdk.Variable, error) + func GetVariableAudit(db database.Querier, key, appName string) ([]sdk.VariableAudit, error) + func Import(db database.QueryExecuter, proj *sdk.Project, app *sdk.Application, ...) error + func ImportPipelines(db database.QueryExecuter, proj *sdk.Project, app *sdk.Application, ...) error + func InsertApplication(db database.QueryExecuter, project *sdk.Project, app *sdk.Application) error + func InsertVariable(db database.QueryExecuter, app *sdk.Application, variable sdk.Variable) error + func IsAttached(db database.Querier, projectID, appID int64, pipelineName string) (bool, error) + func LoadApplicationByGroup(db database.Querier, group *sdk.Group) error + func LoadApplicationByID(db database.Querier, applicationID int64, fargs ...FuncArg) (*sdk.Application, error) + func LoadApplicationByName(db database.Querier, projectKey, appName string, fargs ...FuncArg) (*sdk.Application, error) + func LoadApplicationByPipeline(db database.Querier, pipelineID int64) ([]sdk.Application, error) + func LoadApplications(db database.Querier, projectKey string, allpipelines bool, user *sdk.User) ([]sdk.Application, error) + func LoadCDTree(db *sql.DB, projectkey, appName string, user *sdk.User) ([]sdk.CDPipeline, error) + func LoadGroupByApplication(db database.Querier, application *sdk.Application) error + func LoadVariable(db database.Querier, appID int64, varName string) (sdk.Variable, error) + func PipelineAttached(db *sql.DB, appID, pipID int64) (bool, error) + func RemovePipeline(db *sql.Tx, key, appName, pipelineName string) error + func TriggerPipeline(tx *sql.Tx, h sdk.Hook, branch string, hash string, author string, ...) (bool, error) + func UpdateApplication(db database.QueryExecuter, application *sdk.Application) error + func UpdateLastModified(db database.QueryExecuter, app *sdk.Application) error + func UpdatePipelineApplication(db database.QueryExecuter, app *sdk.Application, pipelineID int64, ...) error + func UpdatePipelineApplicationString(db database.QueryExecuter, app *sdk.Application, pipelineID int64, data string) error + func UpdateVariable(db database.QueryExecuter, app *sdk.Application, variable sdk.Variable) error + type FuncArg func(args *structarg) + func WithClearPassword() FuncArg + func WithEncryptPassword() FuncArg