Documentation
¶
Index ¶
- Constants
- func DetermineUseCogBaseImage(cmd *cobra.Command) *bool
- func NewBaseImageRootCommand() (*cobra.Command, error)
- func NewRootCommand() (*cobra.Command, error)
- type InspectIndex
- type InspectLayer
- type InspectManifest
- type InspectOutput
- type WeightInspectEntry
- type WeightLocalState
- type WeightRemoteLayer
- type WeightRemoteState
- type WeightsInspectOutput
Constants ¶
View Source
const StdinPath = "-"
Variables ¶
This section is empty.
Functions ¶
func DetermineUseCogBaseImage ¶ added in v0.9.20
func NewBaseImageRootCommand ¶ added in v0.9.7
func NewRootCommand ¶
Types ¶
type InspectIndex ¶
type InspectIndex struct {
Reference string `json:"reference"`
Digest string `json:"digest"`
MediaType string `json:"mediaType"`
Manifests []InspectManifest `json:"manifests"`
}
InspectIndex represents an OCI index in inspect output.
type InspectLayer ¶
type InspectLayer struct {
Digest string `json:"digest"`
Size int64 `json:"size"`
MediaType string `json:"mediaType"`
}
InspectLayer represents a layer in inspect output.
type InspectManifest ¶
type InspectManifest struct {
Type string `json:"type"` // "image" or "weights"
Name string `json:"name,omitempty"` // weight name from AnnotationWeightName
Digest string `json:"digest"`
MediaType string `json:"mediaType"`
Size int64 `json:"size"`
Platform string `json:"platform,omitempty"` // "linux/amd64"
Target string `json:"target,omitempty"` // weight mount path from AnnotationWeightDest
Annotations map[string]string `json:"annotations,omitempty"`
Layers []InspectLayer `json:"layers"`
}
InspectManifest represents a manifest entry in inspect output.
type InspectOutput ¶
type InspectOutput struct {
Reference string `json:"reference"`
Type string `json:"type"` // "image" or "index"
CogVersion string `json:"cogVersion"`
Index *InspectIndex `json:"index,omitempty"`
Image *InspectManifest `json:"image,omitempty"`
}
InspectOutput is the structured output for cog inspect --json.
type WeightInspectEntry ¶
type WeightInspectEntry struct {
Name string `json:"name"`
Status string `json:"status"` // synced, local-only, remote-only, digest-mismatch, missing-lockfile
Local *WeightLocalState `json:"local,omitempty"`
Remote *WeightRemoteState `json:"remote,omitempty"`
}
WeightInspectEntry represents one weight's comparison between local and remote state.
type WeightLocalState ¶
type WeightLocalState struct {
Digest string `json:"digest"`
Size int64 `json:"size"`
Target string `json:"target"`
FileExists bool `json:"fileExists"`
}
WeightLocalState represents the local state of a weight from cog.yaml + weights.lock.
type WeightRemoteLayer ¶
type WeightRemoteLayer struct {
Digest string `json:"digest"`
Size int64 `json:"size"`
MediaType string `json:"mediaType"`
}
WeightRemoteLayer represents a single layer in a remote weight manifest.
type WeightRemoteState ¶
type WeightRemoteState struct {
Ref string `json:"ref"`
Tag string `json:"tag"`
Digest string `json:"digest"`
Size int64 `json:"size"`
MediaType string `json:"mediaType"`
Layers []WeightRemoteLayer `json:"layers,omitempty"`
MatchedByContent bool `json:"matchedByContent,omitempty"`
}
WeightRemoteState represents the remote state of a weight from the registry.
type WeightsInspectOutput ¶
type WeightsInspectOutput struct {
Reference string `json:"reference"`
Weights []WeightInspectEntry `json:"weights"`
}
WeightsInspectOutput is the structured output for cog weights inspect --json.
Click to show internal directories.
Click to hide internal directories.