forked from open-component-model/open-component-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoc_test.go
More file actions
28 lines (28 loc) · 1.35 KB
/
Copy pathdoc_test.go
File metadata and controls
28 lines (28 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Package examples is a guided tour of the OCM Go bindings.
//
// It walks you through the core concepts of the Open Component Model, starting
// from the most basic building block (binary data) and progressively building
// up to complete workflows involving repositories, signing, and OCI registries.
//
// The tour is organized as numbered test files that should be read in order:
//
// 1. [01_blob_test.go] — Binary data: creating, reading, and copying blobs
// 2. [02_descriptor_test.go] — Component descriptors: the metadata model
// 3. [03_credentials_test.go] — Credential resolution by identity
// 4. [04_repository_test.go] — Storing and retrieving component versions
// 5. [05_signing_test.go] — Digests, RSA signing, and verification
// 6. [06_oci_test.go] — Full OCI registry round-trips (requires Docker)
// 7. [07_http_config_test.go] — HTTP client configuration: timeouts and per-host overrides
// 8. [08_transfer_test.go] — Transferring component versions between repositories
//
// Every example is a runnable test. Run them all with:
//
// task bindings/go/examples:test
//
// Or run a single step:
//
// cd bindings/go/examples && go test -run TestExample_InMemoryBlob -v
//
// All examples (except Step 6) are self-contained and use in-memory or
// temporary filesystem backends, so they run without external services.
package examples