Kubernetes Registry (#1064)

* add teh k8s registry

* add k8s reg config/cmd

* go mod update
This commit is contained in:
Asim Aslam
2019-12-27 20:08:46 +00:00
committed by GitHub
parent 22aa7d14b3
commit 61cde4a9f4
14 changed files with 950 additions and 236 deletions

View File

@@ -4,7 +4,12 @@ type LogOptions struct {
Params map[string]string
}
type WatchOptions struct {
Params map[string]string
}
type LogOption func(*LogOptions)
type WatchOption func(*WatchOptions)
// LogParams provides additional params for logs
func LogParams(p map[string]string) LogOption {
@@ -12,3 +17,10 @@ func LogParams(p map[string]string) LogOption {
l.Params = p
}
}
// WatchParams used for watch params
func WatchParams(p map[string]string) WatchOption {
return func(w *WatchOptions) {
w.Params = p
}
}