Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
Id bson.ObjectId `json:"id,omitempty" bson:"_id"` // autogenerated id
Name string `json:"name"` // unique name is usually a hostname
Status Status `json:"status,omitempty" description:"one of [registered|approved|waiting|paused|unavailable|blocked]"`
Type Type `json:"type,omitempty" description:"one of [system]"`
Created time.Time `json:"created,omitempty" description:"when plan is created"`
Updated time.Time `json:"updated,omitempty" description:"when plan is updated"`
}
type AgentList ¶
type AgentList struct {
pagination.Meta `json:",inline"`
Results []*Agent `json:"results"`
}
type Status ¶
type Status string
func (Status) MarshalJSON ¶
It's a hack to show custom type as string in swagger
Click to show internal directories.
Click to hide internal directories.