linter

package
v4.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Linter

type Linter struct {
	// contains filtered or unexported fields
}

A Linter lints a pipeline configuration.

func New

func New(opts ...Option) *Linter

New creates a new Linter with options.

func (*Linter) Lint

func (l *Linter) Lint(configs []*WorkflowConfig) error

Lint lints the configuration.

type Option

type Option func(*Linter)

Option configures a linting option.

func PrivilegedPlugins

func PrivilegedPlugins(plugins []string) Option

PrivilegedPlugins adds the list of privileged plugins.

func PrivilegedPluginsWithMatchType

func PrivilegedPluginsWithMatchType(plugins []string, matchType string) Option

PrivilegedPluginsWithMatchType adds the list of privileged plugins and the match type.

func WithTrusted

func WithTrusted(trusted TrustedConfiguration) Option

WithTrusted adds the trusted option to the linter.

func WithTrustedClonePlugins

func WithTrustedClonePlugins(plugins []string) Option

WithTrustedClonePlugins adds the list of trusted clone plugins.

type TrustedConfiguration

type TrustedConfiguration struct {
	Network  bool
	Volumes  bool
	Security bool
}

type WorkflowConfig

type WorkflowConfig struct {
	// File is the path to the configuration file.
	File string

	// RawConfig is the raw configuration.
	RawConfig string

	// Config is the parsed configuration.
	Workflow *types.Workflow
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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