Versions in this module Expand all Collapse all v0 v0.1.1 Aug 18, 2026 v0.1.0 Aug 18, 2026 Changes in this version + const Artefact + const DefaultVersion + var ErrNoFetcher = errors.New("onnxruntime: a fetcher is required") + var ErrNoPlatformBuild = errors.New("onnxruntime: no build for this platform") + var ErrNotInArchive = errors.New("onnxruntime: library not found in the archive") + var ErrOversizeLibrary = errors.New("onnxruntime: library exceeds the size limit") + type Fetcher interface + Resolve func(ctx context.Context, ref artifacts.Ref, file string) (string, error) + type Option func(*Resolver) + func WithCacheDir(dir string) Option + func WithExecutableDir(dir string) Option + func WithPlatform(platform string) Option + func WithVersion(version string) Option + type Resolver struct + func New(fetcher Fetcher, opts ...Option) (*Resolver, error) + func (r *Resolver) Resolve(ctx context.Context, override string) (string, error)