├── .gitignore ├── main.go ├── Dockerfile ├── go.mod ├── service ├── dockercli.go └── cmd.go ├── .gitlab-ci.yml ├── k8s-deploy.yml ├── handlers └── main.go ├── readme.md ├── LICENSE └── go.sum /.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, built with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | 14 | # Dependency directories (remove the comment below to include it) 15 | # vendor/ 16 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "net/http" 5 | 6 | "github.com/gin-gonic/gin" 7 | "github.com/zlingqu/nvidia-gpu-mem-monitor/handlers" 8 | ) 9 | 10 | func main() { 11 | 12 | r := gin.Default() 13 | 14 | r.GET("/metrics", func(c *gin.Context) { 15 | r := handlers.Metrics() 16 | c.String(http.StatusOK, r) 17 | }) 18 | r.Run(":59500") 19 | 20 | } 21 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # FROM golang:1.15 as builder 2 | FROM docker.dm-ai.cn/public/golang:1.15-nvidia-gpu-mem-monitor as builder 3 | WORKDIR /data 4 | ADD . . 5 | RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go build -o targets/nvidia-gpu-mem-monitor 6 | 7 | # FROM alpine:3.12.0 8 | FROM nvidia/cuda:11.0-base 9 | WORKDIR /data 10 | COPY --from=builder /data/targets/nvidia-gpu-mem-monitor . 11 | CMD /data/nvidia-gpu-mem-monitor 12 | EXPOSE 59500 -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/zlingqu/nvidia-gpu-mem-monitor 2 | 3 | go 1.15 4 | 5 | require ( 6 | github.com/Microsoft/go-winio v0.4.16 // indirect 7 | github.com/containerd/containerd v1.4.3 // indirect 8 | github.com/docker/distribution v2.7.1+incompatible // indirect 9 | github.com/docker/docker v20.10.0+incompatible 10 | github.com/docker/go-connections v0.4.0 // indirect 11 | github.com/docker/go-units v0.4.0 // indirect 12 | github.com/gin-gonic/gin v1.6.3 13 | github.com/gogo/protobuf v1.3.1 // indirect 14 | github.com/opencontainers/go-digest v1.0.0 // indirect 15 | github.com/opencontainers/image-spec v1.0.1 // indirect 16 | github.com/sirupsen/logrus v1.7.0 // indirect 17 | google.golang.org/grpc v1.34.0 // indirect 18 | ) 19 | -------------------------------------------------------------------------------- /service/dockercli.go: -------------------------------------------------------------------------------- 1 | package service 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/docker/docker/api/types" 7 | "github.com/docker/docker/client" 8 | ) 9 | 10 | type ContainersStruct struct { 11 | ContainerID string 12 | Image string 13 | ConName string 14 | } 15 | 16 | // ListContains 这个方法没有用到 17 | func ListContains(cli *client.Client) []ContainersStruct { 18 | containers, err := cli.ContainerList(context.Background(), types.ContainerListOptions{}) 19 | if err != nil { 20 | panic(err) 21 | } 22 | containerList := []ContainersStruct{} 23 | for _, container := range containers { 24 | containerList = append(containerList, ContainersStruct{container.ID[:10], container.Image, container.Names[0]}) 25 | } 26 | return containerList 27 | } 28 | 29 | // 根据containId获取podName和podNamespace。这些信息通过docker inspect *也可以看到 30 | func GetContainsPodInfo(cli *client.Client, containID string) (string, string) { 31 | containers, _ := cli.ContainerInspect(context.Background(), containID) 32 | podName := containers.Config.Labels["io.kubernetes.pod.name"] 33 | podNamespace := containers.Config.Labels["io.kubernetes.pod.namespace"] 34 | // return containers.State.Pid 35 | return podName, podNamespace 36 | } 37 | -------------------------------------------------------------------------------- /service/cmd.go: -------------------------------------------------------------------------------- 1 | package service 2 | 3 | import ( 4 | "bytes" 5 | "encoding/csv" 6 | "fmt" 7 | "io/ioutil" 8 | "os/exec" 9 | ) 10 | 11 | // csv方式输出exec的执行结果 12 | func GetExecOutByCSV(args string) [][]string { 13 | 14 | out, err := exec.Command("/bin/bash", "-c", args).Output() 15 | 16 | if err != nil { 17 | fmt.Printf("%s\n", err) 18 | return nil 19 | } 20 | 21 | csvReader := csv.NewReader(bytes.NewReader(out)) 22 | csvReader.TrimLeadingSpace = true 23 | records, err := csvReader.ReadAll() 24 | if err != nil { 25 | fmt.Printf("%s\n", err) 26 | return nil 27 | } 28 | return records 29 | } 30 | 31 | // string方式输出exec的执行结果 32 | func GetExecOutByString(args string) string { 33 | 34 | cmd := exec.Command("/bin/bash", "-c", args) 35 | 36 | //创建获取命令输出管道 37 | stdout, err := cmd.StdoutPipe() 38 | if err != nil { 39 | fmt.Printf("Error:can not obtain stdout pipe for command:%s\n", err) 40 | return "error" 41 | } 42 | 43 | //执行命令 44 | if err := cmd.Start(); err != nil { 45 | fmt.Println("Error:The command is err,", err) 46 | return "error" 47 | } 48 | 49 | //读取所有输出 50 | myByte, err := ioutil.ReadAll(stdout) 51 | if err != nil { 52 | fmt.Println("ReadAll Stdout:", err.Error()) 53 | return "error" 54 | } 55 | 56 | if err := cmd.Wait(); err != nil { 57 | fmt.Println("wait:", err.Error()) 58 | return "error" 59 | } 60 | // fmt.Printf("stdout:\n\n %s", bytes) 61 | return string(myByte[0 : len(myByte)-1]) 62 | } 63 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | DOCKER_REGIS_URL: "docker.dm-ai.cn" #docker仓库地址 3 | PROJECT_NAME: devops #项目代号,也是k8s的namespace的名字 4 | SERVER_NAME: nvidia-gpu-mem-monitor #服务名 5 | IMAGE_TAG_NAME: "${DOCKER_REGISTRY_URL}/${PROJECT_NAME}/${SERVER_NAME}:${CI_COMMIT_SHA}" #使用代码的commitid作为image的tag 6 | # IMAGE_TAG_NAME: "${DOCKER_REGIS_URL}/${PROJECT_NAME}/${SERVER_NAME}:${CI_RUNNER_TAGS}" #使用代码的tag名字作为image的tag 7 | 8 | stages: 9 | - build 10 | - make_and_push_image 11 | - k8s_dev_deploy 12 | - k8s_prd_deploy 13 | 14 | job_make_and_push_image: 15 | image: 16 | name: docker.dm-ai.cn/public/kaniko-executor:debug-v1.3.0 17 | entrypoint: [""] 18 | stage: make_and_push_image 19 | script: 20 | - echo "{\"auths\":{\"$DOCKER_REGISTRY_URL\":{\"username\":\"$DOCKER_REGISTRY_USERNAME\",\"password\":\"$DOCKER_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json 21 | - cat $CI_PROJECT_DIR/Dockerfile && echo "" 22 | - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $IMAGE_TAG_NAME #使用kaniko代替dind/sokcet模式,打镜像和上传 23 | - echo "docker image is:" && echo $IMAGE_TAG_NAME 24 | only: 25 | - dev 26 | tags: 27 | - k8s-runner 28 | 29 | job_k8s_dev_deploy: 30 | image: 31 | name: docker.dm-ai.cn/public/alpine:kubectl-1.18.10 32 | stage: k8s_dev_deploy 33 | script: 34 | - echo $K8S_DEV_TOKEN|base64 -d > ~/.kube/config 35 | - cd $CI_PROJECT_DIR 36 | - ls -l && pwd 37 | - sed -i "s#IMAGE_TAG_NAME#${IMAGE_TAG_NAME}#g" k8s-deploy.yml 38 | - cat k8s-deploy.yml 39 | - kubectl apply -f k8s-deploy.yml 40 | only: 41 | - dev 42 | tags: 43 | - k8s-runner -------------------------------------------------------------------------------- /k8s-deploy.yml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | name: nvidia-gpu-mem-monitor 6 | namespace: devops 7 | labels: 8 | app: nvidia-gpu-mem-monitor 9 | annotations: 10 | prometheus.io/scrape: "true" 11 | prometheus.io/port: "59500" 12 | spec: 13 | type: ClusterIP 14 | ports: 15 | - port: 80 16 | name: nvidia-gpu-mem-monitor 17 | targetPort: 59500 18 | selector: 19 | app: nvidia-gpu-mem-monitor 20 | --- 21 | apiVersion: apps/v1 22 | kind: DaemonSet 23 | metadata: 24 | name: nvidia-gpu-mem-monitor 25 | namespace: devops 26 | spec: 27 | selector: 28 | matchLabels: 29 | app: nvidia-gpu-mem-monitor 30 | template: 31 | metadata: 32 | labels: 33 | app: nvidia-gpu-mem-monitor 34 | annotations: 35 | sidecar.istio.io/inject: 'false' 36 | spec: 37 | affinity: 38 | nodeAffinity: 39 | requiredDuringSchedulingIgnoredDuringExecution: 40 | nodeSelectorTerms: 41 | - matchExpressions: 42 | - key: gpu.card.type 43 | operator: Exists 44 | - matchExpressions: 45 | - key: gpu.mem.type 46 | operator: Exists 47 | tolerations: 48 | - operator: Exists 49 | effect: NoSchedule 50 | imagePullSecrets: 51 | - name: regsecret 52 | containers: 53 | - name: nvidia-gpu-mem-monitor 54 | image: IMAGE_TAG_NAME 55 | ports: 56 | - containerPort: 59500 57 | env: 58 | - name: TZ 59 | value: Asia/Shanghai 60 | - name: hostIP 61 | valueFrom: 62 | fieldRef: 63 | apiVersion: v1 64 | fieldPath: status.hostIP 65 | volumeMounts: 66 | - name: proc 67 | mountPath: /proc 68 | - name: socket 69 | mountPath: /var/run/docker.sock 70 | volumes: 71 | - name: proc 72 | hostPath: 73 | path: /proc 74 | - name: socket 75 | hostPath: 76 | path: /var/run/docker.sock -------------------------------------------------------------------------------- /handlers/main.go: -------------------------------------------------------------------------------- 1 | package handlers 2 | 3 | import ( 4 | "fmt" 5 | "log" 6 | "net" 7 | "os" 8 | 9 | "github.com/docker/docker/client" 10 | svc "github.com/zlingqu/nvidia-gpu-mem-monitor/service" 11 | ) 12 | 13 | // Metrics 提供metrics接口 14 | func Metrics() string { 15 | 16 | cli, err := client.NewClientWithOpts(client.WithHost("unix:///var/run/docker.sock"), client.WithVersion("v1.38")) //使用socket通信 17 | 18 | if err != nil { 19 | log.Print("docker client 初始化错误" + err.Error()) 20 | return "" 21 | } 22 | 23 | if cli == nil { 24 | log.Print("docker client 初始化错误") 25 | return "" 26 | } 27 | defer cli.Close() //记得释放 28 | 29 | records := svc.GetExecOutByCSV("nvidia-smi --query-compute-apps=pid,used_gpu_memory,gpu_name,gpu_uuid --format=csv,noheader,nounits") 30 | /* 31 | 31756, 1267, GeForce GTX 1080 Ti, GPU-78d64296-8254-ef39-35ec-cb35bd6e6192 32 | 25580, 753, GeForce GTX 1080 Ti, GPU-78d64296-8254-ef39-35ec-cb35bd6e6192 33 | */ 34 | gpuLists := svc.GetExecOutByCSV("nvidia-smi -L|awk '{print $NF,$2}'|sed 's/)/,/g'|sed 's/://g'") 35 | /* 36 | GPU-78d64296-8254-ef39-35ec-cb35bd6e6192, 0 37 | GPU-2b8215f8-eb7c-0ae4-328f-a678a84f8d08, 1 38 | GPU-9d5d5439-4397-7189-1a46-801b59248301, 2 39 | GPU-55da7249-18e7-c3e7-beb8-4e1f661f5461, 3 40 | */ 41 | response := `# HELP pod_used_gpu_mem_MB . Pod使用的GPU显存大小 42 | # TYPE pod_used_gpu_mem_MB gauge 43 | ` 44 | gpu := "" 45 | for _, row := range records { 46 | cmd := "cat /proc/" + row[0] + "/cgroup |head -1 | awk -F'/' '{print $NF}'" 47 | containID := svc.GetExecOutByString(cmd) 48 | podName, podNamespace := "服务器直接运行的程序", "null" //非pod使用gpu的进程 49 | if containID != "" { 50 | podName, podNamespace = svc.GetContainsPodInfo(cli, containID) //获取pod信息 51 | if podName == "" || podNamespace == "" { //排除docker run起来的进程 52 | podName = "docker run运行的程序" 53 | podNamespace = "null" 54 | } 55 | } 56 | 57 | for _, gpuOne := range gpuLists { 58 | if gpuOne[0] == row[3] { 59 | gpu = gpuOne[1] 60 | break 61 | } 62 | } 63 | response = fmt.Sprintf("%spod_used_gpu_mem_MB{hostIP=\"%s\",app_pid=\"%s\",gpu_name=\"%s\",UUID=\"%s\",gpu=\"%s\",pod=\"%s\",namespace=\"%s\"} %s\n", 64 | response, getIP(), row[0], row[2], row[3], gpu, podName, podNamespace, row[1]) 65 | } 66 | return response 67 | } 68 | 69 | func getIP() string { 70 | if hostIP := os.Getenv("hostIP"); hostIP != "" { //如果部署到k8s中会注入hostIP变量 71 | return hostIP 72 | } 73 | netInterfaces, err := net.Interfaces() 74 | if err != nil { 75 | fmt.Println("net.Interfaces failed, err:", err.Error()) 76 | return "" 77 | } 78 | for i := 0; i < len(netInterfaces); i++ { 79 | //fmt.Println(netInterfaces[i],net.FlagUp) 80 | if (netInterfaces[i].Flags&net.FlagUp) != 0 && interFaceFields(netInterfaces[i]) { 81 | adds, _ := netInterfaces[i].Addrs() 82 | 83 | for _, address := range adds { 84 | //fmt.Println(address) 85 | if inet, ok := address.(*net.IPNet); ok && !inet.IP.IsLoopback() { 86 | if inet.Contains(inet.IP) && inet.IP.To4() != nil { 87 | return inet.IP.String() 88 | } 89 | } 90 | } 91 | } 92 | } 93 | return "" 94 | } 95 | 96 | func interFaceFields(myInterFace net.Interface) bool { 97 | if myInterFace.MTU != 1500 { 98 | return false 99 | } 100 | if len(myInterFace.HardwareAddr) > 17 { //排除ib网络的网卡 101 | return false 102 | } 103 | for _, v := range []string{"cni0", "flannel.1", "docker0", "virbr0"} { //排除特殊的网卡设备 104 | if myInterFace.Name == v { 105 | return false 106 | } 107 | } 108 | return true 109 | } 110 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | ## gpu节点加入k8s集群,做AI分析是一种比较常见的情景,当pod使用GPU卡时,通常有以下两种方案 2 | ## 一、安装nvidia官方插件 3 | 此时资源分配时,是按照`卡的数量`进行资源分配,k8s的yml文件类似于如下 4 | ```yaml 5 | 6 | resources: 7 | limits: 8 | nvidia.com/gpu: '1' 9 | requests: 10 | nvidia.com/gpu: '1' 11 | 12 | ``` 13 | 其中1表示使用1张GPU卡。 14 | 15 | 16 | 使用prometheus从cAdvisor总获取的有效监控项有: 17 | 18 | ```bash 19 | container_accelerator_memory_total_bytes #pod所在卡的显存总大小 20 | container_accelerator_memory_used_bytes #pod所在卡的显存使用 21 | ``` 22 | 23 | 24 | 25 | ## 二、安装第三方插件 26 | 27 | 比如阿里云的插件,git地址:https://github.com/AliyunContainerService/gpushare-device-plugin/ 28 | 29 | 此时资源分配时,是可以按照`卡的显存大小`进行资源分配,k8s的yml文件类似于如下 30 | 31 | ```yaml 32 | resources: 33 | limits: 34 | aliyun.com/gpu-mem: '4' 35 | requests: 36 | aliyun.com/gpu-mem: '2' 37 | ``` 38 | 其中2、4表示使用的显存大小 39 | 查看现场资源分配 40 | ``` 41 | # kubectl-inspect-gpushare 42 | NAME IPADDRESS GPU0(Allocated/Total) GPU1(Allocated/Total) GPU2(Allocated/Total) GPU3(Allocated/Total) GPU4(Allocated/Total) GPU5(Allocated/Total) GPU6(Allocated/Total) GPU7(Allocated/Total) GPU Memory(GiB) 43 | 192.168.3.4 192.168.3.4 4/11 6/11 10/11 0/11 0/11 0/11 0/11 0/11 20/88 44 | 192.168.68.4 192.168.68.4 4/10 0/10 10/10 9/10 0/10 10/10 6/10 6/10 45/80 45 | ------------------------------------------------------------------------------------------- 46 | Allocated/Total GPU Memory In Cluster: 47 | 65/168 (38%) 48 | ------------------------------------------------------------------------------------------- 49 | Allocated/Total GPU Memory In Cluster: 50 | 65/168 (38%) 51 | ``` 52 | 53 | 54 | 55 | 使用prometheus从cAdvisor总获取的有效监控项有: 56 | 57 | ```bash 58 | container_accelerator_memory_total_bytes #pod所在卡的显存总大小 59 | container_accelerator_memory_used_bytes #pod所在卡的显存使用 60 | ``` 61 | 62 | ## 注意 63 | 使用第二种方式时container_accelerator_memory_used_bytes获取的仍然pod所在卡的显存使用情况,而不是这个pod使用的显存情况。 64 | 65 | 当一张卡上跑多个进程时,此时获取到的数据是失真的,比如下面,第2张第6张卡都跑了2个进程 66 | 67 | ``` 68 | # nvidia-smi 69 | Thu Dec 17 09:36:05 2020 70 | +-----------------------------------------------------------------------------+ 71 | | NVIDIA-SMI 450.57 Driver Version: 450.57 CUDA Version: 11.0 | 72 | |-------------------------------+----------------------+----------------------+ 73 | | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | 74 | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | 75 | | | | MIG M. | 76 | |===============================+======================+======================| 77 | | 0 TITAN V Off | 00000000:1A:00.0 Off | N/A | 78 | | 29% 42C P8 26W / 250W | 2639MiB / 12066MiB | 0% Default | 79 | | | | N/A | 80 | +-------------------------------+----------------------+----------------------+ 81 | | 1 TITAN V Off | 00000000:1B:00.0 Off | N/A | 82 | | 28% 42C P8 26W / 250W | 4MiB / 12066MiB | 0% Default | 83 | | | | N/A | 84 | +-------------------------------+----------------------+----------------------+ 85 | | 2 TITAN V Off | 00000000:3D:00.0 Off | N/A | 86 | | 28% 39C P2 36W / 250W | 8702MiB / 12066MiB | 1% Default | 87 | | | | N/A | 88 | +-------------------------------+----------------------+----------------------+ 89 | | 3 TITAN V Off | 00000000:3E:00.0 Off | N/A | 90 | | 28% 40C P8 27W / 250W | 4MiB / 12066MiB | 0% Default | 91 | | | | N/A | 92 | +-------------------------------+----------------------+----------------------+ 93 | | 4 TITAN V Off | 00000000:88:00.0 Off | N/A | 94 | | 28% 37C P8 27W / 250W | 4MiB / 12066MiB | 0% Default | 95 | | | | N/A | 96 | +-------------------------------+----------------------+----------------------+ 97 | | 5 TITAN V Off | 00000000:89:00.0 Off | N/A | 98 | | 28% 39C P8 26W / 250W | 4MiB / 12066MiB | 0% Default | 99 | | | | N/A | 100 | +-------------------------------+----------------------+----------------------+ 101 | | 6 TITAN V Off | 00000000:B1:00.0 Off | N/A | 102 | | 33% 48C P2 43W / 250W | 7778MiB / 12066MiB | 16% Default | 103 | | | | N/A | 104 | +-------------------------------+----------------------+----------------------+ 105 | | 7 TITAN V Off | 00000000:B2:00.0 Off | N/A | 106 | | 28% 38C P8 25W / 250W | 4MiB / 12066MiB | 0% Default | 107 | | | | N/A | 108 | +-------------------------------+----------------------+----------------------+ 109 | 110 | +-----------------------------------------------------------------------------+ 111 | | Processes: | 112 | | GPU GI CI PID Type Process name GPU Memory | 113 | | ID ID Usage | 114 | |=============================================================================| 115 | | 0 N/A N/A 159584 C ./bin/main 2635MiB | 116 | | 2 N/A N/A 41728 C python 5133MiB | 117 | | 2 N/A N/A 152095 C ./bin/main 3565MiB | 118 | | 6 N/A N/A 3148 C python3.6 3887MiB | 119 | | 6 N/A N/A 11020 C python3.6 3887MiB | 120 | +-----------------------------------------------------------------------------+ 121 | ``` 122 | 123 | 124 | 该项目就是为了解决这个文件,通过以下监控线即可获取到pod本身使用的显存大小。 125 | ``` 126 | pod_used_gpu_mem_MB 127 | ``` 128 | 129 | 获取到的监控项类似如下 130 | ``` 131 | pod_used_gpu_mem_MB{app="nvidia-gpu-mem-monitor",app_pid="31563",gpu_name="GeForce GTX 1080 Ti",gpu_uuid="GPU-78d64296-8254-ef39-35ec-cb35bd6e6192",instance="10.244.19.248:80",job="nvidia-gpu-mem-monitor",kubernetes_name="nvidia-gpu-mem-monitor",kubernetes_namespace="devops",pod_name="xmcvt-speech-speed-detect-77b7bbdb96-sjjdq",pod_namespace="xmcvt"} 132 | ``` 133 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 3 | github.com/Microsoft/go-winio v0.4.16 h1:FtSW/jqD+l4ba5iPBj9CODVtgfYAD8w2wS923g/cFDk= 4 | github.com/Microsoft/go-winio v0.4.16/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0= 5 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 6 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 7 | github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= 8 | github.com/containerd/containerd v1.4.3 h1:ijQT13JedHSHrQGWFcGEwzcNKrAGIiZ+jSD5QQG07SY= 9 | github.com/containerd/containerd v1.4.3/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= 10 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 11 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 12 | github.com/docker/distribution v2.7.1+incompatible h1:a5mlkVzth6W5A4fOsS3D2EO5BUmsJpcB+cRlLU7cSug= 13 | github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= 14 | github.com/docker/docker v20.10.0+incompatible h1:4g8Xjho+7quMwzsTrhtrWpdQU9UTc2rX57A3iALaBmE= 15 | github.com/docker/docker v20.10.0+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= 16 | github.com/docker/docker v20.10.2+incompatible h1:vFgEHPqWBTp4pTjdLwjAA4bSo3gvIGOYwuJTlEjVBCw= 17 | github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= 18 | github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= 19 | github.com/docker/go-units v0.4.0 h1:3uh0PgVws3nIA0Q+MwDC8yjEPf9zjRfZZWXZYDct3Tw= 20 | github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= 21 | github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 22 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 23 | github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= 24 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 25 | github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= 26 | github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= 27 | github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14= 28 | github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= 29 | github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= 30 | github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q= 31 | github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= 32 | github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no= 33 | github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= 34 | github.com/go-playground/validator/v10 v10.2.0 h1:KgJ0snyC2R9VXYN2rneOtQcw5aHQB1Vv0sFl1UcHBOY= 35 | github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= 36 | github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls= 37 | github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= 38 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 39 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 40 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 41 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 42 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 43 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 44 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 45 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 46 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 47 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 48 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 49 | github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0= 50 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 51 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 52 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 53 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 54 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 55 | github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 56 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 57 | github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 58 | github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 59 | github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= 60 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 61 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 62 | github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y= 63 | github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= 64 | github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY= 65 | github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= 66 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 67 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 68 | github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= 69 | github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= 70 | github.com/opencontainers/image-spec v1.0.1 h1:JMemWkRwHx4Zj+fVxWoMCFm/8sYGGrUVojFA6h/TRcI= 71 | github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= 72 | github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= 73 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 74 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 75 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 76 | github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= 77 | github.com/sirupsen/logrus v1.7.0 h1:ShrD1U9pZB12TX0cVy0DtePoCH97K8EtX+mg7ZARUtM= 78 | github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= 79 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 80 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 81 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 82 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 83 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 84 | github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= 85 | github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= 86 | github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= 87 | github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs= 88 | github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= 89 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 90 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 91 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 92 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 93 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 94 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 95 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 96 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 97 | golang.org/x/net v0.0.0-20190311183353-d8887717615a h1:oWX7TPOiFAMXLq8o0ikBYfCJVlRHBcsciT5bXOrH628= 98 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 99 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 100 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 101 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 102 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 103 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 104 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 105 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 106 | golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 107 | golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 108 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42 h1:vEOn+mP2zCOVzKckCZy6YsCtDblrpj/w7B9nxGNELpg= 109 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 110 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 111 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 112 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 113 | golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 114 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 115 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 116 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 117 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 118 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 119 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 120 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 121 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 122 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 123 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY= 124 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= 125 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 126 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 127 | google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= 128 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 129 | google.golang.org/grpc v1.34.0 h1:raiipEjMOIC/TO2AvyTxP25XFdLxNIBwzDh3FM3XztI= 130 | google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= 131 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 132 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 133 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 134 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 135 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 136 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 137 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 138 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 139 | google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= 140 | google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= 141 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 142 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 143 | gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= 144 | gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 145 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 146 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 147 | --------------------------------------------------------------------------------