config

package
v1.0.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	// PluginDir is the subdirectory name for ampel artifacts within the workspace.
	PluginDir = "ampel"
	// DefaultGranularPolicyDir is the default directory name for granular AMPEL policy source files.
	DefaultGranularPolicyDir = "granular-policies"
	// GeneratedPolicyDir is the workspace subdirectory for generated policy artifacts.
	GeneratedPolicyDir = "policy"
	// DefaultResultsDir is the default directory name for per-repository result files.
	DefaultResultsDir = "results"
)

Variables

This section is empty.

Functions

func EnsureDirectories

func EnsureDirectories() error

EnsureDirectories creates the workspace directory structure required by the plugin.

func GeneratedPolicyDirPath

func GeneratedPolicyDirPath() string

GeneratedPolicyDirPath returns the workspace path for generated policy output.

func GranularPolicyDirPath

func GranularPolicyDirPath() string

GranularPolicyDirPath returns the default path for granular policy source files.

func ResultsDirPath

func ResultsDirPath() string

ResultsDirPath returns the path for the per-repository result files.

func SpecDirPath

func SpecDirPath() string

SpecDirPath returns the path for the embedded spec files directory.

Types

type Config

type Config struct{}

Config holds the plugin configuration with hardcoded workspace-relative paths.

func NewConfig

func NewConfig() *Config

NewConfig returns a new Config.

Jump to

Keyboard shortcuts

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