forked from sylabs/singularity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregistry.go
65 lines (60 loc) · 3.08 KB
/
registry.go
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Copyright (c) 2019-2023, Sylabs Inc. All rights reserved.
// Copyright (c) 2020, Control Command Inc. All rights reserved.
// This software is licensed under a 3-clause BSD license. Please consult the
// LICENSE.md file distributed with the sources of this project regarding your
// rights to use or distribute this software.
package docs
// Global content for help and man pages
const (
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// registry command
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RegistryUse string = `registry [subcommand options...]`
RegistryShort string = `Manage authentication to OCI/Docker registries`
RegistryLong string = `
The 'registry' command allows you to manage authentication to standalone OCI/Docker
registries, such as 'docker://'' or 'oras://'.`
RegistryExample string = `
All group commands have their own help output:
$ singularity help registry login
$ singularity registry login`
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// registry login command
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RegistryLoginUse string = `login [login options...] <registry_uri>`
RegistryLoginShort string = `Login to an OCI/Docker registry`
RegistryLoginLong string = `
The 'registry login' command allows you to login to a specific OCI/Docker
registry.`
RegistryLoginExample string = `
To login in to a docker/OCI registry:
$ singularity registry login --username foo docker://docker.io
$ singularity registry login --username foo oras://myregistry.example.com
Note that many cloud OCI registries use token-based authentication. The token
should be specified as the password for login. A username is still required.
E.g. when using a standard Azure identity and token to login to an ACR
registry, the username '00000000-0000-0000-0000-000000000000' is required.
Consult your provider's documentation for details concerning their specific
login requirements.`
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// registry logout command
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RegistryLogoutUse string = `logout <registry_uri>`
RegistryLogoutShort string = `Logout from an OCI/Docker registry`
RegistryLogoutLong string = `
The 'registry logout' command allows you to log out from an OCI/Docker
registry.`
RegistryLogoutExample string = `
To log out from an OCI/Docker registry
$ singularity registry logout docker://docker.io`
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// registry list command
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RegistryListUse string = `list`
RegistryListShort string = `List all OCI credentials that are configured`
RegistryListLong string = `
The 'registry list' command lists all credentials for OCI/Docker registries
that are configured for use.`
RegistryListExample string = `
$ singularity registry list`
)