artifacts

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package artifacts derives safe terminal artifact metadata and preview posture.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Previewable

func Previewable(ref types.ArtifactRef) bool

Previewable reports terminal-safe textual/image metadata candidates. Actual bytes remain behind artifacts.get_ref and are never read by this package.

Types

type Preview

type Preview struct {
	Ref         types.ArtifactRef
	URL         string
	Unavailable string
}

Preview is safe metadata or a time-bounded external reference, never bytes.

type State

type State struct {
	Surface      surface.State
	Rows         []types.ArtifactRow
	TotalMatched int
	Selected     *Preview
	SelectedID   string
	Filter       string
	Page         int
	PageSize     int
}

State is one session's metadata-only artifact catalog.

func Derive

func Derive(response types.ArtifactsListResponse) State

Derive copies a canonical list response.

func (State) Visible

func (s State) Visible() []types.ArtifactRow

Visible returns metadata rows matching the local bounded filter.

Jump to

Keyboard shortcuts

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