confx

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = &Configuration{}
View Source
var RootPath = ""

Functions

func AddCommand

func AddCommand(cmds ...*cobra.Command)

func ConfP

func ConfP(c interface{})

func Execute

func Execute(run func(cmd *cobra.Command, args []string))

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
}

type GoProxyConfig

type GoProxyConfig struct {
	ProxyOn bool
	Host    string
}

type Password

type Password string

func (Password) SecurityString

func (p Password) SecurityString() string

func (Password) String

func (p Password) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL