Documentation
¶
Index ¶
- Variables
- func DeletePack(w http.ResponseWriter, r *http.Request)
- func GetPack(w http.ResponseWriter, r *http.Request)
- func GetPacks(w http.ResponseWriter, r *http.Request)
- func PostPack(w http.ResponseWriter, r *http.Request)
- func ScheduleDailyRemovalOfDeadPacksAt(time string, packGracePeriodInSeconds int) (*gocron.Scheduler, chan bool)
- type Command
- type Event
- type Pack
- type Repository
Constants ¶
This section is empty.
Variables ¶
View Source
var PackNotFoundErr = errors.New("pack not found")
Functions ¶
func DeletePack ¶
func DeletePack(w http.ResponseWriter, r *http.Request)
Types ¶
type Pack ¶
type Pack struct {
Id string `json:"id" bson:"_id"`
Name string `json:"name"`
Labels map[string]string `json:"labels,omitempty"`
Commands []Command `json:"commands,omitempty"`
Events []Event `json:"events,omitempty"`
LastSeen time.Time `json:"lastSeen,omitempty" bson:"lastSeen,omitempty"`
Links []httputil.Link `json:"links,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.