Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultConfigDir = "."
DefaultConfigDir default current working directory
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerOptions ¶
type ControllerOptions struct {
ConfigFile string
}
ControllerOptions describes gm options
func NewControllerOptions ¶
func NewControllerOptions() *ControllerOptions
NewControllerOptions creates a new gm options
func (*ControllerOptions) Config ¶
func (o *ControllerOptions) Config() (*config.ControllerConfig, error)
Config returns a config.ControllerConfig
func (*ControllerOptions) Flags ¶
func (o *ControllerOptions) Flags() (fss cliflag.NamedFlagSets)
Flags returns flags of ControllerOptions
func (*ControllerOptions) Validate ¶
func (o *ControllerOptions) Validate() []error
Validate validates the ControllerOptions
Click to show internal directories.
Click to hide internal directories.