Documentation ¶
Index ¶
- Constants
- type Component
- func (c *Component) ListEndpoints(appName string) (pods []*v1.Endpoints, err error)
- func (c *Component) ListPod(appName string) (pods []*v1.Pod, err error)
- func (c *Component) ProcessWorkItem(f func(info *KubernetesEvent) error) bool
- func (c *Component) WatchPrefix(ctx context.Context, appName string, kind string) (err error)
- type Config
- type Container
- type KubernetesEvent
- type Option
Constants ¶
View Source
const ( KindPod = "Pod" 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 (*Component) ProcessWorkItem ¶
func (c *Component) ProcessWorkItem(f func(info *KubernetesEvent) error) bool
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 Option ¶
type Option func(c *Container)
Option 可选项
func WithDeploymentPrefix ¶
func WithNamespaces ¶
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.