Documentation
¶
Index ¶
- Constants
- func ConvertHosts(clusterID string, sourceHosts map[string][]string) map[string][]*database.Host
- func CopyFile(src, dst string) (err error)
- func GetComponents(path string) []string
- func GetFileFromDir(dir string, cf func(os.FileInfo) bool) (fs []os.FileInfo, err error)
- func GetOrderedComponents(dir string) ([]string, error)
- func GetVersions(path string) ([]string, error)
- func InstantiateCluster(wd string, cluster *database.Cluster) error
- func MkGroupVars(oldFolder, newFolder string) error
- func PreparePlaybooks(dir string, ds *DeploySeed) error
- type Component
- type DeploySeed
- type Template
Constants ¶
View Source
const (
//PlaybookSuffix - suffix for playbook folder
PlaybookSuffix = "-playbook"
)
Variables ¶
This section is empty.
Functions ¶
func ConvertHosts ¶
func CopyFile ¶
CopyFile copies a file from src to dst. If src and dst files exist, and are the same, then return success. Otherise, attempt to create a hard link between the two files. If that fail, copy the file contents from src to dst.
func GetComponents ¶
func GetFileFromDir ¶
func GetOrderedComponents ¶
func GetVersions ¶
func MkGroupVars ¶
func PreparePlaybooks ¶
func PreparePlaybooks(dir string, ds *DeploySeed) error
Types ¶
type DeploySeed ¶
func NewDeploySeed ¶
func NewDeploySeed(c *database.Cluster, workDir string) *DeploySeed
Click to show internal directories.
Click to hide internal directories.