api

package
v0.0.0-...-e368295 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetaDataVO2String

func MetaDataVO2String(resp *MetaDataVO) string

Types

type AddObj

type AddObj func(obj interface{})

type DeleteObj

type DeleteObj func(obj interface{})

type ListVO

type ListVO struct {
	Cache             *kubernetes.K8sMetaDataCache
	GlobalNodeInfo    *kubernetes.NodeMap
	GlobalRsInfo      *kubernetes.ReplicaSetMap
	GlobalServiceInfo *kubernetes.ServiceMap
}

type MetaDataRsyncResponse

type MetaDataRsyncResponse struct {
	Type      string // pod,rs,node,service
	Operation string // add,update,delete
	NewObj    interface{}
	OldObj    interface{}
}

type MetaDataService

type MetaDataService interface {
	ListAndWatch()
}

type MetaDataVO

type MetaDataVO struct {
	Type      string // pod,rs,node,service
	Operation string // add,update,delete
	NewObj    json.RawMessage
	OldObj    json.RawMessage
}

type Operation

type Operation string
const (
	Add    Operation = "add"
	Update Operation = "update"
	Delete Operation = "delete"
)

type UpdateObj

type UpdateObj func(oldObj interface{}, newObj interface{})

Jump to

Keyboard shortcuts

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