forked from sylabs/singularity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeyserver.go
85 lines (80 loc) · 4.3 KB
/
keyserver.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// 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 (
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// keyserver command
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
KeyserverUse string = `keyserver [subcommand options...]`
KeyserverShort string = `Manage singularity keyservers`
KeyserverLong string = `
The 'keyserver' command allows you to manage standalone keyservers that will
be used for retrieving cryptographic keys.`
KeyserverExample string = `
All group commands have their own help output:
$ singularity help keyserver add
$ singularity keyserver add`
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// keyserver add command
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
KeyserverAddUse string = `add [options] [remoteName] <keyserver_url>`
KeyserverAddShort string = `Add a keyserver (root user only)`
KeyserverAddLong string = `
The 'keyserver add' command lets the user specify an additional keyserver.
The --order specifies the order of the new keyserver relative to the
keyservers that have already been specified. Therefore, when specifying
'--order 1', the new keyserver will become the primary one. If no endpoint is
specified, the new keyserver will be associated with the default remote
endpoint (SylabsCloud).`
KeyserverAddExample string = `
$ singularity keyserver add https://keys.example.com
To add a keyserver to be used as the primary keyserver for the current
endpoint:
$ singularity keyserver add --order 1 https://keys.example.com`
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// keyserver remove command
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
KeyserverRemoveUse string = `remove [remoteName] <keyserver_url>`
KeyserverRemoveShort string = `Remove a keyserver (root user only)`
KeyserverRemoveLong string = `
The 'keyserver remove' command lets the user remove a previously specified
keyserver from a specific endpoint. If no endpoint is specified, the default
remote endpoint (SylabsCloud) will be assumed.`
KeyserverRemoveExample string = `
$ singularity keyserver remove https://keys.example.com`
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// keyserver login command
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
KeyserverLoginUse string = `login [login options...] <keyserver>`
KeyserverLoginShort string = `Login to a keyserver`
KeyserverLoginLong string = `
The 'keyserver login' command allows you to login to a specific keyserver.`
KeyserverLoginExample string = `
To login in to a keyserver:
$ singularity keyserver login --username foo https://mykeyserver.example.com`
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// keyserver logout command
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
KeyserverLogoutUse string = `logout <keyserver>`
KeyserverLogoutShort string = `Logout from a keyserver`
KeyserverLogoutLong string = `
The 'keyserver logout' command allows you to log out from a keyserver.`
KeyserverLogoutExample string = `
To log out from a keyserver:
$ singularity keyserver logout https://mykeyserver.example.com`
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// keyserver list command
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
KeyserverListUse string = `list [remoteName]`
KeyserverListShort string = `List all keyservers that are configured`
KeyserverListLong string = `
The 'keyserver list' command lists the keyservers configured for use with
each remote endpoint. If the optional remoteName argument is provided, the
command will only list keyservers for the remote endpoint matching that name.`
KeyserverListExample string = `
$ singularity keyserver list`
)