types

package
v0.0.0-...-207676e Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	K8SManifest  string `json:"k8sManifest"`
	ExternalData string `json:"externalData"`
	RequestType  string `json:"requestType"`
	Username     string `json:"username"`
	Namespace    string `json:"namespace"`
}

type ChaosData

type ChaosData struct {
	EngineUID              string                `json:"engineUID"`
	EngineContext          string                `json:"engineContext"`
	EngineName             string                `json:"engineName"`
	Namespace              string                `json:"namespace"`
	ExperimentName         string                `json:"experimentName"`
	ExperimentStatus       string                `json:"experimentStatus"`
	LastUpdatedAt          string                `json:"lastUpdatedAt"`
	ExperimentVerdict      string                `json:"experimentVerdict"`
	ExperimentPod          string                `json:"experimentPod"`
	RunnerPod              string                `json:"runnerPod"`
	ProbeSuccessPercentage string                `json:"probeSuccessPercentage"`
	FailStep               string                `json:"failStep"`
	ChaosResult            *v1alpha1.ChaosResult `json:"chaosResult"`
}

ChaosData consists of ChaosEngine related data

type ClusterConfirm

type ClusterConfirm struct {
	IsClusterConfirmed bool   `json:"isClusterConfirmed"`
	NewAccessKey       string `json:"newAccessKey"`
	ClusterID          string `json:"clusterID"`
}

type ClusterConnect

type ClusterConnect struct {
	ProjectID string `json:"projectID"`
	Action    Action `json:"action"`
}

type Data

type Data struct {
	ClusterConfirm ClusterConfirm `json:"confirmClusterRegistration"`
	ClusterConnect ClusterConnect `json:"clusterConnect"`
}

type KubeGVRRequest

type KubeGVRRequest struct {
	Group    string `json:"group"`
	Version  string `json:"version"`
	Resource string `json:"resource"`
}

type KubeObjRequest

type KubeObjRequest struct {
	RequestID      string
	ClusterID      string            `json:"clusterID"`
	ObjectType     string            `json:"objectType"`
	Workloads      []Workload        `json:"workloads"`
	KubeGVRRequest []*KubeGVRRequest `json:"kubeObjRequest"`
}

type KubeObject

type KubeObject struct {
	Namespace string       `json:"namespace"`
	Data      []ObjectData `json:"data"`
}

KubeObject consists of all the namespaces and its related K8S object details

type Node

type Node struct {
	Name       string     `json:"name"`
	Phase      string     `json:"phase"`
	Message    string     `json:"message"`
	StartedAt  string     `json:"startedAt"`
	FinishedAt string     `json:"finishedAt"`
	Children   []string   `json:"children"`
	Type       string     `json:"type"`
	ChaosExp   *ChaosData `json:"chaosData,omitempty"`
}

Node consist of node/step data

type ObjectData

type ObjectData struct {
	Name   string            `json:"name"`
	Kind   string            `json:"kind"`
	Labels map[string]string `json:"labels"`
}

ObjectData consists of Kubernetes Objects related details

type OperationMessage

type OperationMessage struct {
	Payload json.RawMessage `json:"payload,omitempty"`
	ID      string          `json:"id,omitempty"`
	Type    string          `json:"type"`
}

type Payload

type Payload struct {
	Errors interface{} `json:"errors"`
	Data   Data        `json:"data"`
}

type PodLog

type PodLog struct {
	MainPod  string            `json:"mainLogs"`
	ChaosPod map[string]string `json:"chaosLogs",omitempty`
}

PodLog consists logs from Chaos related pods and experiment pods

type PodLogRequest

type PodLogRequest struct {
	RequestID      string
	ClusterID      string  `json:"clusterID"`
	WorkflowRunID  string  `json:"workflowRunID"`
	PodName        string  `json:"podName"`
	PodNamespace   string  `json:"podNamespace"`
	PodType        string  `json:"podType"`
	ExpPod         *string `json:"expPod"`
	RunnerPod      *string `json:"runnerPod"`
	ChaosNamespace *string `json:"chaosNamespace"`
}

type RawData

type RawData struct {
	Payload Payload `json:"payload"`
	Type    string  `json:"type"`
}

type WorkflowEvent

type WorkflowEvent struct {
	WorkflowType      string          `json:"workflowType"`
	WorkflowID        string          `json:"-"`
	EventType         string          `json:"eventType"`
	UID               string          `json:"-"`
	Namespace         string          `json:"namespace"`
	Name              string          `json:"name"`
	CreationTimestamp string          `json:"creationTimestamp"`
	Phase             string          `json:"phase"`
	Message           string          `json:"message"`
	StartedAt         string          `json:"startedAt"`
	FinishedAt        string          `json:"finishedAt"`
	Nodes             map[string]Node `json:"nodes"`
	ExecutedBy        string          `json:"executedBy"`
}

WorkflowEvent consists of workflow related data

type WorkflowSyncExternalData

type WorkflowSyncExternalData struct {
	WorkflowID    string `json:"workflowID"`
	WorkflowRunID string `json:"workflowRunID"`
}

type Workload

type Workload struct {
	Name      string `json:"name"`
	Kind      string `json:"kind"`
	Namespace string `json:"namespace"`
}

Workload consists of workload details

Jump to

Keyboard shortcuts

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