Skip to content

Commit e58fa3e

Browse files
authored
Merge branch 'main' into feature-policy-json
2 parents af8b483 + 0cbe218 commit e58fa3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2724
-934
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ on:
1717
push:
1818
branches:
1919
- main
20-
- release-*
2120
- v2
2221
pull_request:
2322
branches:
2423
- main
25-
- release-*
2624
- v2
2725

2826
jobs:

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ on:
1717
push:
1818
branches:
1919
- main
20-
- release-*
2120
- v2
2221
pull_request:
2322
branches:
2423
- main
25-
- release-*
2624
- v2
2725
schedule:
2826
- cron: '34 13 * * 3'

.github/workflows/license-checker.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ on:
1717
push:
1818
branches:
1919
- main
20-
- release-*
2120
- v2
2221
pull_request:
2322
branches:
2423
- main
25-
- release-*
2624
- v2
2725

2826
permissions:

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Derived from OWNERS.md
2-
* @sabre1041 @shizhMSFT @stevelasker @TerryHowe @Wwwsylvia
2+
* @sabre1041 @shizhMSFT @TerryHowe @Wwwsylvia

OWNERS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
Owners:
44
- Andrew Block (@sabre1041)
55
- Shiwei Zhang (@shizhMSFT)
6-
- Steve Lasker (@stevelasker)
76
- Sylvia Lei (@Wwwsylvia)
87
- Terry Howe (@TerryHowe)
98

109
Emeritus:
1110
- Avi Deitcher (@deitch)
1211
- Josh Dolitsky (@jdolitsky)
1312
- Sajay Antony (@sajayantony)
13+
- Steve Lasker (@stevelasker)

docs/tutorial/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func main() {
6868
repo.Client = &auth.Client{
6969
Client: retry.DefaultClient,
7070
Cache: auth.NewCache(),
71-
Credential: auth.StaticCredential(repo.Reference.Registry, auth.Credential{
71+
CredentialFunc: credentials.StaticCredentialFunc(repo.Reference.Registry, credentials.Credential{
7272
Username: "username",
7373
Password: "password",
7474
}),
@@ -287,7 +287,7 @@ func main() {
287287
repo.Client = &auth.Client{
288288
Client: retry.DefaultClient,
289289
Cache: auth.NewCache(),
290-
Credential: auth.StaticCredential(repo.Reference.Registry, auth.Credential{
290+
CredentialFunc: credentials.StaticCredentialFunc(repo.Reference.Registry, credentials.Credential{
291291
Username: "username",
292292
Password: "password",
293293
}),

example_copy_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import (
3737
"github.com/oras-project/oras-go/v3/internal/spec"
3838
"github.com/oras-project/oras-go/v3/registry/remote"
3939
"github.com/oras-project/oras-go/v3/registry/remote/auth"
40+
"github.com/oras-project/oras-go/v3/registry/remote/credentials"
4041
"github.com/oras-project/oras-go/v3/registry/remote/retry"
4142
)
4243

@@ -451,7 +452,7 @@ func Example_extendedCopyArtifactAndReferrersToRepository() {
451452
repo.Client = &auth.Client{
452453
Client: retry.DefaultClient,
453454
Cache: auth.NewCache(),
454-
Credential: auth.StaticCredential(registry, auth.Credential{
455+
CredentialFunc: credentials.StaticCredentialFunc(registry, credentials.Credential{
455456
Username: "username",
456457
Password: "password",
457458
}),

example_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func Example_pullFilesFromRemoteRepository() {
5050
repo.Client = &auth.Client{
5151
Client: retry.DefaultClient,
5252
Cache: auth.NewCache(),
53-
Credential: auth.StaticCredential(reg, auth.Credential{
53+
CredentialFunc: credentials.StaticCredentialFunc(reg, credentials.Credential{
5454
Username: "username",
5555
Password: "password",
5656
}),
@@ -85,7 +85,7 @@ func Example_pullImageFromRemoteRepository() {
8585
repo.Client = &auth.Client{
8686
Client: retry.DefaultClient,
8787
Cache: auth.NewCache(),
88-
Credential: auth.StaticCredential(reg, auth.Credential{
88+
CredentialFunc: credentials.StaticCredentialFunc(reg, credentials.Credential{
8989
Username: "username",
9090
Password: "password",
9191
}),
@@ -125,9 +125,9 @@ func Example_pullImageUsingDockerCredentials() {
125125
panic(err)
126126
}
127127
repo.Client = &auth.Client{
128-
Client: retry.DefaultClient,
129-
Cache: auth.NewCache(),
130-
Credential: credentials.Credential(credStore), // Use the credentials store
128+
Client: retry.DefaultClient,
129+
Cache: auth.NewCache(),
130+
CredentialFunc: remote.GetCredentialFunc(credStore), // Use the credentials store
131131
}
132132

133133
// 2. Copy from the remote repository to the OCI layout store
@@ -190,7 +190,7 @@ func Example_pushFilesToRemoteRepository() {
190190
repo.Client = &auth.Client{
191191
Client: retry.DefaultClient,
192192
Cache: auth.NewCache(),
193-
Credential: auth.StaticCredential(reg, auth.Credential{
193+
CredentialFunc: credentials.StaticCredentialFunc(reg, credentials.Credential{
194194
Username: "username",
195195
Password: "password",
196196
}),
@@ -218,7 +218,7 @@ func Example_attachBlobToRemoteRepository() {
218218
repo.Client = &auth.Client{
219219
Client: retry.DefaultClient,
220220
Cache: auth.NewCache(),
221-
Credential: auth.StaticCredential(registry, auth.Credential{
221+
CredentialFunc: credentials.StaticCredentialFunc(registry, credentials.Credential{
222222
Username: "username",
223223
Password: "password",
224224
}),

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ require (
77
github.com/opencontainers/image-spec v1.1.1
88
golang.org/x/sync v0.19.0
99
)
10+
11+
require github.com/BurntSushi/toml v1.6.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
github.com/BurntSushi/toml v1.6.0 h1:dRaEfpa2VI55EwlIW72hMRHdWouJeRF7TPYhI+AUQjk=
2+
github.com/BurntSushi/toml v1.6.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
13
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
24
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
35
github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040=

0 commit comments

Comments
 (0)