Documentation ¶
Index ¶
- Constants
- type Component
- func (c *Component) Config() Config
- func (c *Component) ListEndpoints(option ListOptions) (endPoints []*v1.EndpointsList, err error)
- func (c *Component) ListEndpointsByName(name string) (endPoints []*v1.Endpoints, err error)
- func (c *Component) ListPods(option ListOptions) (pods []*v1.PodList, err error)
- func (c *Component) ListPodsByName(name string) (pods []*v1.Pod, err error)
- func (c *Component) NewWatcherApp(ctx context.Context, appName string, kind string) (app *WatcherApp, err error)
- type Config
- type Container
- type KubernetesEvent
- type ListOptions
- type Option
- type WatcherApp
Constants ¶
View Source
const ( KindPods = "pods" KindEndpoints = "endpoints" )
View Source
const PackageName = "component.ek8s"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct { *kubernetes.Clientset // contains filtered or unexported fields }
Component ...
func (*Component) ListEndpoints ¶
func (c *Component) ListEndpoints(option ListOptions) (endPoints []*v1.EndpointsList, err error)
func (*Component) ListEndpointsByName ¶ added in v0.2.3
func (*Component) ListPods ¶ added in v0.2.0
func (c *Component) ListPods(option ListOptions) (pods []*v1.PodList, err error)
func (*Component) ListPodsByName ¶ added in v0.2.3
func (*Component) NewWatcherApp ¶ added in v0.1.1
type Config ¶
type Config struct { Addr string Debug bool Token string Namespaces []string DeploymentPrefix string // 命名前缀 TLSClientConfigInsecure bool }
Config ...
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func DefaultContainer ¶
func DefaultContainer() *Container
type KubernetesEvent ¶
type ListOptions ¶ added in v0.2.3
type ListOptions = metav1.ListOptions
type Option ¶
type Option func(c *Container)
Option 可选项
func WithDeploymentPrefix ¶
func WithNamespaces ¶
type WatcherApp ¶ added in v0.1.1
type WatcherApp struct { *kubernetes.Clientset // contains filtered or unexported fields }
func (*WatcherApp) ProcessWorkItem ¶ added in v0.1.1
func (c *WatcherApp) ProcessWorkItem(f func(info *KubernetesEvent) error) bool
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
kubegrpc/helloworld
Package helloworld is a generated protocol buffer package.
|
Package helloworld is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.