kubernetes

package
v0.0.0-...-1ae172a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeFactory

type KubeFactory interface {
	GetResource(resType string) (ResourceHandler, error)
	GetPod() (PodHandler, error)
}

func NewKubeFactory

func NewKubeFactory(config *config.KubeConfig) KubeFactory

type PodHandler

type PodHandler interface {
	ResourceHandler
	Exec(params interface{}, writer resource.OutWriter) *utils.Response
	Log(params interface{}, writer resource.OutWriter) *utils.Response
}

type ResourceHandler

type ResourceHandler interface {
	Handle(action string, params interface{}) *utils.Response
	Watch(params interface{}, writer resource.OutWriter) *utils.Response
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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