pull

command
v1.0.0-alpha.37 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 10 Imported by: 0

README

pull

Implementation example showing how to copy an agent artifact from a remote OCI registry to a local in-memory store using oras.Copy, then load and inspect the Agentfile config.

In practice, the destination can be any oras.Target — another registry, an OCI layout on disk, etc.

Usage

go run ./examples/pull/ <registry-ref>

# Plain HTTP registry (e.g. localhost)
go run ./examples/pull/ -plain-http <registry-ref>

Examples

# Pull from ghcr.io
go run ./examples/pull/ ghcr.io/openotters/agents/meteo:1.0.0

# Pull from a local registry
go run ./examples/pull/ -plain-http localhost:5000/meteo:latest

Documentation

Overview

Pull downloads an agent artifact from a registry using oras, then loads and dumps the Agentfile as JSON. For advanced usage (custom auth, retries, middleware), create your own oras.Target and use oras.Copy directly.

Usage:

go run ./examples/pull/ <registry-ref>
go run ./examples/pull/ -plain-http <registry-ref>

Example:

go run ./examples/pull/ ghcr.io/openotters/agents/meteo:1.0.0
go run ./examples/pull/ -plain-http localhost:5000/agents/meteo:1.0.0

Jump to

Keyboard shortcuts

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