types

package
v0.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

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

func NewNodeInfo

func NewNodeInfo() *SimpleNodeInfo

NewNodeInfo returns fully hydrated node

type SimplePodInfo

type SimplePodInfo struct {
	Hostname string              `json:"hostname,omitempty"`
	Limits   *SimpleResourceInfo `json:"limits,omitempty"`
}

SimplePodInfo represents pod info

func NewPodInfo

func NewPodInfo() *SimplePodInfo

NewPodInfo returns fully hydrated pod

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL