defaults

package
v0.0.0-...-6f2fbe4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: GPL-3.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigPattern

type ConfigPattern struct {
	Config     *module.DeployConfig
	Type       *module.DeployType
	Net        *module.NetProtocolType
	Plugins    *module.PluginsConfig
	Envs       []NameValue
	Vars       []NameValue
	HostGroups []HostGroups
}

type Environments

type Environments struct {
	Envs []NameValue `yaml:"environments,omitempty" json:"environments,omitempty" xml:"environments,chardata,omitempty"`
}

func (*Environments) FromJsonCode

func (envs *Environments) FromJsonCode(jsonCode string) (*Environments, error)

func (*Environments) FromJsonFile

func (envs *Environments) FromJsonFile(path string) (*Environments, error)

func (*Environments) FromXmlCode

func (envs *Environments) FromXmlCode(xmlCode string) (*Environments, error)

func (*Environments) FromXmlFile

func (envs *Environments) FromXmlFile(path string) (*Environments, error)

func (*Environments) FromYamlCode

func (envs *Environments) FromYamlCode(yamlCode string) (*Environments, error)

func (*Environments) FromYamlFile

func (envs *Environments) FromYamlFile(path string) (*Environments, error)

func (*Environments) Json

func (envs *Environments) Json() (string, error)

func (*Environments) String

func (envs *Environments) String() string

func (*Environments) Xml

func (envs *Environments) Xml() (string, error)

func (*Environments) Yaml

func (envs *Environments) Yaml() (string, error)

type HostGroups

type HostGroups struct {
	Name  string      `yaml:"name" json:"name" xml:"name,chardata"`
	Hosts []HostValue `yaml:"hosts" json:"hosts" xml:"hosts,chardata"`
}

func (*HostGroups) String

func (hg *HostGroups) String() string

type HostGroupsConfig

type HostGroupsConfig struct {
	HostGroups []HostGroups `yaml:"groups" json:"groups" xml:"groups,chardata"`
}

func (*HostGroupsConfig) FromJsonCode

func (hgc *HostGroupsConfig) FromJsonCode(jsonCode string) (*HostGroupsConfig, error)

func (*HostGroupsConfig) FromJsonFile

func (hgc *HostGroupsConfig) FromJsonFile(path string) (*HostGroupsConfig, error)

func (*HostGroupsConfig) FromXmlCode

func (hgc *HostGroupsConfig) FromXmlCode(xmlCode string) (*HostGroupsConfig, error)

func (*HostGroupsConfig) FromXmlFile

func (hgc *HostGroupsConfig) FromXmlFile(path string) (*HostGroupsConfig, error)

func (*HostGroupsConfig) FromYamlCode

func (hgc *HostGroupsConfig) FromYamlCode(yamlCode string) (*HostGroupsConfig, error)

func (*HostGroupsConfig) FromYamlFile

func (hgc *HostGroupsConfig) FromYamlFile(path string) (*HostGroupsConfig, error)

func (*HostGroupsConfig) Json

func (hgc *HostGroupsConfig) Json() (string, error)

func (*HostGroupsConfig) String

func (hgc *HostGroupsConfig) String() string

func (*HostGroupsConfig) Xml

func (hgc *HostGroupsConfig) Xml() (string, error)

func (*HostGroupsConfig) Yaml

func (hgc *HostGroupsConfig) Yaml() (string, error)

type HostValue

type HostValue struct {
	Name      string   `yaml:"name" json:"name" xml:"name,chardata"`
	IpAddress string   `yaml:"ipAddress,omitempty" json:"ipAddress,omitempty" xml:"ip-address,chardata,omitempty"`
	HostName  string   `yaml:"hostName,omitempty" json:"hostName,omitempty" xml:"host-name,chardata,omitempty"`
	Port      string   `yaml:"port,omitempty" json:"port,omitempty" xml:"port,chardata,omitempty"`
	Roles     []string `yaml:"roles,omitempty" json:"roles,omitempty" xml:"roles,chardata,omitempty"`
}

func (*HostValue) String

func (hv *HostValue) String() string

type NameValue

type NameValue struct {
	Name  string `yaml:"name" json:"name" xml:"name,chardata"`
	Value string `yaml:"value,omitempty" json:"value,omitempty" xml:"value,chardata,omitempty"`
}

func (*NameValue) String

func (nv *NameValue) String() string

type Vars

type Vars struct {
	Vars []NameValue `yaml:"vars,omitempty" json:"vars,omitempty" xml:"vars,chardata,omitempty"`
}

func (*Vars) FromJsonCode

func (vars *Vars) FromJsonCode(jsonCode string) (*Vars, error)

func (*Vars) FromJsonFile

func (vars *Vars) FromJsonFile(path string) (*Vars, error)

func (*Vars) FromXmlCode

func (vars *Vars) FromXmlCode(xmlCode string) (*Vars, error)

func (*Vars) FromXmlFile

func (vars *Vars) FromXmlFile(path string) (*Vars, error)

func (*Vars) FromYamlCode

func (vars *Vars) FromYamlCode(yamlCode string) (*Vars, error)

func (*Vars) FromYamlFile

func (vars *Vars) FromYamlFile(path string) (*Vars, error)

func (*Vars) Json

func (vars *Vars) Json() (string, error)

func (*Vars) String

func (vars *Vars) String() string

func (*Vars) Xml

func (vars *Vars) Xml() (string, error)

func (*Vars) Yaml

func (vars *Vars) Yaml() (string, error)

Jump to

Keyboard shortcuts

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