endpoints

package
v0.0.0-...-89e9fa0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var From = &from{}

Functions

This section is empty.

Types

type Endpoint

type Endpoint interface {
	SetupWithWS(ws *restful.WebService)
}

type Error

type Error struct {
	Title   string `json:"title"`
	Details string `json:"details"`
}

type List

type List struct {
	Items []Livemigration `json:"items"`
}

type Livemigration

type Livemigration struct {
	Name         string                  `json:"name"`
	DestHost     string                  `json:"destHost"`
	Replicas     int                     `json:"replicas"`
	Selector     *metav1.LabelSelector   `json:"selector"`
	Action       string                  `json:"action"`
	SnapshotPath string                  `json:"snapshotPath"`
	SourcePod    string                  `json:"sourcePod"`
	Template     corev1.PodTemplateSpec  `json:"template,omitempty"`
	Status       *v1.LiveMigrationStatus `json:"status,omitempty"`
}

func (*Livemigration) Validate

func (pm *Livemigration) Validate() error

type LivemigrationEndpoint

type LivemigrationEndpoint struct {
	// contains filtered or unexported fields
}

func NewLivemigrationEndpoint

func NewLivemigrationEndpoint(client client.Client) *LivemigrationEndpoint

func (*LivemigrationEndpoint) SetupWithWS

func (pe *LivemigrationEndpoint) SetupWithWS(ws *restful.WebService)

Jump to

Keyboard shortcuts

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