Documentation
¶
Index ¶
- func FileRender(dstFile, srcFile string, sets map[string]string, perm os.FileMode) error
- func RenderWithExpand(text string, sets map[string]string) string
- func VarParams(app *inapi.AppReplicaInstance) map[string]string
- type AppConfigHelper
- func (it *AppConfigHelper) Config(cfgName string) *inapi.AppDeployConfigItem
- func (it *AppConfigHelper) ConfigValue(cfgName string) string
- func (it *AppConfigHelper) ConfigValueOK(cfgName string) (string, bool)
- func (app *AppConfigHelper) Params() map[string]string
- func (it *AppConfigHelper) Service(name string, port uint32) *inapi.AppDeployServicePort
- func (it *AppConfigHelper) ServiceQuery(qs ...string) *inapi.AppDeployServicePort
- func (it *AppConfigHelper) Spec() *inapi.AppSpec
- func (it *AppConfigHelper) Update() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileRender ¶
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
Click to show internal directories.
Click to hide internal directories.