endpoints

package
v0.0.0-...-2c421a0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT 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 []Podmigration `json:"items"`
}

type Podmigration

type Podmigration 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.PodmigrationStatus `json:"status,omitempty"`
}

func (*Podmigration) Validate

func (pm *Podmigration) Validate() error

type PodmigrationEndpoint

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

func NewPodmigrationEndpoint

func NewPodmigrationEndpoint(client client.Client) *PodmigrationEndpoint

func (*PodmigrationEndpoint) SetupWithWS

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

Jump to

Keyboard shortcuts

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