internal

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DirectoryPermission is the default permission for directories (rwxr-x---)
	// Used for: blueprint directory, history directory
	DirectoryPermission os.FileMode = 0o750

	// SensitiveDirectoryPermission is the permission for sensitive directories (rwx------)
	// Used for: SSH directory, decrypt destination directory
	SensitiveDirectoryPermission os.FileMode = 0o700

	// FilePermission is the permission for sensitive files (rw-------)
	// Used for: encrypted files, status files, history files, temporary files
	FilePermission os.FileMode = 0o600
)

File and directory permission constants

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultOSDetector

type DefaultOSDetector struct{}

DefaultOSDetector is the default adapter that uses runtime.GOOS.

func (*DefaultOSDetector) Name

func (d *DefaultOSDetector) Name() string

Name returns the normalised OS name used throughout blueprint.

type OSDetector

type OSDetector interface {
	// Name returns the normalized OS name (mac, linux, windows, or the raw GOOS for unknown).
	Name() string
}

OSDetector is a port interface for OS detection. Adapters can implement this to provide OS information.

func NewOSDetector

func NewOSDetector() OSDetector

NewOSDetector creates a new DefaultOSDetector.

Directories

Path Synopsis
Package platform provides abstractions for system operations to enable testability.
Package platform provides abstractions for system operations to enable testability.
mocks
Package mocks provides mock implementations of platform interfaces for testing.
Package mocks provides mock implementations of platform interfaces for testing.
testutils
Package testutils provides utilities for testing Blueprint handlers and components.
Package testutils provides utilities for testing Blueprint handlers and components.
Package renderer provides template rendering for blueprint files.
Package renderer provides template rendering for blueprint files.

Jump to

Keyboard shortcuts

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