modelref

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConflictingSourceSuffix = errors.New("use either :local or :cloud, not both")
	ErrModelRequired           = errors.New("model is required")
)

Functions

func HasExplicitCloudSource

func HasExplicitCloudSource(raw string) bool

func HasExplicitLocalSource

func HasExplicitLocalSource(raw string) bool

func NormalizePullName

func NormalizePullName(raw string) (string, bool, error)

func StripCloudSourceTag

func StripCloudSourceTag(raw string) (string, bool)

Types

type ModelSource

type ModelSource uint8
const (
	ModelSourceUnspecified ModelSource = iota
	ModelSourceLocal
	ModelSourceCloud
)

type ParsedRef

type ParsedRef struct {
	Original string
	Base     string
	Source   ModelSource
}

func ParseRef

func ParseRef(raw string) (ParsedRef, error)

Jump to

Keyboard shortcuts

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