Documentation
¶
Index ¶
- Constants
- func GetResult(s cache.Storage, key string) (result []byte, ok bool)
- func SetResult(s cache.Storage, result []byte, key string, ttk int) error
- func TaksStatus(i int) string
- type ApiPath
- type Configuration
- type EzbAccounts
- type EzbActions
- type EzbControllers
- type EzbJobs
- type EzbLogs
- type EzbParamMeta
- type EzbParams
- type EzbStas
- type EzbTags
- type EzbTasks
- type EzbWorkers
- type RestQuery
- type User
- type ViewApi
Constants ¶
View Source
const ( // PENDING: the job is created but not started PENDING taksStatus = iota RUNNING FAILED FINISH )
Variables ¶
This section is empty.
Functions ¶
func TaksStatus ¶ added in v0.1.4
Types ¶
type ApiPath ¶
func GetApiPath ¶
func GetApiPath(s cache.Storage, c *Configuration) (apiPath []ApiPath, err error)
type Configuration ¶
type Configuration struct { Listen string `json:"listen"` EzbDB string `json:"ezb_db"` Logger confmanager.Logger `json:"logger"` CacheL1 int `json:"cacheL1"` PrivateKey string `json:"privatekey"` PublicCert string `json:"publiccert"` CaCert string `json:"cacert"` ServiceName string `json:"servicename"` ServiceFullName string `json:"servicefullname"` EzbPki string `json:"ezb_pki"` SAN []string `json:"san"` }
type EzbAccounts ¶
type EzbAccounts struct { ID int `json:"id"` Name string `json:"name"` Enable bool `json:"enable"` Isadmin bool `json:"isadmin"` Comment string `json:"comment"` LastRequest time.Time `json:"lastrequest"` Type string `json:"type"` Real string `json:"real"` Email string `json:"email"` EzbStasID int `json:"stasid"` STA EzbStas `json:"sta"` }
func GetAccount ¶
func GetAccount(s cache.Storage, c *Configuration, userID string) (account EzbAccounts, err error)
type EzbActions ¶
type EzbActions struct { ID int `json:"id"` Name string `json:"name"` Enable bool `json:"enable" ` Comment string `json:"comment"` LastRequest time.Time `json:"lastrequest"` Tags []*EzbTags `json:"tags"` Jobs EzbJobs `json:"jobs"` Workers []EzbWorkers `json:"workers"` Path string `json:"path"` Query string `json:"query"` Body string `json:"body"` Constant string `json:"constant"` Deprecated int `json:"deprecated"` Anonymous bool `json:"anonymous"` Controllers EzbControllers `json:"controllers"` Polling bool `gorm:"not null;default:'0'" json:"polling"` }
func GetAction ¶
func GetAction(s cache.Storage, c *Configuration, actionID int) (action EzbActions, err error)
type EzbControllers ¶
type EzbLogs ¶
type EzbLogs struct { ID int `json:"id"` Date time.Time `json:"date"` Status string `json:"status"` Ipaddr string `json:"ipaddr"` Token string `json:"token"` Controller string `json:"controller"` Action string `json:"action"` URL string `json:"url"` Bastion string `json:"bastion"` Worker string `json:"worker"` Issuer string `json:"issuer"` Xtrack string `json:"xtrack"` Deprecated bool `json:"deprecated"` Methode string `json:"methode"` Duration int64 `json:"duration"` Size int `json:"size"` Error string `json:"error"` Account string `json:"account"` }
type EzbParamMeta ¶ added in v0.1.4
type EzbParamMeta struct {
Job EzbJobs `json:"job"`
}
type EzbParams ¶ added in v0.1.4
type EzbParams struct { Data map[string]string `json:"data"` Meta EzbParamMeta `json:"meta"` }
type EzbStas ¶
type EzbTasks ¶ added in v0.1.4
type EzbTasks struct { UUID string `json:"uuid"` CreateDate time.Time `json:"createddate"` UpdateDate time.Time `json:"updatedate"` Status string `json:"status"` // TokenID string `json:"tokenid"` // PID int `json:"pid"` // Parameters string `json:"parameters"` StatusURL string `json:"statusurl"` LogURL string `json:"logurl"` ResultURL string `json:"resulturl"` }
type EzbWorkers ¶
type EzbWorkers struct { ID int `json:"id"` Name string `json:"name"` Enable bool `json:"enable"` Comment string `json:"comment"` Fqdn string `json:"fqdn"` Register time.Time `json:"register"` LastRequest time.Time `json:"lastrequest"` Request int `json:"request"` }
func GetWorkers ¶
func GetWorkers(s cache.Storage, c *Configuration) (workers []EzbWorkers, err error)
type ViewApi ¶
type ViewApi struct { Account string `json:"account"` Accountid int `json:"accountid"` Ctrl string `json:"ctrl"` Ctrlid int `json:"ctrlid"` Ctrlver int `json:"ctrlver"` Action string `json:"action"` Actionid int `json:"actionid"` Job string `json:"job"` Jobid int `json:"jobid"` Access string `json:"access"` }
func GetViewApi ¶
Click to show internal directories.
Click to hide internal directories.