Documentation ¶
Index ¶
- func AddProject(data map[string]interface{}) error
- func CheckAuth(username, password string) (bool, error)
- func CloseDB()
- func CreateRunner(r *Runner, service Service) error
- func CreateUser(db *gorm.DB) error
- func DeleteProject(id uint) error
- func DestroyTestDB(name string)
- func EditProject(id uint, data interface{}) error
- func ExistProjectByID(id uint) (bool, error)
- func GetAllServicesForProject(services *[]Service, projectId uint) error
- func GetRunner(runner *Runner, service Service) error
- func GetService(service *Service, projectId, serviceId uint) error
- func InitTestDB(name string) *gorm.DB
- func Setup(repository *Repository) *gorm.DB
- type Auth
- type ExecutableStoreDb
- type ExecutableStoreDbItem
- type GitRepository
- type Model
- type ModelNonId
- type Project
- type Repository
- type Runner
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProject ¶
AddProject add a single article
func CreateRunner ¶
func CreateUser ¶ added in v0.2.1
func DestroyTestDB ¶
func DestroyTestDB(name string)
func EditProject ¶
EditProject modify a single article
func ExistProjectByID ¶
ExistProjectByID checks if an project exists based on ID
func GetService ¶
func InitTestDB ¶
Types ¶
type ExecutableStoreDb ¶
type ExecutableStoreDb struct { }
func (ExecutableStoreDb) GetPath ¶
func (s ExecutableStoreDb) GetPath(p string) string
type ExecutableStoreDbItem ¶
type ExecutableStoreDbItem struct { ModelNonId Path string `gorm:"primary_key" json:"Path"` Executable []byte }
func NewExecutableStoreDbItem ¶
func NewExecutableStoreDbItem(p string) ExecutableStoreDbItem
type GitRepository ¶
func (GitRepository) TableName ¶
func (GitRepository) TableName() string
type Model ¶
type Model struct { ModelNonId ID uint `gorm:"primary_key" json:"id"` }
type ModelNonId ¶
type Project ¶
type Project struct { Model Name string `json:"name"` Description string `json:"description"` CreatedBy string `json:"created_by"` ModifiedBy string `json:"modified_by"` State int `json:"state"` GitRepository *GitRepository Services []Service }
func GetProject ¶
GetProject Get a single project based on ID
func GetProjects ¶
GetProjects gets a list of projects based on paging constraints
Click to show internal directories.
Click to hide internal directories.