config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(fs afero.Fs) string

func Read

func Read(fs afero.Fs, cfg *Config, filePath string) error

func Validate

func Validate(cfg *Config) error

Types

type Config

type Config struct {
	Excludes []*Exclude `json:"excludes,omitempty"`
}

type Exclude

type Exclude struct {
	PolicyName       string `json:"policy_name" yaml:"policy_name"`
	WorkflowFilePath string `json:"workflow_file_path,omitempty" yaml:"workflow_file_path"`
	ActionFilePath   string `json:"action_file_path,omitempty" yaml:"action_file_path"`
	JobName          string `json:"job_name,omitempty" yaml:"job_name"`
	ActionName       string `json:"action_name,omitempty" yaml:"action_name"`
	StepID           string `json:"step_id,omitempty" yaml:"step_id"`
}

func (*Exclude) FilePath added in v0.2.11

func (e *Exclude) FilePath() string

Jump to

Keyboard shortcuts

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