handler

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BizInfoHandler

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

func (*BizInfoHandler) ParseRequest

func (handler *BizInfoHandler) ParseRequest() error

func (*BizInfoHandler) Process

func (handler *BizInfoHandler) Process() (int, interface{}, error)

func (*BizInfoHandler) QueryBizInfoWithPodUid

func (handler *BizInfoHandler) QueryBizInfoWithPodUid(key, value string) (int, interface{}, error)

func (*BizInfoHandler) RequestParams

func (handler *BizInfoHandler) RequestParams() interface{}

func (*BizInfoHandler) ValidRequest

func (handler *BizInfoHandler) ValidRequest() error

type BizInfoParams

type BizInfoParams struct {
	PodUIDName string
	PodUID     string
}

type ContainerEventsHandler

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

func (*ContainerEventsHandler) GetContainerEventsData

func (handler *ContainerEventsHandler) GetContainerEventsData(key, value string) (int, interface{}, error)

func (*ContainerEventsHandler) ParseRequest

func (handler *ContainerEventsHandler) ParseRequest() error

func (*ContainerEventsHandler) Process

func (handler *ContainerEventsHandler) Process() (int, interface{}, error)

func (*ContainerEventsHandler) RequestParams

func (handler *ContainerEventsHandler) RequestParams() interface{}

func (*ContainerEventsHandler) ValidRequest

func (handler *ContainerEventsHandler) ValidRequest() error

type ContainerEventsHandlerParams

type ContainerEventsHandlerParams struct {
	PodUIDName string
	PodUID     string
}

type ContainerStatusHandler

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

func (*ContainerStatusHandler) GetContainerStatusData

func (handler *ContainerStatusHandler) GetContainerStatusData(key, value string) (int, interface{}, error)

func (*ContainerStatusHandler) ParseRequest

func (handler *ContainerStatusHandler) ParseRequest() error

func (*ContainerStatusHandler) Process

func (handler *ContainerStatusHandler) Process() (int, interface{}, error)

func (*ContainerStatusHandler) RequestParams

func (handler *ContainerStatusHandler) RequestParams() interface{}

func (*ContainerStatusHandler) ValidRequest

func (handler *ContainerStatusHandler) ValidRequest() error

type ContainerStatusHandlerParams

type ContainerStatusHandlerParams struct {
	PodUIDName string
	PodUID     string
}

type ContainerlifecycleHandler

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

func (*ContainerlifecycleHandler) GetContainerLifecycleData

func (handler *ContainerlifecycleHandler) GetContainerLifecycleData(key, value string) (int, interface{}, error)

func (*ContainerlifecycleHandler) ParseRequest

func (handler *ContainerlifecycleHandler) ParseRequest() error

func (*ContainerlifecycleHandler) Process

func (handler *ContainerlifecycleHandler) Process() (int, interface{}, error)

func (*ContainerlifecycleHandler) RequestParams

func (handler *ContainerlifecycleHandler) RequestParams() interface{}

func (*ContainerlifecycleHandler) ValidRequest

func (handler *ContainerlifecycleHandler) ValidRequest() error

type ContainerlifecycleParams

type ContainerlifecycleParams struct {
	PodUIDName string
	PodUID     string
}

type DebuggingPodsHandler

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

func (*DebuggingPodsHandler) ParseRequest

func (handler *DebuggingPodsHandler) ParseRequest() error

func (*DebuggingPodsHandler) Process

func (handler *DebuggingPodsHandler) Process() (int, interface{}, error)

func (*DebuggingPodsHandler) QueryDebuggingWithType

func (handler *DebuggingPodsHandler) QueryDebuggingWithType(debugparams model.SloOptions) (int, interface{}, error)

func (*DebuggingPodsHandler) RequestParams

func (handler *DebuggingPodsHandler) RequestParams() interface{}

func (*DebuggingPodsHandler) ValidRequest

func (handler *DebuggingPodsHandler) ValidRequest() error

type Handler

type Handler interface {
	ParseRequest() error
	ValidRequest() error
	Process() (int, interface{}, error)
	RequestParams() interface{}
}

func ContainerEventsFactory

func ContainerEventsFactory(w http.ResponseWriter, r *http.Request, storage data_access.StorageInterface) Handler

func ContainerStatusFactory

func ContainerStatusFactory(w http.ResponseWriter, r *http.Request, storage data_access.StorageInterface) Handler

func ContainerlifecycleFactory

