Documentation ¶
Index ¶
- Constants
- func GetAllDirsInsideTmpl() ([]string, error)
- func Log(file string, msg string)
- type Instance
- func (i *Instance) CreateFromConfig(confFile string) *Instance
- func (i *Instance) CreateSampleConfigFile() *Instance
- func (i *Instance) DeleteStateForDir(directory string) *Instance
- func (i *Instance) DownloadFromS3() *Instance
- func (i *Instance) GenerateBinPackingCSV() *Instance
- func (i *Instance) GenerateConfigFilesFromDir(dirToGenerateFrom string) *Instance
- func (i *Instance) GenerateMappingFile() *Instance
- func (i *Instance) ParseS3Config(confFile string) *Instance
- func (i *Instance) ParseYaml(confFile string) *Instance
- func (i *Instance) PrintStateForDir(directory string) *Instance
- func (i *Instance) ReadBinPackingCSV() *Instance
- func (i *Instance) ReadMappingCSV() *Instance
- func (i *Instance) ReturnStateForDir(directory string) *Instance
- func (i *Instance) RunBashScripts() *Instance
- func (i *Instance) SetAutoYesEnabled(autoYesEnabled bool) *Instance
- func (i *Instance) SetRunOnLocal(runOnLocal bool) *Instance
- func (i *Instance) StopRunningCommand() *Instance
- func (i *Instance) TimeTaken() *Instance
- func (i *Instance) UploadToS3() *Instance
Constants ¶
const ( SampleConfigFileName = "db2ctl-sample.yaml" ConfigFileName = "db2ctl.yaml" )
constants needed
Variables ¶
This section is empty.
Functions ¶
func GetAllDirsInsideTmpl ¶
GetAllDirsInsideTmpl gets all directories inside template folder
Types ¶
type Instance ¶
type Instance struct { CombinedConfig *config.Combined Error error Flags *pflag.FlagSet StartTime time.Time ConfigDir string bash.Instance S3ConfigInstance *config.S3ConfigStruct }
Instance is the main struct for command configs
func (*Instance) CreateFromConfig ¶
CreateFromConfig creates yaml config
func (*Instance) CreateSampleConfigFile ¶
CreateSampleConfigFile creates sample config file
func (*Instance) DeleteStateForDir ¶
DeleteStateForDir deletes state for given dir
func (*Instance) DownloadFromS3 ¶
DownloadFromS3 downloads file from the IBM S3 Storage
func (*Instance) GenerateBinPackingCSV ¶
GenerateBinPackingCSV generates bin packing csv
func (*Instance) GenerateConfigFilesFromDir ¶
GenerateConfigFilesFromDir generates all config files
func (*Instance) GenerateMappingFile ¶
GenerateMappingFile generates mapping file
func (*Instance) ParseS3Config ¶
ParseS3Config parse S3 Config file
func (*Instance) PrintStateForDir ¶
PrintStateForDir prints state for given dir
func (*Instance) ReadBinPackingCSV ¶
ReadBinPackingCSV reads binpacking csv
func (*Instance) ReadMappingCSV ¶
ReadMappingCSV reads mapping csv file
func (*Instance) ReturnStateForDir ¶
ReturnStateForDir prints state for given dir
func (*Instance) RunBashScripts ¶
RunBashScripts runs all bash scripts in a directory
func (*Instance) SetAutoYesEnabled ¶
SetAutoYesEnabled is a setter for autoYesEnabled field
func (*Instance) SetRunOnLocal ¶
SetRunOnLocal is a setter for runOnLocal field
func (*Instance) StopRunningCommand ¶
StopRunningCommand stops currently running command
func (*Instance) UploadToS3 ¶
UploadToS3 uploads file to the IBM S3 Storage