models

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigDirPath  = "/app/config/"
	ConfigFileName = "kubeshark-config.json"
	DataDirPath    = "/app/data/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MaxDBSizeBytes     int64         `json:"maxDBSizeBytes"`
	InsertionFilter    string        `json:"insertionFilter"`
	PullPolicy         string        `json:"pullPolicy"`
	LogLevel           logging.Level `json:"logLevel"`
	WorkerResources    Resources     `json:"workerResources"`
	ResourcesNamespace string        `json:"resourceNamespace"`
	DatabasePath       string        `json:"databasePath"`
}

type HealthResponse

type HealthResponse struct {
	TargettedPods         []*PodInfo      `json:"targettedPods"`
	ConnectedWorkersCount int             `json:"connectedWorkersCount"`
	WorkersStatus         []*WorkerStatus `json:"workersStatus"`
}

type NodeToPodsMap

type NodeToPodsMap map[string][]v1.Pod

func (NodeToPodsMap) Summary

func (np NodeToPodsMap) Summary() map[string][]string

type PodInfo

type PodInfo struct {
	Name      string `json:"name"`
	NodeName  string `json:"nodeName"`
	Namespace string `json:"namespace"`
}

type Resources

type Resources struct {
	CpuLimit       string `yaml:"cpu-limit" default:"750m"`
	MemoryLimit    string `yaml:"memory-limit" default:"1Gi"`
	CpuRequests    string `yaml:"cpu-requests" default:"50m"`
	MemoryRequests string `yaml:"memory-requests" default:"50Mi"`
}

type TargettedPodStatus

type TargettedPodStatus struct {
	Name        string `json:"name"`
	Namespace   string `json:"namespace"`
	IsTargetted bool   `json:"isTargetted"`
}

type VersionResponse

type VersionResponse struct {
	Ver string `json:"ver"`
}

type WorkerStatus

type WorkerStatus struct {
	Name     string `json:"name"`
	NodeName string `json:"nodeName"`
	Status   string `json:"status"`
}

Jump to

Keyboard shortcuts

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