Skip to content

Import path: gitlab.soludian.com/soludian/fountain/libs/sd/k8s

k8s

go
import "gitlab.soludian.com/soludian/fountain/libs/sd/k8s"

Index

Constants

go
const (
    KDefaultRSync = 5 * time.Minute
)

type KubernetesEvent

go
type KubernetesEvent struct {
    IPs       []string
    EventType watch.EventType
}

type WatcherApp

go
type WatcherApp struct {
    *kubernetes.Clientset
    // contains filtered or unexported fields
}

func NewWatcherApp

go
func NewWatcherApp(ctx context.Context, clientSet *kubernetes.Clientset, namespaces []string, appName string, kind string, deploymentPrefix string) (app *WatcherApp, err error)

func (*WatcherApp) ProcessWorkItem

go
func (c *WatcherApp) ProcessWorkItem(f func(info *KubernetesEvent) error) bool

Generated by gomarkdoc