workQueue

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Queue chan interface{}

Functions

func Close

func Close()

func InitWorkQueue

func InitWorkQueue()

func SyncLoop

func SyncLoop(ctx context.Context, wg *sync.WaitGroup)

SyncLoop 将容器的创建信息同步到etcd,当程序收到停止信号时,已经开始的 put 任务会继续执行 但是没有开始的任务,不会被执行,SyncLoop 会直接返回

func VolumeMountPoint

func VolumeMountPoint(name string) (string, error)

VolumeMountPoint 获取 Volume 的 MountPoint

Types

type CopyTask

type CopyTask struct {
	Resource    etcd.EtcdResource
	OldResource string
	NewResource string
}

Jump to

Keyboard shortcuts

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