Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IDFromFile ¶
Types ¶
type Dir ¶
type Dir struct {
// contains filtered or unexported fields
}
Dir is the meta dir core writes over ssh, seen by the runtime one kind of workload belongs to.
func NewDir ¶
NewDir creates the dir: it is on tmpfs, so it is empty after a reboot and inotify has nothing to watch.
func (*Dir) List ¶
List returns the meta file of every workload of this dir's kind, skipping the ones it cannot read.
type File ¶
type File struct {
ID string `json:"id"`
Kind Kind `json:"kind"`
Appname string `json:"appname"`
Entrypoint string `json:"entrypoint"`
Ident string `json:"ident"`
Podname string `json:"podname"`
Nodename string `json:"nodename"`
CoreID string `json:"coreid"`
Labels map[string]string `json:"labels"`
HealthCheck *healthCheck `json:"healthcheck"`
Networks map[string]string `json:"networks"`
Cgroup string `json:"cgroup"`
NetnsPID int `json:"netns_pid"`
Iface string `json:"iface"`
Log logSource `json:"log"`
}
File is the metadata core writes next to a workload it created over ssh.
Click to show internal directories.
Click to hide internal directories.