Update the runtime for k8s name formatting and move Get to Read endpoint (#978)

* Update the runtime for k8s name formatting and move Get to Read endpoint

* strip regex validation
This commit is contained in:
Asim Aslam
2019-11-25 16:31:14 +00:00
committed by GitHub
parent 95045be83d
commit 252667398e
17 changed files with 268 additions and 589 deletions

View File

@@ -55,17 +55,17 @@ func WithOutput(out io.Writer) CreateOption {
}
}
type GetOption func(o *GetOptions)
type ReadOption func(o *ReadOptions)
// GetOptions queries runtime services
type GetOptions struct {
// ReadOptions queries runtime services
type ReadOptions struct {
// Version queries services with given version
Version string
}
// WithVersion confifgures service version
func WithVersion(version string) GetOption {
return func(o *GetOptions) {
func WithVersion(version string) ReadOption {
return func(o *ReadOptions) {
o.Version = version
}
}