Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FsAccessGroup ¶
type FsAccessGroup struct { Group string `json:"group"` List []*FsAccessInfo `json:"list"` }
FsAccessGroup represents a collection of Fs access
type FsAccessInfo ¶
type FsAccessInfo struct { Path string `json:"path"` Expected string `json:"expected"` Actual string `json:"actual"` Comment string `json:"comment"` }
FsAccessInfo represents the access assertion info
type Knative ¶
type Knative struct { Meta *RequestMetadata `json:"meta"` InfoURI string `json:"infoURI"` EnvVars map[string]interface{} `json:"envs"` Access []*FsAccessGroup `json:"access"` }
Knative represents simple Knative object
type RequestMetadata ¶
type RequestMetadata struct { ID string `json:"id"` Ts time.Time `json:"ts"` URI string `json:"uri"` Host string `json:"host"` Method string `json:"method"` }
RequestMetadata represents metadata of the request
type SimpleMeasurement ¶
type SimpleMeasurement struct { Value float64 `json:"value,omitempty"` Context string `json:"context,omitempty"` }
SimpleMeasurement represents int measurement
type SimpleNodeInfo ¶
type SimpleNodeInfo struct { ID string `json:"hostId,omitempty"` BootTime time.Time `json:"bootTs,omitempty"` OS string `json:"os,omitempty"` Resources *SimpleResourceInfo `json:"resources,omitempty"` }
SimpleNodeInfo represents host info data
type SimplePodInfo ¶
type SimplePodInfo struct { Hostname string `json:"hostname,omitempty"` Limits *SimpleResourceInfo `json:"limits,omitempty"` }
SimplePodInfo represents pod info
type SimpleRequest ¶
type SimpleRequest struct { Meta *RequestMetadata `json:"meta"` Headers map[string]interface{} `json:"head"` EnvVars map[string]interface{} `json:"envs"` }
SimpleRequest represents simple request
type SimpleResource ¶
type SimpleResource struct { Meta *RequestMetadata `json:"meta,omitempty"` Node *SimpleNodeInfo `json:"node,omitempty"` Pod *SimplePodInfo `json:"pod,omitempty"` }
SimpleResource represents simple resource
type SimpleResourceInfo ¶
type SimpleResourceInfo struct { RAM *SimpleMeasurement `json:"ram,omitempty"` CPU *SimpleMeasurement `json:"cpu,omitempty"` GPU *SimpleMeasurement `json:"gpu,omitempty"` }
SimpleResourceInfo represents node cpu
Click to show internal directories.
Click to hide internal directories.