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
Copy file name to clipboardExpand all lines: sdk/schema/executable.go
+75-4Lines changed: 75 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -21,22 +21,45 @@ type Executable struct {
21
21
// (Optional) A URL to the documentation about this executable.
22
22
DocsURL*url.URL
23
23
24
-
// (Optional) Whether the exectuable needs authentication for certain args.
24
+
// (Optional) Whether the executable needs authentication for certain args.
25
25
NeedsAuth sdk.NeedsAuthentication
26
26
}
27
27
28
28
typeCredentialUsagestruct {
29
-
// The name of the credential to use in the executable.
29
+
// (Optional) The name of the credential to use in the executable. Mutually exclusive with `SelectFrom`.
30
30
Name sdk.CredentialName
31
31
32
32
// (Optional) The plugin name that contains the credential. Defaults to the current package. This can be used to
33
-
// include credentials from other plugins.
33
+
// include credentials from other plugins. Mutually exclusive with `SelectFrom`.
34
34
Pluginstring
35
35
36
36
// (Optional) The provisioner to use to provision this credential to the executable. Overrides the DefaultProvisioner
37
37
// set in the credential schema, so should only be used if this executable requires a custom configuration, that deviates
38
-
// from the way the credential is usually provisioned.
38
+
// from the way the credential is usually provisioned. Mutually exclusive with `SelectFrom`.
39
39
Provisioner sdk.Provisioner
40
+
41
+
// (Optional) What this credential will be used for by the executable.
42
+
Descriptionstring
43
+
44
+
// (Optional) Instead of requiring a specific credential, have the user select from a list of compatible credentials.
45
+
// Mutually exclusive with: `Name` and `Plugin`.
46
+
SelectFrom*CredentialSelection
47
+
48
+
// (Optional) Whether the exectuable needs authentication for this credential. Works side by side with the executable's
49
+
// `NeedsAuth`, which can still be used for more generic authentications opt-outs, such as the help flag.
50
+
NeedsAuth sdk.NeedsAuthentication
51
+
52
+
// Whether this credential is needed for the executable to run. If set to true, the executable cannot run without provisioning this credential.
53
+
Optionalbool
54
+
}
55
+
56
+
typeCredentialSelectionstruct {
57
+
// ID helps identify credentials chosen in this selection. This must be unique in relation to other selections specified in usages within its executable.
58
+
IDstring
59
+
// IncludeAllCredentials specifies whether this selection should contain all credentials defined in all plugins.
60
+
IncludeAllCredentialsbool
61
+
// AllowMultiple specifies whether multiple credentials can be selected to be part of this credential use.
0 commit comments