You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Create a private container registry", createRegDesc, Writer)
@@ -136,6 +132,10 @@ By default this command generates read-only credentials. Use the ` + "`" + `--re
136
132
"The length of time the registry credentials are valid for, in seconds. By default, the credentials do not expire.")
137
133
cmdRunDockerConfig.Example=`The following example generates a Docker configuration for a registry named `+"`"+`example-registry`+"`"+` and uses the `+"`"+`--expiry-seconds`+"`"+` to set the credentials to expire after one day: doctl registry docker-config example-registry --expiry-seconds=86400`
138
134
135
+
cmd.AddCommand(Repository())
136
+
cmd.AddCommand(GarbageCollection())
137
+
cmd.AddCommand(RegistryOptions())
138
+
139
139
returncmd
140
140
}
141
141
@@ -150,6 +150,8 @@ func Repository() *Command {
150
150
},
151
151
}
152
152
153
+
overrideNS:="registry.repository"
154
+
153
155
listRepositoriesDesc:=`Retrieves information about repositories in a registry, including:
cmdListRepositories.Example=`The following example lists repositories in a registry named `+"`"+`example-registry`+"`"+` and uses the `+"`"+`--format`+"`"+` flag to return only the name and update time of each repository: doctl registry repository list --format Name,UpdatedAt`
169
172
@@ -180,6 +183,7 @@ func Repository() *Command {
180
183
"List repositories for a container registry", listRepositoriesV2Desc,
cmdListRepositoriesV2.Example=`The following example lists repositories in a registry named `+"`"+`example-registry`+"`"+` and uses the `+"`"+`--format`+"`"+` flag to return only the name and update time of each repository: doctl registry repository list-v2 --format Name,UpdatedAt`
185
189
@@ -195,6 +199,7 @@ func Repository() *Command {
195
199
"List tags for a repository in a container registry", listRepositoryTagsDesc,
cmdListRepositoryTags.Example=`The following example lists tags in a repository named `+"`"+`example-repository`+"`"+` in a registry named `+"`"+`example-registry`+"`"+`. The command also uses the `+"`"+`--format`+"`"+` flag to return only the tag name and manifest digest for each tag: doctl registry repository list-tags example-repository --format Tag,ManifestDigest`
200
205
@@ -208,6 +213,7 @@ func Repository() *Command {
208
213
Writer,
209
214
aliasOpt("dt"),
210
215
)
216
+
cmdRunRepositoryDeleteTag.overrideNS=overrideNS
211
217
addRegistryFlag(cmdRunRepositoryDeleteTag)
212
218
AddBoolFlag(cmdRunRepositoryDeleteTag, doctl.ArgForce, doctl.ArgShortForce, false, "Delete tag without confirmation prompt")
213
219
cmdRunRepositoryDeleteTag.Example=`The following example deletes a tag named `+"`"+`web`+"`"+` from a repository named `+"`"+`example-repository`+"`"+` in a registry named `+"`"+`example-registry`+"`"+`: doctl registry repository delete-tag example-repository web`
@@ -226,6 +232,7 @@ func Repository() *Command {
226
232
"List manifests for a repository in a container registry", listRepositoryManifests,
cmdListRepositoryManifests.Example=`The following example lists manifests in a repository named `+"`"+`example-repository`+"`"+`. The command also uses the `+"`"+`--format`+"`"+` flag to return only the digest and update time for each manifest: doctl registry repository list-manifests example-repository --format Digest,UpdatedAt`
AddBoolFlag(cmdRunRepositoryDeleteManifest, doctl.ArgForce, doctl.ArgShortForce, false, "Deletes manifest without confirmation prompt")
244
252
cmdRunRepositoryDeleteManifest.Example=`The following example deletes a manifest with digest `+"`"+`sha256:1234567890abcdef`+"`"+` from a repository named `+"`"+`example-repository`+"`"+` in a registry named `+"`"+`example-registry`+"`"+`: doctl registry repository delete-manifest example-repository sha256:a67c20e45178d90cbe686575719bd81f279b06842dc77521690e292c1eea685`
runStartGarbageCollectionDesc:="Starts a garbage collection on a container registry. You can only have one active garbage collection at a time for a given registry."
cmdGetGarbageCollection.Example=`The following example retrieves the currently-active garbage collection for a registry: doctl registry garbage-collection get-active
305
317
306
318
The following example retrieves the currently-active garbage collection for a registry named `+"`"+`example-registry`+"`"+`: doctl registry garbage-collection get-active example-registry`
@@ -316,6 +328,7 @@ The following example retrieves the currently-active garbage collection for a re
316
328
aliasOpt("ls", "l"),
317
329
displayerType(&displayers.GarbageCollection{}),
318
330
)
331
+
cmdListGarbageCollections.overrideNS=overrideNS
319
332
cmdListGarbageCollections.Example=`The following example retrieves a list of past garbage collections for a registry: doctl registry garbage-collection list
320
333
321
334
The following example retrieves a list of past garbage collections for a registry named `+"`"+`example-registry`+"`"+`: doctl registry garbage-collection list example-registry`
@@ -330,6 +343,7 @@ The following example retrieves a list of past garbage collections for a registr
330
343
Writer,
331
344
aliasOpt("c"),
332
345
)
346
+
cmdCancelGarbageCollection.overrideNS=overrideNS
333
347
cmdCancelGarbageCollection.Example=`The following example cancels the garbage collection with the uuid`+"`"+`gc-uuid`+"`"+`for a registry: doctl registry garbage-collection cancel gc-uuid
334
348
335
349
The following example cancels the garbage collection with the uuid `+"`"+`gc-uuid`+"`"+` for a registry named `+"`"+`example-registry`+"`"+`: doctl registry garbage-collection cancel example-registry gc-uuid`
cmdListRepositories.Example=`The following example lists repositories in a registry named `+"`"+`example-registry`+"`"+` and uses the `+"`"+`--format`+"`"+` flag to return only the name and update time of each repository: doctl registries repository list example-registry --format Name,UpdatedAt`
1514
1535
1515
1536
listRepositoriesV2Desc:=`Retrieves information about repositories in a registry, including:
cmdListRepositoriesV2.Example=`The following example lists repositories in a registry named `+"`"+`example-registry`+"`"+` and uses the `+"`"+`--format`+"`"+` flag to return only the name and update time of each repository: doctl registries repository list-v2 example-registry --format Name,UpdatedAt`
1529
1551
1530
1552
listRepositoryTagsDesc:=`Retrieves information about tags in a repository, including:
cmdListRepositoryTags.Example=`The following example lists tags in a repository named `+"`"+`example-repository`+"`"+` in a registry named `+"`"+`example-registry`+"`"+`. The command also uses the `+"`"+`--format`+"`"+` flag to return only the tag name and manifest digest for each tag: doctl registries repository list-tags example-registry example-repository --format Tag,ManifestDigest`
1543
1566
1544
1567
deleteTagDesc:="Permanently deletes one or more repository tags."
AddBoolFlag(cmdRunRepositoryDeleteTag, doctl.ArgForce, doctl.ArgShortForce, false, "Delete tag without confirmation prompt")
1555
1579
cmdRunRepositoryDeleteTag.Example=`The following example deletes a tag named `+"`"+`web`+"`"+` from a repository named `+"`"+`example-repository`+"`"+` in a registry named `+"`"+`example-registry`+"`"+`: doctl registries repository delete-tag example-registry example-repository web`
cmdListRepositoryManifests.Example=`The following example lists manifests in a repository named `+"`"+`example-repository`+"`"+` in a registry named `+"`"+`example-registry`+"`"+`. The command also uses the `+"`"+`--format`+"`"+` flag to return only the digest and update time for each manifest: doctl registries repository list-manifests example-registry example-repository --format Digest,UpdatedAt`
1572
1597
1573
1598
deleteManifestDesc:="Permanently deletes one or more repository manifests by digest."
AddBoolFlag(cmdRunRepositoryDeleteManifest, doctl.ArgForce, doctl.ArgShortForce, false, "Deletes manifest without confirmation prompt")
1584
1610
cmdRunRepositoryDeleteManifest.Example=`The following example deletes a manifest with digest `+"`"+`sha256:1234567890abcdef`+"`"+` from a repository named `+"`"+`example-repository`+"`"+` in a registry named `+"`"+`example-registry`+"`"+`: doctl registries repository delete-manifest example-registry example-repository sha256:a67c20e45178d90cbe686575719bd81f279b06842dc77521690e292c1eea685`
runStartGarbageCollectionDesc:="Starts a garbage collection on a container registry. You can only have one active garbage collection at a time for a given registry."
cmdGetGarbageCollection.Example=`The following example retrieves the currently-active garbage collection for a registry named `+"`"+`example-registry`+"`"+`: doctl registries garbage-collection get-active example-registry`
1640
1670
1641
1671
runListGarbageCollectionsDesc:="Retrieves a list of past garbage collections for a registry. Information about each garbage collection includes:"+gcInfoIncluded
cmdListGarbageCollections.Example=`The following example retrieves a list of past garbage collections for a registry named `+"`"+`example-registry`+"`"+`: doctl registries garbage-collection list example-registry`
1653
1684
1654
1685
runCancelGarbageCollectionDesc:="Cancels the currently-active garbage collection for a container registry."
cmdCancelGarbageCollection.Example=`The following example cancels the garbage collection with the uuid `+"`"+`gc-uuid`+"`"+` for a registry named `+"`"+`example-registry`+"`"+`: doctl registries garbage-collection cancel example-registry gc-uuid`
0 commit comments