fallbacks

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package fallbacks provides functionality for managing tool fallback sources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fallbacks

type Fallbacks []sources.Type

Fallbacks represents a collection of fallback sources for the tool. It can either be a single source type or a slice of source types, allowing flexibility in specifying multiple fallback methods if the primary source fails.

func (Fallbacks) Build

func (f Fallbacks) Build(sourceType sources.Type) []sources.Type

func (Fallbacks) Compacted

func (f Fallbacks) Compacted() Fallbacks

func (*Fallbacks) UnmarshalYAML

func (f *Fallbacks) UnmarshalYAML(node ast.Node) (err error)

UnmarshalYAML implements custom unmarshaling for Tags, allowing the field to be either a single string or a list of strings.

Jump to

Keyboard shortcuts

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