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.
Directories
¶
| Path | Synopsis |
|---|---|
|
gitcmd
Package gitcmd is the only place in blueprint that executes the git binary.
|
Package gitcmd is the only place in blueprint that executes the git binary. |
|
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. |
Click to show internal directories.
Click to hide internal directories.