entrypoint

package
v0.18.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 5 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"
	PreCheckPB                          = "precheck.yml"
	RenewCertsPB                        = "renew-certs.yml"
	KubeVipConfigPB                     = "config-for-kube-vip.yml"
	ConfigInsecureRegistryPB            = "config-insecure-registry.yml"
	NfConntrackPB                       = "enable-nf-conntrack.yml"
	MountXFSPquotaPB                    = "mount-xfs-pquota.yml"
	SetContainerdRegistryMirror         = "set-containerd-registry-mirror.yml"
	DisableKernelUnattendedUpgrade      = "disable-kernel-unattended-upgrade.yml"
	ConfigDockerCgroupDriverForKylinSP2 = "config-docker-cgroup-driver-for-kylinSP2.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, builtinAction bool) error

func (*EntryPoint) PreHookRunPart

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

func (*EntryPoint) Render

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

func (*EntryPoint) SprayRunPart

func (ep *EntryPoint) SprayRunPart(actionType, action, extraArgs string, isPrivateKey, builtinAction 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