cli

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const StdinPath = "-"

Variables

This section is empty.

Functions

func DetermineUseCogBaseImage added in v0.9.20

func DetermineUseCogBaseImage(cmd *cobra.Command) *bool

func NewBaseImageRootCommand added in v0.9.7

func NewBaseImageRootCommand() (*cobra.Command, error)

func NewRootCommand

func NewRootCommand() (*cobra.Command, error)

Types

type LayerStatusEntry added in v0.19.3

type LayerStatusEntry struct {
	Digest string `json:"digest"`
	Size   int64  `json:"size"`
	Status string `json:"status"`
}

LayerStatusEntry is one layer's status in the output.

type WeightStatusEntry added in v0.19.3

type WeightStatusEntry struct {
	Name           string              `json:"name"`
	Target         string              `json:"target"`
	Status         string              `json:"status"`
	Size           int64               `json:"size,omitempty"`
	SizeCompressed int64               `json:"sizeCompressed,omitempty"`
	LayerCount     int                 `json:"layerCount,omitempty"`
	FileCount      int                 `json:"fileCount,omitempty"`
	Digest         string              `json:"digest,omitempty"`
	Source         *WeightStatusSource `json:"source,omitempty"`
	Layers         []LayerStatusEntry  `json:"layers,omitempty"`
}

WeightStatusEntry is one weight's JSON representation.

type WeightStatusSource added in v0.19.3

type WeightStatusSource struct {
	URI         string `json:"uri,omitempty"`
	Fingerprint string `json:"fingerprint,omitempty"`
}

WeightStatusSource records the source metadata from the lockfile entry.

type WeightsStatusOutput added in v0.19.3

type WeightsStatusOutput struct {
	Weights []WeightStatusEntry `json:"weights"`
}

WeightsStatusOutput is the top-level structured output for cog weights status --json.

Jump to

Keyboard shortcuts

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