filtered

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package filtered handles components that are 'raw' lines of text that need to become a version

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

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

Base are wrappers for filtering components

func NewBase

func NewBase(upstream Stringable, d *core.Filtered, i fetch.Filterable) (Base, error)

NewBase creates a new baseline for filtering

func (Base) Get

func (b Base) Get(r fetch.Retriever, ctx fetch.Context) (*core.Resource, error)

Get handles common filtered commands that have return lists of semver versions

type RawString added in v0.6.1

type RawString string

RawString is a string that is not templated and just...a string

func (RawString) CanTemplate added in v0.6.1

func (r RawString) CanTemplate() bool

CanTemplate indicates if the type can template (this one cannot)

func (RawString) String added in v0.6.1

func (r RawString) String() string

String returns the underlying string

type Stringable added in v0.6.1

type Stringable interface {
	String() string
	CanTemplate() bool
}

Stringable allows for filtering input strings via templating

Jump to

Keyboard shortcuts

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