dashboard

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelSelectorOfMount added in v0.24.5

func LabelSelectorOfMount(pv corev1.PersistentVolume) labels.Selector

func Reverse added in v0.24.2

func Reverse(data sort.Interface) sort.Interface

Types

type API

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

func NewAPI

func NewAPI(ctx context.Context, sysNamespace string, cachedReader client.Reader, config *rest.Config) *API

func (*API) Handle

func (api *API) Handle(group *gin.RouterGroup)

func (*API) StartManager

func (api *API) StartManager(ctx context.Context, mgr manager.Manager) error

type APIStatus

type APIStatus struct {
	SysNamespace string
	SysIndexes   []types.NamespacedName
	AppIndexes   []types.NamespacedName
	Nodeindex    map[string]types.NamespacedName
	Events       map[string]int
	PvIndexes    []types.NamespacedName
	PvcIndexes   []types.NamespacedName
	Pairs        map[string]types.NamespacedName
}

type ListAppPodResult

type ListAppPodResult struct {
	Total int         `json:"total"`
	Pods  []*PodExtra `json:"pods"`
}

type ListPVCPodResult

type ListPVCPodResult struct {
	Total int                             `json:"total"`
	PVCs  []*corev1.PersistentVolumeClaim `json:"pvcs"`
}

type ListPVPodResult

type ListPVPodResult struct {
	Total int                        `json:"total"`
	PVs   []*corev1.PersistentVolume `json:"pvs"`
}

type ListSCResult added in v0.24.2

type ListSCResult struct {
	Total int                       `json:"total"`
	SCs   []*storagev1.StorageClass `json:"scs"`
}

func (ListSCResult) Len added in v0.24.2

func (r ListSCResult) Len() int

func (ListSCResult) Less added in v0.24.2

func (r ListSCResult) Less(i, j int) bool

func (ListSCResult) Swap added in v0.24.2

func (r ListSCResult) Swap(i, j int)

type ListSysPodResult

type ListSysPodResult struct {
	Total int         `json:"total"`
	Pods  []*PodExtra `json:"pods"`
}

type LogPipe added in v0.24.2

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

func (*LogPipe) Read added in v0.24.2

func (l *LogPipe) Read(p []byte) (int, error)

func (*LogPipe) Write added in v0.24.2

func (l *LogPipe) Write(p []byte) (int, error)

type PVCController

type PVCController struct {
	*API
}

func (*PVCController) Reconcile

func (c *PVCController) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

func (*PVCController) SetupWithManager

func (c *PVCController) SetupWithManager(mgr manager.Manager) error

type PVController

type PVController struct {
	*API
}

func (*PVController) Reconcile

func (c *PVController) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

func (*PVController) SetupWithManager

func (c *PVController) SetupWithManager(mgr manager.Manager) error

type PodController

type PodController struct {
	*API
}

func (*PodController) Reconcile

func (c *PodController) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

func (*PodController) SetupWithManager

func (c *PodController) SetupWithManager(mgr manager.Manager) error

type PodExtra

type PodExtra struct {
	*corev1.Pod `json:",inline"`
	Pvs         []*corev1.PersistentVolume      `json:"pvs"`
	Pvcs        []*corev1.PersistentVolumeClaim `json:"pvcs"`
	MountPods   []*corev1.Pod                   `json:"mountPods"`
	CsiNode     *corev1.Pod                     `json:"csiNode"`
	Node        *corev1.Node                    `json:"node"`
}

type ReverseSort added in v0.24.2

type ReverseSort struct {
	sort.Interface
}

func (*ReverseSort) Less added in v0.24.2

func (r *ReverseSort) Less(i, j int) bool

Jump to

Keyboard shortcuts

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