Documentation ¶
Index ¶
- func CmdFileExist(node, path string) bool
- func CmdWorkSpace(node, cmd, workdir string)
- func DeleteApp(flag *DeleteFlags, cfgFile string) error
- func GetcoreFlags(appURL string) *coreFlags
- func NewDeleteCommands(cmds []Command) (Runner, Runner)
- func NewcoreCommands(cmds []Command) (Runner, Runner)
- func ReadFromStdin() (bt []byte, err error)
- type Command
- type DeleteFlags
- type PkgConfig
- type RunOnEveryNodes
- type RunOnMaster
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdFileExist ¶
func CmdWorkSpace ¶
func CmdWorkSpace(node, cmd, workdir string)
func DeleteApp ¶
func DeleteApp(flag *DeleteFlags, cfgFile string) error
func GetcoreFlags ¶
func GetcoreFlags(appURL string) *coreFlags
func NewDeleteCommands ¶
return command run on every nodes and run only on master node
func NewcoreCommands ¶
return command run on every nodes and run only on master node
Types ¶
type Command ¶
type Command struct { Name string // LOAD START APPLY DELETE STOP REMOVE Cmd string // kubectl apply -k Type string }
Command is
type DeleteFlags ¶
func GetDeleteFlags ¶
func GetDeleteFlags(appURL string) *DeleteFlags
type PkgConfig ¶
type PkgConfig struct { Cmds []Command URL string Name string Workdir string ValuesContent []byte // -f values.yaml or -f - or default values,read values content before run Workspace string // fmt.Sprintf("%s/%s", p.Workdir, p.Name) }
func LoadConfig ¶
LoadConfig from tar package
kube.tar
config images.tar
config content:
LOAD docker load -i images.tar START systemctl start docker DELETE docker rmi STOP systemctl top APPLY kubectl apply -f
type RunOnEveryNodes ¶
type RunOnEveryNodes struct {
Cmd []Command
}
type RunOnMaster ¶
type RunOnMaster struct {
Cmd []Command
}
Click to show internal directories.
Click to hide internal directories.