func ContainerlifecycleFactory(w http.ResponseWriter, r *http.Request, storage data_access.StorageInterface) Handler

func DebuggingPodsFactory

func DebuggingPodsFactory(w http.ResponseWriter, r *http.Request, storage data_access.StorageInterface) Handler

func NodeGraphParamsFactory

func NodeGraphParamsFactory(w http.ResponseWriter, r *http.Request, storage data_access.StorageInterface) Handler

func PodDeliveryUpgradeFactory

func PodDeliveryUpgradeFactory(w http.ResponseWriter, r *http.Request, storage data_access.StorageInterface) Handler

func RawdataFactory added in v0.1.6

func RawdataFactory(w http.ResponseWriter, r *http.Request, storage data_access.StorageInterface) Handler

func YamlFactory added in v0.1.6

type NodeGraphHandler

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

func (*NodeGraphHandler) ParseRequest

func (handler *NodeGraphHandler) ParseRequest() error

func (*NodeGraphHandler) Process

func (handler *NodeGraphHandler) Process() (int, interface{}, error)

func (*NodeGraphHandler) QueryPodDeliveryWithPodUid

func (handler *NodeGraphHandler) QueryPodDeliveryWithPodUid(key, value string) (int, interface{}, error)

func (*NodeGraphHandler) RequestParams

func (handler *NodeGraphHandler) RequestParams() interface{}

func (*NodeGraphHandler) ValidRequest

func (handler *NodeGraphHandler) ValidRequest() error

type NodeGraphParams

type NodeGraphParams struct {
	PodUIDName string
	PodUID     string
}

type PodDeliveryHandler

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

func (*PodDeliveryHandler) ParseRequest

func (handler *PodDeliveryHandler) ParseRequest() error

func (*PodDeliveryHandler) Process

func (handler *PodDeliveryHandler) Process() (int, interface{}, error)

func (*PodDeliveryHandler) QueryPodDeliveryWithPodUid

func (handler *PodDeliveryHandler) QueryPodDeliveryWithPodUid(key, value string) (int, interface{}, error)

func (*PodDeliveryHandler) RequestParams

func (handler *PodDeliveryHandler) RequestParams() interface{}

func (*PodDeliveryHandler) ValidRequest

func (handler *PodDeliveryHandler) ValidRequest() error

type PodDeliveryParams

type PodDeliveryParams struct {
	PodUIDName string
	PodUID     string
}

type PodDeliveryUpgradeHandler

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

func (*PodDeliveryUpgradeHandler) ParseRequest

func (handler *PodDeliveryUpgradeHandler) ParseRequest() error

func (*PodDeliveryUpgradeHandler) Process

func (handler *PodDeliveryUpgradeHandler) Process() (int, interface{}, error)

func (*PodDeliveryUpgradeHandler) QueryPodDeliveryUpgradeWithPodUid

func (handler *PodDeliveryUpgradeHandler) QueryPodDeliveryUpgradeWithPodUid(key, value string) (int, interface{}, error)

func (*PodDeliveryUpgradeHandler) RequestParams

func (handler *PodDeliveryUpgradeHandler) RequestParams() interface{}

func (*PodDeliveryUpgradeHandler) ValidRequest

func (handler *PodDeliveryUpgradeHandler) ValidRequest() error

type PodDeliveryUpgradeParams

type PodDeliveryUpgradeParams struct {
	PodUIDName string
	PodUID     string
}

type PodInfoHandler

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

func (*PodInfoHandler) ParseRequest

func (handler *PodInfoHandler) ParseRequest() error

func (*PodInfoHandler) Process

func (handler *PodInfoHandler) Process() (int, interface{}, error)

func (*PodInfoHandler) QueryPodInfoWithPodUid

func (handler *PodInfoHandler) QueryPodInfoWithPodUid(key, value string) (int, interface{}, error)

func (*PodInfoHandler) RequestParams

func (handler *PodInfoHandler) RequestParams() interface{}

func (*PodInfoHandler) ValidRequest

func (handler *PodInfoHandler) ValidRequest() error

type PodInfoParams

type PodInfoParams struct {
	PodUIDName string
	PodUID     string
}

type PodListHandler

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

func (*PodListHandler) ParseRequest

func (handler *PodListHandler) ParseRequest() error

func (*PodListHandler) Process

func (handler *PodListHandler) Process() (int, interface{}, error)

func (*PodListHandler) QueryDebuggingWithType

