confx

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 11 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)

func ShouldReplacePath added in v0.0.6

func ShouldReplacePath(s string) string

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
	GoConfig       GoConfig
	Openapi        bool
	GitlabCIConfig GitlabCIConfig
}

type GitlabCIConfig added in v0.1.0

type GitlabCIConfig struct {
	GitlabCI   bool
	GitlabHost string
}

type GoConfig added in v0.1.0

type GoConfig struct {
	ProxyOn     bool
	ProxyHost   string
	PrivateHost 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