workflows

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package workflows describes the optional, bundled project workflows.

The source files are compiled into Lectern and copied to the target only when an operator enables a workflow. The target copy is versioned and immutable: a later enable verifies existing bytes instead of replacing them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SourceDigest

func SourceDigest(files []File) string

func Stage

func Stage(ctx context.Context, ex executor.Executor, id string) (string, string, error)

Stage copies a bundled source to a target-local immutable version path. It uses only Executor.Run, so SSH targets execute the same checks remotely and bytes never land in the Lectern control-plane filesystem.

Types

type Definition

type Definition struct {
	ID          string   `json:"id"`
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Version     string   `json:"version"`
	UpstreamURL string   `json:"upstream_url"`
	Commands    []string `json:"commands"`
}

func DefinitionFor

func DefinitionFor(id string) (Definition, bool)

func Definitions

func Definitions() []Definition

type File

type File struct {
	Path []string
	Data []byte
	Mode uint32
}

func Files

func Files(id string) ([]File, error)

Jump to

Keyboard shortcuts

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