* Add generic read/update/delete commands This adds three generic commands that use the resource prefix to determine the subcommand to run and pass through args over to that subcommand. Since this occurs very early on and to avoid loading essentially every internal resource package, I moved subtype definitions to globals. * Update main.go Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> * Update changelog and remove another deprecated command --------- Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
30 lines
1.0 KiB
Go
30 lines
1.0 KiB
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package globals
|
|
|
|
// Subtype variables identify a boundary resource subtype.
|
|
type Subtype string
|
|
|
|
const (
|
|
UnknownSubtype Subtype = ""
|
|
PasswordSubtype Subtype = "password"
|
|
OidcSubtype Subtype = "oidc"
|
|
LdapSubtype Subtype = "ldap"
|
|
StaticSubtype Subtype = "static"
|
|
PluginSubtype Subtype = "plugin"
|
|
VaultSubtype Subtype = "vault"
|
|
VaultGenericLibrarySubtype Subtype = "vault-generic"
|
|
VaultSshCertificateLibrarySubtype Subtype = "vault-ssh-certificate"
|
|
UsernamePasswordSubtype Subtype = "username_password"
|
|
SshPrivateKeySubtype Subtype = "ssh_private_key"
|
|
JsonSubtype Subtype = "json"
|
|
TcpSubtype Subtype = "tcp"
|
|
SshSubtype Subtype = "ssh"
|
|
)
|
|
|
|
// String returns the string representation of a Subtype
|
|
func (t Subtype) String() string {
|
|
return string(t)
|
|
}
|