func (handler *PodListHandler) QueryDebuggingWithType(debugparams model.SloOptions) (int, interface{}, error)

func (*PodListHandler) RequestParams

func (handler *PodListHandler) RequestParams() interface{}

func (*PodListHandler) ValidRequest

func (handler *PodListHandler) ValidRequest() error

type PodPhaseHandler

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

func (*PodPhaseHandler) ParseRequest

func (handler *PodPhaseHandler) ParseRequest() error

func (*PodPhaseHandler) Process

func (handler *PodPhaseHandler) Process() (int, interface{}, error)

func (*PodPhaseHandler) QueryPodPhaseWithPodUid

func (handler *PodPhaseHandler) QueryPodPhaseWithPodUid(key, value string) (int, interface{}, error)

func (*PodPhaseHandler) RequestParams

func (handler *PodPhaseHandler) RequestParams() interface{}

func (*PodPhaseHandler) ValidRequest

func (handler *PodPhaseHandler) ValidRequest() error

type PodPhaseParams

type PodPhaseParams struct {
	PodUIDName string
	PodUID     string
}

type PodStatusHandler

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

func (*PodStatusHandler) ParseRequest

func (handler *PodStatusHandler) ParseRequest() error

func (*PodStatusHandler) Process

func (handler *PodStatusHandler) Process() (int, interface{}, error)

func (*PodStatusHandler) QueryPodStatusWithPodUid

func (handler *PodStatusHandler) QueryPodStatusWithPodUid(key, value string) (int, interface{}, error)

func (*PodStatusHandler) RequestParams

func (handler *PodStatusHandler) RequestParams() interface{}

func (*PodStatusHandler) ValidRequest

func (handler *PodStatusHandler) ValidRequest() error

type PodStatusParams

type PodStatusParams struct {
	PodUIDName string
	PodUID     string
}

type RawHandler added in v0.1.6

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

func (*RawHandler) ParseRequest added in v0.1.6

func (handler *RawHandler) ParseRequest() error

func (*RawHandler) Process added in v0.1.6

func (handler *RawHandler) Process() (int, interface{}, error)

func (*RawHandler) RequestParams added in v0.1.6

func (handler *RawHandler) RequestParams() interface{}

func (*RawHandler) ValidRequest added in v0.1.6

func (handler *RawHandler) ValidRequest() error

type RawdataParams added in v0.1.6

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

type RootHandler

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

func (*RootHandler) ParseRequest

func (handler *RootHandler) ParseRequest() error

func (*RootHandler) Process

func (handler *RootHandler) Process() (int, interface{}, error)

func (*RootHandler) RequestParams

func (handler *RootHandler) RequestParams() interface{}

func (*RootHandler) Root

func (handler *RootHandler) Root() (int, interface{}, error)

func (*RootHandler) ValidRequest

func (handler *RootHandler) ValidRequest() error

type RootParams

type RootParams struct {
}

type TraceHandler

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

func (*TraceHandler) ParseRequest

func (handler *TraceHandler) ParseRequest() error

func (*TraceHandler) Process

func (handler *TraceHandler) Process() (int, interface{}, error)

func (*TraceHandler) QueryTraceWithPodUid

func (handler *TraceHandler) QueryTraceWithPodUid(key, value string) (int, interface{}, error)

func (*TraceHandler) RequestParams

func (handler *TraceHandler) RequestParams() interface{}

func (*TraceHandler) ValidRequest

func (handler *TraceHandler) ValidRequest() error

type TraceParams

type TraceParams struct {
	PodUIDName string
	PodUID     string
}

type YamlHandler added in v0.1.6

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

func (*YamlHandler) GetYamls added in v0.1.6

func (handler *YamlHandler) GetYamls(params *YamlParams) (int, interface{}, error)

func (*YamlHandler) ParseRequest added in v0.1.6

func (handler *YamlHandler) ParseRequest() error

func (*YamlHandler) Process added in v0.1.6

func (handler *YamlHandler) Process() (int, interface{}, error)

func (*YamlHandler) RequestParams added in v0.1.6

func (handler *YamlHandler) RequestParams() interface{}

func (*YamlHandler) ValidRequest added in v0.1.6

func (handler *YamlHandler) ValidRequest() error

type YamlParams added in v0.1.6

type YamlParams struct {
	Resource string
	Uid      string
	Name     string
}

Jump to

Keyboard shortcuts

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