Documentation
¶
Index ¶
- func DeleteApplication(application *Application) error
- func DeleteApplicationInventory(applicationInventory *ApplicationInventory) error
- func DeleteInventory(inventory *Inventory) error
- func DeleteProject(project *Project) error
- func DeleteRepository(repository *Repository) error
- func DeleteSshKey(key *SshKey) error
- func DeleteTemplate(template *Template) error
- func DeleteUser(user *User) error
- func GetDB() *gorm.DB
- func GetInventoriesByApplicationId(id uint) *[]Inventory
- func GetSettingBoolValue(groupName string, key string, defaultValue bool) bool
- func GetSettingValue(groupName string, key string, defaultValue string) string
- func SaveApplication(application *Application) error
- func SaveApplicationInventory(applicationInventory *ApplicationInventory) error
- func SaveInventory(inventory *Inventory) error
- func SaveJob(job *Job) error
- func SaveJobLog(jobLog *JobLog)
- func SaveProject(project *Project) error
- func SaveRepository(repository *Repository) error
- func SaveSettings(settings *[]Setting) error
- func SaveSshKey(key *SshKey) error
- func SaveTemplate(template *Template) error
- func SaveUser(user *User) error
- func UpdateJobStatus(job *Job, updates map[string]interface{}) error
- type Application
- type ApplicationInventory
- type Inventory
- type Job
- type JobLog
- type JobType
- type Key
- type Password
- type Project
- type ProjectFile
- type Repository
- type Setting
- type SettingGroup
- type SshKey
- type Status
- type Template
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteApplication ¶
func DeleteApplication(application *Application) error
func DeleteApplicationInventory ¶
func DeleteApplicationInventory(applicationInventory *ApplicationInventory) error
func DeleteInventory ¶
func DeleteProject ¶
func DeleteRepository ¶
func DeleteRepository(repository *Repository) error
func DeleteSshKey ¶
func DeleteTemplate ¶
func DeleteUser ¶
func GetSettingBoolValue ¶
func GetSettingValue ¶
func SaveApplication ¶
func SaveApplication(application *Application) error
func SaveApplicationInventory ¶
func SaveApplicationInventory(applicationInventory *ApplicationInventory) error
func SaveInventory ¶
func SaveJobLog ¶
func SaveJobLog(jobLog *JobLog)
func SaveProject ¶
func SaveRepository ¶
func SaveRepository(repository *Repository) error
func SaveSettings ¶
func SaveSshKey ¶
func SaveTemplate ¶
func UpdateJobStatus ¶
Types ¶
type Application ¶
type Application struct { gorm.Model Name string `gorm:"type:text"` AnsibleName string `gorm:"type:text"` Project Project ProjectID uint Repository Repository RepositoryID uint RepositoryArtifact string Inventories []ApplicationInventory AnsiblePlaybook string `gorm:"type:text"` }
func GetApplication ¶
func GetApplication(id uint) *Application
func GetApplications ¶
func GetApplications() ([]*Application, error)
type ApplicationInventory ¶
type ApplicationInventory struct { IsActive bool Application Application ApplicationID uint `gorm:"primary_key"` Inventory Inventory InventoryID uint `gorm:"primary_key"` ApplicationUrls string `gorm:"type:text"` Key SshKey KeyID uint DeletedAt time.Time }
func GetApplicationInventories ¶
func GetApplicationInventories() ([]*ApplicationInventory, error)
func GetApplicationInventory ¶
func GetApplicationInventory(id uint) *ApplicationInventory
type Inventory ¶
type Inventory struct { gorm.Model Name string `gorm:"type:text"` Project Project ProjectID uint SourceFile string ApplicationInventories []ApplicationInventory }
func GetInventories ¶
func GetInventories() []*Inventory
func GetInventory ¶
type Job ¶
type Job struct { gorm.Model Type JobType StartedAt time.Time FinishedAt time.Time Application Application ApplicationID uint Playbook string `gorm:"type:text"` Project Project ProjectID uint Inventory Inventory InventoryID uint Key SshKey KeyID uint Status Status Version string `gorm:"type:text"` ExtraVariables string `gorm:"type:text"` }
func GetLatestDeployments ¶
func GetLatestDeployments() []*Job
func GetLatestSCMPulls ¶
func GetLatestSCMPulls() []*Job
type JobLog ¶
type JobLog struct { gorm.Model `json:"-"` Job Job `json:"-"` JobID uint `json:"-";gorm:"index:job"` Order uint `;json:"-"` Message string `gorm:"type:text"` }
func GetJobLogs ¶
type Password ¶
type Password string
func (Password) MarshalJSON ¶
Marshaler ignores the field value completely.
type Project ¶
type Project struct { gorm.Model Name string `gorm:"type:text"` RepoUrl string `gorm:"type:text"` RepoBranch string `gorm:"type:text"` RepoUser string `gorm:"type:text"` SshKeyID uint SshKey SshKey }
func GetProject ¶
func GetProjects ¶
func GetProjects() []*Project
type ProjectFile ¶
type ProjectFile string
type Repository ¶
type Repository struct { gorm.Model Name string `gorm:"type:text"` Type string `gorm:"type:text"` Url string `gorm:"type:text"` Username string `gorm:"type:text"` Password string `gorm:"type:text"` }
func GetRepositories ¶
func GetRepositories() []*Repository
func GetRepository ¶
func GetRepository(id uint) *Repository
type SettingGroup ¶
func GetSettingGroups ¶
func GetSettingGroups() []*SettingGroup
type SshKey ¶
func GetSshKeys ¶
func GetSshKeys() []*SshKey
type Template ¶
type Template struct { gorm.Model Name string `gorm:"type:text"` Project Project ProjectID uint Inventory Inventory InventoryID uint SshKey SshKey SshKeyID uint Playbook string `gorm:"type:text"` PromptSshKey bool PromptPlaybook bool PromptInventory bool PromptProject bool PromptExtraVariables bool ExtraVariables string `gorm:"type:text"` }
func GetTemplate ¶
func GetTemplates ¶
func GetTemplates() []*Template
Click to show internal directories.
Click to hide internal directories.