Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKubernetesClient ¶
func NewKubernetesClient() (*kubernetes.Clientset, error)
NewKubernetesClient 创建一个新的 Kubernetes 客户端
func SplitImageNameAndTag ¶
SplitImageNameAndTag 根据最后一个':'分隔符分割镜像字符串,返回镜像名称和标签。
Types ¶
type ResourceKey ¶
type WatcherService ¶
type WatcherService struct { ImageCache map[string][]ResourceKey UpdateHandlerChan chan model.PushEvent // 定义信号管道,UpdateHandlerChan处理完就置传入true UpdateHandlerDone chan bool // contains filtered or unexported fields }
func NewWatcherService ¶
func NewWatcherService() *WatcherService
func (*WatcherService) StartWatcher ¶
func (ws *WatcherService) StartWatcher()
Click to show internal directories.
Click to hide internal directories.