skip

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package skip provides functionality for managing tool skip conditions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	Reason    string
	Condition unmarshal.Templatable[bool]
}

Condition defines a condition and an optional reason for skipping an operation.

func (*Condition) Parse

func (c *Condition) Parse() error

Parse validates and prepares the condition for evaluation.

func (Condition) True

func (c Condition) True() bool

True evaluates whether the condition is satisfied.

type Skip

Skip represents a list of conditions under which certain operations (e.g., downloading, testing) should be skipped.

func (*Skip) Evaluate

func (s *Skip) Evaluate() (Skip, error)

Evaluate checks if any condition in the Skip list evaluates to true.

func (Skip) Has

func (s Skip) Has() bool

Has returns true if there are skip conditions defined.

func (*Skip) UnmarshalYAML

func (s *Skip) UnmarshalYAML(node ast.Node) (err error)

UnmarshalYAML implements custom unmarshaling for Skip, allowing the Skip field to be either a single condition or a list of conditions.

Jump to

Keyboard shortcuts

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