const defaultEtcdPathPrefix … type AggregatorOptions … // NewCommandStartAggregator provides a CLI handler for 'start master' command // with a default AggregatorOptions. func NewCommandStartAggregator(ctx context.Context, defaults *AggregatorOptions) *cobra.Command { … } // AddFlags is necessary because hyperkube doesn't work using cobra, so we have to have different registration and execution paths func (o *AggregatorOptions) AddFlags(fs *pflag.FlagSet) { … } // NewDefaultOptions builds a "normal" set of options. You wouldn't normally expose this, but hyperkube isn't cobra compatible func NewDefaultOptions(out, err io.Writer) *AggregatorOptions { … } // Validate validates all the required options. func (o AggregatorOptions) Validate(args []string) error { … } // Complete fills in missing Options. func (o *AggregatorOptions) Complete() error { … } // RunAggregator runs the API Aggregator. func (o AggregatorOptions) RunAggregator(ctx context.Context) error { … }