script

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Registry = map[string]map[string]Func{
	"ubuntu": {
		"install-docker": New(UbuntuInstallDocker()),
	},
}

Functions

This section is empty.

Types

type Func

type Func interface {
	// Run executes the ScriptFunc
	Run()
	DryRun() string
}

func New

func New(sf ScriptFunc) Func

type FuncImpl

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

func (*FuncImpl) DryRun

func (f *FuncImpl) DryRun() string

DryRun implements Func.

func (*FuncImpl) Run

func (f *FuncImpl) Run()

Run implements Func.

type ScriptFunc

type ScriptFunc struct {
	StartMsg      string
	Commands      []string
	EndMsg        string
	ReplaceString map[string]string
}

func UbuntuInstallDocker

func UbuntuInstallDocker() ScriptFunc

UbuntuInstallDocker installs docker on Ubuntu system

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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