types

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Type EventType `json:"type,omitempty"`
	// Time represents Unix timestampt in microseconds
	Time int `json:"time,omitempty"`

	// Additional fields used by EventAPIRequest and EventResourceSync
	Success        bool   `json:"success,omitempty"`
	ProcessingTime int    `json:"processingTime,omitempty"`
	Errors         string `json:"errors,omitempty"`
	Group          string `json:"group,omitempty"`
	Version        string `json:"version,omitempty"`
	Kind           string `json:"kind,omitempty"`

	// Additional fields used by EventAPIRequest
	UserAgent string `json:"userAgent,omitempty"`
}

type EventType

type EventType string
const (
	EventAPIRequest        EventType = "APIRequest" // TODO: add code to record EventAPIRequest event
	EventResourceSync      EventType = "ResourceSync"
	EventLeadershipStarted EventType = "LeadershipStarted"
	EventLeadershipStopped EventType = "EventLeadershipStopped"
	EventSyncerStarted     EventType = "SyncerStarted"
)

type KubernetesVersion

type KubernetesVersion struct {
	Major      string `json:"major"`
	Minor      string `json:"minor"`
	GitVersion string `json:"gitVersion"`
}

type SyncerFlags

type SyncerFlags struct {
	SetFlags    map[string]bool `json:"setFlags,omitempty"`
	Controllers []string        `json:"controllers,omitempty"`
}

type SyncerInstanceProperties

type SyncerInstanceProperties struct {
	// vcluster instance UID
	UID                      string             `json:"uid,omitempty"`
	InstanceCreator          string             `json:"instanceCreator,omitempty"`
	InstanceCreatorUID       string             `json:"instanceCreatorUID,omitempty"`
	Arch                     string             `json:"arch,omitempty"`
	OS                       string             `json:"os,omitempty"`
	SyncerVersion            string             `json:"syncerVersion,omitempty"`
	SyncerFlags              string             `json:"syncerFlags,omitempty"`
	VclusterServiceType      string             `json:"vclusterServiceType,omitempty"`
	VirtualKubernetesVersion *KubernetesVersion `json:"virtualKubernetesVersion,omitempty"`
	HostKubernetesVersion    *KubernetesVersion `json:"hostKubernetesVersion,omitempty"`
	SyncerPodsReady          int                `json:"syncerPodsReady,omitempty"`
	SyncerPodsFailing        int                `json:"syncerPodsFailing,omitempty"`
	SyncerPodCreated         int                `json:"syncerPodCreated,omitempty"`
	SyncerPodRestarts        int                `json:"syncerPodRestarts,omitempty"`
	SyncerMemoryRequests     int                `json:"syncerMemoryRequests,omitempty"`
	SyncerMemoryLimits       int                `json:"syncerMemoryLimits,omitempty"`
	SyncerCPURequests        int                `json:"syncerCPURequests,omitempty"`
	SyncerCPULimits          int                `json:"syncerCPULimits,omitempty"`
}

type SyncerTelemetryConfig

type SyncerTelemetryConfig struct {
	Disabled           bool   `json:"disabled,omitempty"`
	InstanceCreator    string `json:"instanceCreator,omitempty"`
	InstanceCreatorUID string `json:"instanceCreatorUID,omitempty"`
}

type SyncerTelemetryRequest

type SyncerTelemetryRequest struct {
	InstanceProperties  SyncerInstanceProperties `json:"instanceProperties,omitempty"`
	Events              []*Event                 `json:"events,omitempty"`
	TimeSinceLastUpload *int                     `json:"timeSinceLastUpload,omitempty"`
	Token               string                   `json:"token,omitempty"`
}

Jump to

Keyboard shortcuts

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