types

package
v1.124.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command added in v1.124.0

type Command string
const (
	CommandUpgradeCluster   Command = "upgrade-cluster"
	CommandUpgradeManager   Command = "upgrade-manager"
	CommandAddExtension     Command = "add-extension"
	CommandUpgradeExtension Command = "upgrade-extension"
	CommandRemoveExtension  Command = "remove-extension"
)

func (Command) Validate added in v1.124.0

func (c Command) Validate() error

type ExtensionData added in v1.124.0

type ExtensionData struct {
	Repos []k0sv1beta1.Repository `json:"repos"`
	Chart ecv1beta1.Chart         `json:"chart"`
}

func (ExtensionData) Validate added in v1.124.0

func (d ExtensionData) Validate() error

type Message added in v1.124.0

type Message struct {
	AppSlug      string  `json:"appSlug"`
	VersionLabel string  `json:"versionLabel"`
	StepID       string  `json:"stepID"`
	Command      Command `json:"command"`
	Data         string  `json:"data"`
}

func (Message) Validate added in v1.124.0

func (m Message) Validate() error

type PingPongInfo

type PingPongInfo struct {
	Time    time.Time `json:"time"`
	Message string    `json:"message"`
}

type UpgradeClusterData added in v1.124.0

type UpgradeClusterData struct {
	Installation ecv1beta1.Installation `json:"installation"`
}

func (UpgradeClusterData) Validate added in v1.124.0

func (d UpgradeClusterData) Validate() error

type UpgradeManagerData added in v1.124.0

type UpgradeManagerData struct {
	LicenseID       string `json:"licenseID"`
	LicenseEndpoint string `json:"licenseEndpoint"`
}

func (UpgradeManagerData) Validate added in v1.124.0

func (d UpgradeManagerData) Validate() error

type WSClient

type WSClient struct {
	Conn         *websocket.Conn `json:"-"`
	ConnectedAt  time.Time       `json:"connectedAt"`
	LastPingSent PingPongInfo    `json:"lastPingSent"`
	LastPongRecv PingPongInfo    `json:"lastPongRecv"`
	LastPingRecv PingPongInfo    `json:"lastPingRecv"`
	LastPongSent PingPongInfo    `json:"lastPongSent"`
	Version      string          `json:"version"`
}

Jump to

Keyboard shortcuts

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