Documentation
¶
Index ¶
- Variables
- func AddCommand(cmds ...*cobra.Command)
- func ConfP(c interface{})
- func Execute(run func(cmd *cobra.Command, args []string))
- func SetConfX(serviceName string, rootDir string, dockerConfig ...DockerConfig)
- type Configuration
- type DockerConfig
- type GoProxyConfig
- type OpenapiConfig
- type Password
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = &Configuration{}
View Source
var RootPath = ""
Functions ¶
func AddCommand ¶
func SetConfX ¶
func SetConfX(serviceName string, rootDir string, dockerConfig ...DockerConfig)
Types ¶
type Configuration ¶
type Configuration struct {
*cobra.Command
Feature string
ShouldGenerateConfig bool
// contains filtered or unexported fields
}
func (*Configuration) Initialize ¶
func (conf *Configuration) Initialize()
func (*Configuration) Prefix ¶
func (conf *Configuration) Prefix() string
func (*Configuration) ProjectName ¶
func (conf *Configuration) ProjectName() string
func (*Configuration) ServiceName ¶
func (conf *Configuration) ServiceName() string
func (*Configuration) WorkSpace ¶
func (conf *Configuration) WorkSpace() string
type DockerConfig ¶
type DockerConfig struct {
BuildImage string
RuntimeImage string
GoProxy GoProxyConfig
Openapi bool
}
type GoProxyConfig ¶
type OpenapiConfig ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.