Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DSN ¶
type DSN struct { Driver string `json:"driver"` Username string `json:"username"` Password string `json:"password"` Hostname string `json:"hostname"` Port int `json:"port"` Name string `json:"name"` }
DSN struct
func (*DSN) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*DSN) LoadFromJSON ¶
LoadFromJSON update object from json
type Deployment ¶
type Deployment struct { ID int `json:"id"` UID int `json:"uid"` UUID string `json:"uuid"` Name string `json:"name"` HostsList string `json:"hostsList"` HostGroupsList string `json:"hostGroupsList"` HostFilters string `json:"hostFilters"` HostGroupsFilters string `json:"hostGroupsFilters"` UpgradeType string `json:"upgradeType"` PackagesToUpgrade string `json:"packageToUpgrade"` PackagesToExclude string `json:"packagesToExclude"` PrePatchScript string `json:"prePatchScript"` PostPatchScript string `json:"postPatchScript"` PostPatchRebootOption string `json:"postPatchRebootOption"` RolloutOptions string `json:"rolloutOptions"` ScheduleType string `json:"scheduleType"` ScheduleTime time.Time `json:"scheduleTime"` Meta string `json:"meta"` Status string `json:"status"` RunAt time.Time `json:"runAt"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
Deployment struct
func (*Deployment) ConvertToJSON ¶
func (d *Deployment) ConvertToJSON() (string, error)
ConvertToJSON convert object to json
func (*Deployment) LoadFromJSON ¶
func (d *Deployment) LoadFromJSON(data []byte) error
LoadFromJSON update object from json
type Deployments ¶
type Deployments struct {
Deployments []Deployment `json:"deployments"`
}
Deployments struct
func (*Deployments) ConvertToJSON ¶
func (d *Deployments) ConvertToJSON() (string, error)
ConvertToJSON convert object to json
func (*Deployments) LoadFromJSON ¶
func (d *Deployments) LoadFromJSON(data []byte) error
LoadFromJSON update object from json
type Host ¶
type Host struct { ID int `json:"id"` UID int `json:"uid"` HGID int `json:"hgid"` UUID string `json:"uuid"` Name string `json:"name"` HostName string `json:"hostName"` PrivateIPs string `json:"privateIPs"` PublicIPs string `json:"publicIPs"` Labels string `json:"labels"` Status string `json:"status"` Meta string `json:"meta"` ReportedAt time.Time `json:"reportedAt"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
Host struct
func (*Host) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*Host) LoadFromJSON ¶
LoadFromJSON update object from json
type HostGroup ¶
type HostGroup struct { ID int `json:"id"` UID int `json:"uid"` UUID string `json:"uuid"` Name string `json:"name"` ApiKey string `json:"apiKey"` Labels string `json:"labels"` Meta string `json:"meta"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
HostGroup struct
func (*HostGroup) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*HostGroup) LoadFromJSON ¶
LoadFromJSON update object from json
type HostGroups ¶
type HostGroups struct {
HostGroups []HostGroup `json:"hostGroups"`
}
HostGroups struct
func (*HostGroups) ConvertToJSON ¶
func (h *HostGroups) ConvertToJSON() (string, error)
ConvertToJSON convert object to json
func (*HostGroups) LoadFromJSON ¶
func (h *HostGroups) LoadFromJSON(data []byte) error
LoadFromJSON update object from json
type Hosts ¶
type Hosts struct {
Hosts []Host `json:"hosts"`
}
Hosts struct
func (*Hosts) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*Hosts) LoadFromJSON ¶
LoadFromJSON update object from json
type Log ¶
type Log struct { ID int `json:"id"` UID int `json:"uid"` HID int `json:"hid"` HGID int `json:"hgid"` DID int `json:"did"` UUID string `json:"uuid"` Value string `json:"value"` Meta string `json:"meta"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
Log struct
func (*Log) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*Log) LoadFromJSON ¶
LoadFromJSON update object from json
type Logs ¶
type Logs struct {
Logs []Log `json:"logs"`
}
Logs struct
func (*Logs) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*Logs) LoadFromJSON ¶
LoadFromJSON update object from json
type Option ¶
type Option struct { ID int `json:"id"` UUID string `json:"uuid"` Key string `json:"key"` Value string `json:"value"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
Option struct
func (*Option) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*Option) LoadFromJSON ¶
LoadFromJSON update object from json
type Options ¶
type Options struct {
Options []Option `json:"options"`
}
Options struct
func (*Options) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*Options) LoadFromJSON ¶
LoadFromJSON update object from json
type Session ¶
type Session struct { ID int `json:"id"` UID int `json:"uid"` HID int `json:"hid"` UUID string `json:"uuid"` Value string `json:"value"` Meta string `json:"meta"` CanExpire string `json:"canExpire"` ExpiredAt time.Time `json:"expiredAt"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
Session struct
func (*Session) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*Session) LoadFromJSON ¶
LoadFromJSON update object from json
type Sessions ¶
type Sessions struct {
Sessions []Session `json:"sessions"`
}
Sessions struct
func (*Sessions) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*Sessions) LoadFromJSON ¶
LoadFromJSON update object from json
type Task ¶
type Task struct { ID int `json:"id"` DID int `json:"did"` UUID string `json:"uuid"` Payload string `json:"payload"` Result string `json:"result"` Status string `json:"status"` Meta string `json:"meta"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
Task struct
func (*Task) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*Task) LoadFromJSON ¶
LoadFromJSON update object from json
type Tasks ¶
type Tasks struct {
Tasks []Task `json:"tasks"`
}
Tasks struct
func (*Tasks) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*Tasks) LoadFromJSON ¶
LoadFromJSON update object from json
type User ¶
type User struct { ID int `json:"id"` UUID string `json:"uuid"` Name string `json:"name"` Email string `json:"email"` PasswordHash string `json:"passwordHash"` Status string `json:"status"` Role string `json:"role"` Meta string `json:"meta"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
User struct
func (*User) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*User) LoadFromJSON ¶
LoadFromJSON update object from json
type Users ¶
type Users struct {
Users []User `json:"users"`
}
Users struct
func (*Users) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*Users) LoadFromJSON ¶
LoadFromJSON update object from json