workspace

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindWorkspaceFile

func FindWorkspaceFile(directory string) (string, bool, error)

FindWorkspaceFile looks for reactor-workspace.yml or reactor-workspace.yaml in the specified directory. Returns the absolute path to the found file, whether it was found, and any error.

func GenerateWorkspaceHash

func GenerateWorkspaceHash(workspaceFilePath string) (string, error)

GenerateWorkspaceHash creates a SHA256 hash of the canonical, absolute path of the workspace file. This is used for workspace instance labeling.

Types

type Service

type Service struct {
	Path    string `yaml:"path"`
	Account string `yaml:"account,omitempty"`
}

Service defines the configuration for a single service within the workspace.

type Workspace

type Workspace struct {
	Version  string             `yaml:"version"`
	Services map[string]Service `yaml:"services"`
}

Workspace defines the structure of the reactor-workspace.yml file.

func ParseWorkspaceFile

func ParseWorkspaceFile(filePath string) (*Workspace, error)

ParseWorkspaceFile reads and parses a workspace file into a Workspace struct. It validates the version and ensures services are defined.

Jump to

Keyboard shortcuts

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