diff --git a/cmd/ocis-ocs/ocis-ocs b/cmd/ocis-ocs/ocis-ocs new file mode 100755 index 0000000000..9e3794fa7e Binary files /dev/null and b/cmd/ocis-ocs/ocis-ocs differ diff --git a/pkg/server/http/option.go b/pkg/server/http/option.go index 154d562907..d7fd3bc2d7 100644 --- a/pkg/server/http/option.go +++ b/pkg/server/http/option.go @@ -14,11 +14,12 @@ type Option func(o *Options) // Options defines the available options for this package. type Options struct { - Logger log.Logger - Context context.Context - Config *config.Config - Metrics *metrics.Metrics - Flags []cli.Flag + Namespace string + Logger log.Logger + Context context.Context + Config *config.Config + Metrics *metrics.Metrics + Flags []cli.Flag } // newOptions initializes the available default options. @@ -66,3 +67,10 @@ func Flags(val []cli.Flag) Option { o.Flags = append(o.Flags, val...) } } + +// Namespace provides a function to set the Namespace option. +func Namespace(val string) Option { + return func(o *Options) { + o.Namespace = val + } +}