Documentation
¶
Index ¶
Constants ¶
View Source
const ( IdField = "id" IdsField = "ids" VersionField = "version" NameField = "name" DescriptionField = "description" CreatedTimeField = "created_time" UpdatedTimeField = "updated_time" TypeField = "type" AttributesField = "attributes" ScopeIdField = "scope_id" ScopeField = "scope" AuthMethodIdField = "auth_method_id" AccountIdField = "account_id" UserIdField = "user_id" IsPrimaryField = "is_primary" AuthorizedActionsField = "authorized_actions" AuthorizedCollectionActionsField = "authorized_collection_actions" ExpirationTimeField = "expiration_time" ApproximateLastUsedTimeField = "approximate_last_used_time" MembersField = "members" MemberIdsField = "member_ids" HostCatalogIdField = "host_catalog_id" HostSetIdsField = "host_set_ids" HostSourceIdsField = "host_source_ids" HostIdsField = "host_ids" PrincipalIdsField = "principal_ids" PrincipalsField = "principals" GrantScopeIdField = "grant_scope_id" GrantsField = "grants" GrantStringsField = "grant_strings" PrimaryAuthMethodIdField = "primary_auth_method_id" TargetIdField = "target_id" HostIdField = "host_id" HostSetIdField = "host_set_id" HostSetsField = "host_sets" HostSourcesField = "host_sources" AuthTokenIdField = "auth_token_id" EndpointField = "endpoint" CertificateField = "certificate" TerminationReasonField = "termination_reason" StatusField = "status" StatesField = "states" SessionConnectionLimitField = "session_connection_limit" SessionMaxSecondsField = "session_max_seconds" WorkerFilterField = "worker_filter" EgressWorkerFilterField = "egress_worker_filter" IngressWorkerFilterField = "ingress_worker_filter" AccountIdsField = "account_ids" AccountsField = "accounts" LoginNameField = "login_name" FullNameField = "full_name" PrimaryAccountIdField = "primary_account_id" EmailField = "email" ManagedGroupIdsField = "managed_group_ids" FilterField = "filter" CredentialStoreIdField = "credential_store_id" ApplicationCredentialSourceIdsField = "application_credential_source_ids" ApplicationCredentialSourcesField = "application_credential_sources" BrokeredCredentialSourceIdsField = "brokered_credential_source_ids" BrokeredCredentialSourcesField = "brokered_credential_sources" PreferredEndpointsField = "preferred_endpoints" SyncIntervalSecondsField = "sync_interval_seconds" PluginIdField = "plugin_id" PluginField = "plugin" PluginNameField = "plugin_name" IpAddressesField = "ip_addresses" DnsNamesField = "dns_names" SecretsHmacField = "secrets_hmac" ExternalIdField = "external_id" ExternalNameField = "external_name" InjectedApplicationCredentialSourceIdsField = "injected_application_credential_source_ids" InjectedApplicationCredentialSourcesField = "injected_application_credential_sources" ConnectionsField = "connections" CredentialTypeField = "credential_type" CredentialMappingOverridesField = "credential_mapping_overrides" MetricNamespace = "boundary" LastStatusTimeField = "last_status_time" AddressField = "address" CanonicalAddressField = "canonical_address" TagsField = "tags" CanonicalTagsField = "canonical_tags" ConfigTagsField = "config_tags" ApiTagsField = "api_tags" ConfigurationField = "configuration" WorkerGeneratedAuthTokenField = "worker_generated_auth_token" WorkerProvidedConfigurationField = "worker_provided_configuration" ActiveConnectionCountField = "active_connection_count" ControllerGeneratedActivationToken = "controller_generated_activation_token" ReleaseVersionField = "release_version" KeyPurposeField = "purpose" KeyVersionsField = "key_versions" KeyVersionIdField = "key_version_id" CompletedCountField = "completed_count" TotalCountField = "total_count" DirectlyConnectedDownstreamWorkersField = "directly_connected_downstream_workers" AttributesAddressField = "attributes.address" SecretsField = "secrets" MimeTypeField = "mime_type" MimeTypesField = "mime_types" SessionIdField = "session_id" StorageBucketIdField = "storage_bucket_id" BytesUpField = "bytes_up" BytesDownField = "bytes_down" StartTimeField = "start_time" EndTimeField = "end_time" DurationField = "duration" StateField = "state" ErrorDetailsField = "error_details" ConnectionRecordingsField = "connection_recordings" CreateTimeValues = "create_time_values" DefaultPortField = "default_port" )
View Source
const ( TcpProxyV1 = "boundary-tcp-proxy-v1" ServiceTokenV1 = "s1" AnyAuthenticatedUserId = "u_auth" AnonymousUserId = "u_anon" RecoveryUserId = "u_recovery" )
View Source
const ( KmsPurposeRoot = "root" KmsPurposePreviousRoot = "previous-root" KmsPurposeWorkerAuth = "worker-auth" KmsPurposeWorkerAuthStorage = "worker-auth-storage" KmsPurposeRecovery = "recovery" KmsPurposeConfig = "config" KmsPurposeDownstreamWorkerAuth = "downstream-worker-auth" KmsPurposeBsr = "bsr" )
View Source
const ( // AuthTokenPrefix is the prefix for auth tokens AuthTokenPrefix = "at" // PasswordAuthMethodPrefix is the prefix for the password auth method PasswordAuthMethodPrefix = "ampw" // PasswordAccountPreviousPrefix is the previously-used account prefix PasswordAccountPreviousPrefix = "apw" // PasswordAccountPrefix is the new account prefix PasswordAccountPrefix = "acctpw" // OidcAuthMethodPrefix defines the prefix for OIDC AuthMethod public ids OidcAuthMethodPrefix = "amoidc" // OidcAccountPrefix defines the prefix for OIDC Account public ids OidcAccountPrefix = "acctoidc" // OidcManagedGroupPrefix defines the prefix for OIDC ManagedGroup public // ids OidcManagedGroupPrefix = "mgoidc" // LdapManagedGroupPrefix defines the prefix for ManagedGroup public ids // from the LDAP auth method. LdapManagedGroupPrefix = "mgldap" // AuthMethodPrefix defines the prefix for AuthMethod public ids. LdapAuthMethodPrefix = "amldap" // AccountPrefix defines the prefix for Account public ids. LdapAccountPrefix = "acctldap" // ProjectPrefix is the prefix for project scopes ProjectPrefix = "p" // OrgPrefix is the prefix for org scopes OrgPrefix = "o" // GlobalPrefix is the prefix for the global scope GlobalPrefix = "global" // UserPrefix is the prefix for users UserPrefix = "u" // GroupPrefix is the prefix for non-managed groups GroupPrefix = "g" // RolePrefix is the prefix for roles RolePrefix = "r" // StaticCredentialStorePrefix is the prefix for static credential stores StaticCredentialStorePrefix = "csst" // StaticPreviousCredentialStorePrefix is the previous prefix for static // credential stores StaticCredentialStorePreviousPrefix = "cs" // VaultCredentialStorePrefix is the prefix for Vault credential stores VaultCredentialStorePrefix = "csvlt" // VaultCredentialLibraryPrefix is the prefix for Vault credential libraries VaultCredentialLibraryPrefix = "clvlt" // VaultSshCertificateCredentialLibraryPrefix is the prefix for Vault SSH // certificate credential libraries VaultSshCertificateCredentialLibraryPrefix = "clvsclt" // UsernamePasswordCredentialPrefix is the prefix for username/password // creds UsernamePasswordCredentialPrefix = "credup" // UsernamePasswordCredentialPreviousPrefix is the previous prefix for // username/password creds UsernamePasswordCredentialPreviousPrefix = "cred" // SshPrivateKeyCredentialPrefix is the prefix for SSH private key creds SshPrivateKeyCredentialPrefix = "credspk" // JsonCredentialPrefix is the prefix for generic JSON creds JsonCredentialPrefix = "credjson" // StaticHostCatalogPrefix is the prefix for static host catalogs StaticHostCatalogPrefix = "hcst" // StaticHostSetPrefix is the prefix for static host sets StaticHostSetPrefix = "hsst" // StaticHostPrefix is the prefix for static hosts StaticHostPrefix = "hst" // PluginHostCatalogPrefix is the prefix for plugin host catalogs PluginHostCatalogPrefix = "hcplg" // PluginHostCatalogPreviousPrefix is the previous prefix for plugin host // catalogs PluginHostCatalogPreviousPrefix = "hc" // PluginHostSetPrefix is the prefix for plugin host sets PluginHostSetPrefix = "hsplg" // PluginHostSetPreviousPrefix is the previous prefix for plugin host sets PluginHostSetPreviousPrefix = "hs" // PluginHostPrefix is the prefix for plugin hosts PluginHostPrefix = "hplg" // PluginHostPreviousPrefix is the previous prefix for plugin hosts PluginHostPreviousPrefix = "h" // SessionPrefix is the prefix for sessions SessionPrefix = "s" // TcpTargetPrefix is the prefix for TCP targets TcpTargetPrefix = "ttcp" // SshTargetPrefix is the prefix for TCP targets SshTargetPrefix = "tssh" // WorkerPrefix is the prefix for workers WorkerPrefix = "w" // PluginStorageBucketPrefix is the prefix for plugin storage buckets PluginStorageBucketPrefix = "sb" // SessionRecordingPrefix is the prefix for session recordings SessionRecordingPrefix = "sr" // ConnectionRecordingPrefix is the prefix for connection recordings ConnectionRecordingPrefix = "cr" // ChannelRecordingPrefix is the prefix for channel recordings ChannelRecordingPrefix = "chr" )
View Source
const MissingPortErrStr = "missing port in address"
Variables ¶
View Source
var ( // DefaultMaxRequestDuration is the amount of time we'll wait for a request DefaultMaxRequestDuration = 90 * time.Second // DefaultMaxRequestSize is the maximum size of a request we allow by default DefaultMaxRequestSize = int64(1024 * 1024) // ContextMaxRequestSizeTypeKey is a value to keep linters from complaining // about clashing string identifiers ContextMaxRequestSizeTypeKey ContextMaxRequestSizeType // ContextOriginalRequestPathTypeKey is a value to keep linters from complaining // about clashing string identifiers ContextOriginalRequestPathTypeKey ContextOriginalRequestPathType // RecoveryTokenValidityPeriod is exported so we can modify it in tests if // we want RecoveryTokenValidityPeriod = 5 * time.Minute // WorkerAuthNonceValidityPeriod is exported so we can modify it in tests if // we want WorkerAuthNonceValidityPeriod = 2 * time.Minute )
Functions ¶
func ResourcePrefixesFromType ¶ added in v0.13.1
ResourcePrefixesFromType returns the known prefixes for a given type; if a type is not known the return value will be nil
func ResourceTypeFromPrefix ¶ added in v0.13.0
ResourceTypeFromPrefix takes in a resource ID (or a prefix) and returns the corresponding resource typ
Types ¶
type ContextMaxRequestSizeType ¶
type ContextMaxRequestSizeType struct{}
type ContextOriginalRequestPathType ¶
type ContextOriginalRequestPathType struct{}
Click to show internal directories.
Click to hide internal directories.