Documentation ¶
Index ¶
- Variables
- func ArtifactsDir() string
- func CtxSSHClient(ctx context.Context) *goph.Client
- func CtxWithInventory(ctx context.Context, inv *Inventory) context.Context
- func CtxWithPreviousStep(ctx context.Context, step StepStatus) context.Context
- func CtxWithSSHClient(ctx context.Context, client *goph.Client) context.Context
- func Run(ctx context.Context, steps ...Step) error
- func RunFn(client *goph.Client, format string, args ...any) (string, error)
- func TempDir() string
- type AptitudeStatus
- type CtxKey
- type Inventory
- type Step
- func Aptitude(desiredStatus AptitudeStatus, packageNames ...string) Step
- func Commands(cmds ...string) Step
- func FileRemote(remotePath string, contents []byte) Step
- func IfCond(cond bool, steps ...Step) Step
- func IfPreviousChanged(steps ...Step) Step
- func RunAll(steps ...Step) Step
- func Ternary(cond bool, ifTrue, ifFalse Step) Step
- type StepStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var WishDir = ".wisshes"
Functions ¶
func ArtifactsDir ¶
func ArtifactsDir() string
func CtxWithPreviousStep ¶
func CtxWithPreviousStep(ctx context.Context, step StepStatus) context.Context
func CtxWithSSHClient ¶
Types ¶
type AptitudeStatus ¶
type AptitudeStatus string
const ( AptitudeStatusUninstalled AptitudeStatus = "uninstalled" AptitudeStatusInstalled AptitudeStatus = "installed" )
type Step ¶
type Step func(ctx context.Context) (revisedCtx context.Context, name string, status StepStatus, err error)
func Aptitude ¶
func Aptitude(desiredStatus AptitudeStatus, packageNames ...string) Step
func FileRemote ¶
func IfPreviousChanged ¶
type StepStatus ¶
type StepStatus string
const ( StepStatusUnchanged StepStatus = "unchanged" StepStatusChanged StepStatus = "changed" StepStatusFailed StepStatus = "failed" )
func CtxPreviousStep ¶
func CtxPreviousStep(ctx context.Context) StepStatus
Click to show internal directories.
Click to hide internal directories.