inconf

package
v2.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileRender

func FileRender(dstFile, srcFile string, sets map[string]string, perm os.FileMode) error

func RenderWithExpand

func RenderWithExpand(text string, sets map[string]string) string

func VarParams

func VarParams(app *inapi.AppReplicaInstance) map[string]string

扁平化的配置信息导出

Types

type AppConfigHelper

type AppConfigHelper struct {
	*inapi.AppReplicaInstance
	// contains filtered or unexported fields
}

func NewAppConfigHelper

func NewAppConfigHelper() (*AppConfigHelper, error)

func (*AppConfigHelper) Config

func (it *AppConfigHelper) Config(cfgName string) *inapi.AppDeployConfigItem

func (*AppConfigHelper) ConfigValue

func (it *AppConfigHelper) ConfigValue(cfgName string) string

func (*AppConfigHelper) ConfigValueOK

func (it *AppConfigHelper) ConfigValueOK(cfgName string) (string, bool)

func (*AppConfigHelper) Params

func (app *AppConfigHelper) Params() map[string]string

func (*AppConfigHelper) Service

func (it *AppConfigHelper) Service(name string, port uint32) *inapi.AppDeployServicePort

func (*AppConfigHelper) ServiceQuery

func (it *AppConfigHelper) ServiceQuery(qs ...string) *inapi.AppDeployServicePort

func (*AppConfigHelper) Spec

func (it *AppConfigHelper) Spec() *inapi.AppSpec

func (*AppConfigHelper) Update

func (it *AppConfigHelper) Update() bool

Jump to

Keyboard shortcuts

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