| 1 |
# ORAS Go library |
| 2 |
|
| 3 |
[](https://github.com/oras-project/oras-go/actions/workflows/build.yml?query=workflow%3Abuild+event%3Apush+branch%3Amain) |
| 4 |
[](https://codecov.io/gh/oras-project/oras-go) |
| 5 |
[](https://goreportcard.com/report/oras.land/oras-go/v2) |
| 6 |
[](https://pkg.go.dev/oras.land/oras-go/v2) |
| 7 |
|
| 8 |
<p align="left"> |
| 9 |
<a href="https://oras.land/"><img src="https://oras.land/img/oras.svg" alt="ORAS logo" width="100px"></a> |
| 10 |
</p> |
| 11 |
|
| 12 |
`oras-go` is a Go library for managing OCI artifacts, compliant with the [OCI Image Format Specification](https://github.com/opencontainers/image-spec) and the [OCI Distribution Specification](https://github.com/opencontainers/distribution-spec). It provides unified APIs for pushing, pulling, and managing artifacts across OCI-compliant registries, local file systems, and in-memory stores. |
| 13 |
|
| 14 |
> [!Note] |
| 15 |
> The `main` branch follows [Go's Security Policy](https://github.com/golang/go/security/policy) and supports the two latest versions of Go (currently `1.24` and `1.25`). |
| 16 |
|
| 17 |
## Getting Started |
| 18 |
|
| 19 |
### Concepts |
| 20 |
|
| 21 |
Gain insights into the fundamental concepts: |
| 22 |
|
| 23 |
- [Modeling Artifacts](docs/Modeling-Artifacts.md) |
| 24 |
- [Targets and Content Stores](docs/Targets.md) |
| 25 |
|
| 26 |
### Quickstart |
| 27 |
|
| 28 |
Follow the step-by-step tutorial to use `oras-go` v2: |
| 29 |
|
| 30 |
- [Quickstart: Managing OCI Artifacts with `oras-go` v2](docs/tutorial/quickstart.md) |
| 31 |
|
| 32 |
### Examples |
| 33 |
|
| 34 |
Check out sample code for common use cases: |
| 35 |
|
| 36 |
- [Artifact copying](https://pkg.go.dev/oras.land/oras-go/v2#pkg-examples) |
| 37 |
- [Registry operations](https://pkg.go.dev/oras.land/oras-go/v2/registry#pkg-examples) |
| 38 |
- [Repository operations](https://pkg.go.dev/oras.land/oras-go/v2/registry/remote#pkg-examples) |
| 39 |
- [Authentication](https://pkg.go.dev/oras.land/oras-go/v2/registry/remote/auth#pkg-examples) |
| 40 |
- [Credentials management](https://pkg.go.dev/oras.land/oras-go/v2/registry/remote/credentials#pkg-examples) |
| 41 |
|
| 42 |
Find more API examples at [pkg.go.dev](https://pkg.go.dev/oras.land/oras-go/v2). |
| 43 |
|
| 44 |
|
| 45 |
## Versioning |
| 46 |
|
| 47 |
This project follows [Semantic Versioning](https://semver.org/) (`MAJOR`.`MINOR`.`PATCH`), with `MAJOR` for breaking changes, `MINOR` for backward-compatible features, and `PATCH` for backward-compatible fixes. |
| 48 |
|
| 49 |
## Previous Major Versions |
| 50 |
|
| 51 |
### v1 (maintenance) |
| 52 |
|
| 53 |
[](https://github.com/oras-project/oras-go/actions/workflows/build.yml?query=workflow%3Abuild+event%3Apush+branch%3Av1) |
| 54 |
[](https://goreportcard.com/report/oras.land/oras-go) |
| 55 |
[](https://pkg.go.dev/oras.land/oras-go) |
| 56 |
|
| 57 |
The [`v1`](https://github.com/oras-project/oras-go/tree/v1) branch is maintained for dependency updates and security fixes only. All feature development happens in the [`main`](https://github.com/oras-project/oras-go/tree/main) branch. |
| 58 |
|
| 59 |
To migrate from `v1` to `v2`, see [MIGRATION_GUIDE.md](MIGRATION_GUIDE.md). |
| 60 |
|
| 61 |
## Community |
| 62 |
|
| 63 |
- Code of Conduct: [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) |
| 64 |
- Security Policy: [SECURITY.md](SECURITY.md) |
| 65 |
- Reviewing Guide: [Reviewing Guide](https://github.com/oras-project/community/blob/main/REVIEWING.md) |
| 66 |
- Slack: [`#oras`](https://cloud-native.slack.com/archives/CJ1KHJM5Z) channel on CNCF Slack |