entrypoint

package
v0.4.2-rc9 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PBAction = "playbook"
	SHAction = "shell"

	ResetPB          = "reset.yml"
	ScalePB          = "scale.yml"
	ClusterPB        = "cluster.yml"
	RemoveNodePB     = "remove-node.yml"
	UpgradeClusterPB = "upgrade-cluster.yml"

	PingPB        = "ping.yml"
	RepoPB        = "enable-repo.yml"
	FirewallPB    = "disable-firewalld.yml"
	KubeconfigPB  = "kubeconfig.yml"
	ClusterInfoPB = "cluster-info.yml"
	UpdateHostsPB = "update-hosts.yml"
	RemovePkgsPB  = "remove-pkgs.yml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

type Actions struct {
	Types     []string
	Playbooks *Playbooks
}

func NewActions

func NewActions() *Actions

type ArgsError added in v0.1.1

type ArgsError struct {
	// contains filtered or unexported fields
}

func (ArgsError) Error added in v0.1.1

func (argsError ArgsError) Error() string

type EntryPoint

type EntryPoint struct {
	PreHookCMDs  []string
	SprayCMD     string
	PostHookCMDs []string
	Actions      *Actions
}

func NewEntryPoint

func NewEntryPoint() *EntryPoint

func (*EntryPoint) PostHookRunPart

func (ep *EntryPoint) PostHookRunPart(actionType, action, extraArgs string, isPrivateKey bool) error

func (*EntryPoint) PreHookRunPart

func (ep *EntryPoint) PreHookRunPart(actionType, action, extraArgs string, isPrivateKey bool) error

func (*EntryPoint) Render

func (ep *EntryPoint) Render() (string, error)

func (*EntryPoint) SprayRunPart

func (ep *EntryPoint) SprayRunPart(actionType, action, extraArgs string, isPrivateKey bool) error

type Playbooks

type Playbooks struct {
	List []string
	Dict map[string]void
}

Jump to

Keyboard shortcuts

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