Documentation ¶
Index ¶
Constants ¶
View Source
const ( SonarqubeService Type = iota // sonarqube JenkinsService // jenkins Running State = iota // running Pending // pending Stopped // stopped )
Variables ¶
This section is empty.
Functions ¶
func StateStrings ¶
func StateStrings() []string
StateStrings returns a slice of all String values of the enum
func TypeStrings ¶
func TypeStrings() []string
TypeStrings returns a slice of all String values of the enum
Types ¶
type Configuration ¶
type Configuration struct {
UseCases []UseCaseConfiguration `json:"usecases"`
}
func (*Configuration) FromDB ¶
func (c *Configuration) FromDB(dbc *db.Configuration)
func (*Configuration) ToDB ¶
func (c *Configuration) ToDB() *db.Configuration
type Credential ¶
type Credential struct { Username string `json:"username"` Password string `json:"password"` AccessToken string `json:"access_token"` }
func (*Credential) FromDB ¶
func (c *Credential) FromDB(dbc *db.Credential)
func (*Credential) ToDB ¶
func (c *Credential) ToDB() *db.Credential
type Deployment ¶
type Deployment struct { Canonical string `json:"canonical"` Instances []Instance `json:"instances"` Type Type `json:"type"` CallbackURL string `json:"callback_url"` CreatedAt time.Time `json:"created_at"` }
func (*Deployment) FromDB ¶
func (d *Deployment) FromDB(dbd *db.Deployment)
func (*Deployment) ToDB ¶
func (d *Deployment) ToDB() *db.Deployment
type Instance ¶
type Instance struct { URL string `json:"url"` State State `json:"state"` AdminCredential Credential `json:"admin_cred"` UserCredential Credential `json:"user_cred"` }
type PluginInformation ¶
func (*PluginInformation) FromDB ¶
func (p *PluginInformation) FromDB(dbp *db.PluginInformation)
func (*PluginInformation) ToDB ¶
func (p *PluginInformation) ToDB() *db.PluginInformation
type ServiceConfiguration ¶
type ServiceConfiguration struct { Type Type `json:"type"` Version string `json:"version"` Plugins []PluginInformation `json:"plugins"` }
func (*ServiceConfiguration) FromDB ¶
func (s *ServiceConfiguration) FromDB(dbs *db.ServiceConfiguration)
func (*ServiceConfiguration) ToDB ¶
func (s *ServiceConfiguration) ToDB(usecase string) *db.ServiceConfiguration
type State ¶
type State uint
func StateString ¶
StateString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
type Type ¶
type Type uint
func TypeString ¶
TypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
type UseCaseConfiguration ¶
type UseCaseConfiguration struct { Name string `json:"name"` Services []ServiceConfiguration `json:"services"` }
func (*UseCaseConfiguration) FromDB ¶
func (uc *UseCaseConfiguration) FromDB(dbuc *db.UseCaseConfiguration)
func (*UseCaseConfiguration) ToDB ¶
func (uc *UseCaseConfiguration) ToDB() *db.UseCaseConfiguration
Click to show internal directories.
Click to hide internal directories.