Registry / networking / oras-go-v2

oras-go-v2

JSON →
library2.6.1gogounverified

Package oras provides a Go library for interacting with OCI-compliant artifact registries, enabling push, pull, and copy operations.

go get oras.land/oras-go/v2
INSTALL
IMPORT
SIG · ORAS-GO-V2
O
oras-go-v2
networkinggov2.6.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

oras
oras.land/oras-go/v2

Pulls an artifact from a remote OCI registry.

package main import ( "context" "fmt" "oras.land/oras-go/v2" "oras.land/oras-go/v2/registry/remote" ) func main() { ctx := context.Background() repo, err := remote.NewRepository("registry.example.com/repo") if err != nil { panic(err) } descriptor, err := oras.Pull(ctx, repo, "latest", oras.DefaultPullOptions) if err != nil { panic(err) } fmt.Println(descriptor.Digest) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.6.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
oras-go-v2 — go get oras-go-v2 · libregistry