entrypoint

package
v0.4.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 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) PreHookRunPartForRHEL8 added in v0.4.0

func (ep *EntryPoint) PreHookRunPartForRHEL8(isPrivateKey bool) error

PreHookRunPartForRHEL8 does special things only for RHEL8.

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