scriptlet

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogger

CreateLogger creates a logger for scriptlets.

Types

type Runner

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

func New

func New(loader *scriptlet.Loader, client ScriptletClientPort) (Runner, error)

func (Runner) ServerRegistrationRun

func (r Runner) ServerRegistrationRun(ctx context.Context, server *provisioning.Server) error

ServerRegistrationRun executes the server registration scriptlet.

type ScriptletClientPort

type ScriptletClientPort interface {
	GetSystem(ctx context.Context, server provisioning.Server, resource string) (map[string]any, error)
	UpdateSystem(ctx context.Context, server provisioning.Server, resource string, config any) error
	TriggerSystemAction(ctx context.Context, server provisioning.Server, resource string, action string, body any) error
	GetOSService(ctx context.Context, server provisioning.Server, name string) (map[string]any, error)
	UpdateOSService(ctx context.Context, server provisioning.Server, name string, config any) error
	AddApplication(ctx context.Context, server provisioning.Server, application string) error
}

Jump to

Keyboard shortcuts

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