Documentation
¶
Overview ¶
Package constants defines shared names, keys, and labels used by the CLI.
Index ¶
Constants ¶
View Source
const ( APICommandName = "api" ApplicationCommandName = "application" ApplicationFlag = "application" ApplicationShortFlag = "a" ApplicationType = "application" ApplicationsCommandName = "applications" ApplicationsType = "applications" Auth0AdminAPIEndpoint = "/auth0Admin" Auth0AdminEndpointRoot = "/" AuthLegacyWellKnownPath = "/auth/realms/wb_realm/.well-known/openid-configuration" AuthModeClientCredentials = "client-credentials" AuthModeDevice = "device" AuthModeFlag = "auth-mode" AuthModePKCE = "pkce" AuthModeShortFlag = "m" AuthWellKnownPath = "/auth0Admin/internal/.well-known/openid-configuration" AuthenticationCompleteHTML = "<html><body>Authentication complete. You can close this tab.</body></html>" // nolint:lll AuthorizationHeaderKey = "Authorization" BuildSettingGOARCHKey = "GOARCH" BuildSettingGOOSKey = "GOOS" BuildSettingVCSRevisionKey = "vcs.revision" CancelCommandName = "cancel" ClientIDEnvVar = "WBCLIENTID" ClientIDFlag = "client-id" ClientSecretEnvVar = "WBCLIENTSECRET" ClientSecretFlag = "client-secret" CommandFlag = "command" CommandShortFlag = "c" ConfigFileDirPerm = 0o700 ConfigFileEnvVar = "WBCONFIG" ConfigFilePerm = 0o600 ConfigFileTypeDefault = "json" ConfigFileTypeYAML = "yaml" ConfigFileTypeYML = "yml" ContentTypeHeaderKey = "Content-Type" ContextFlag = "context" CookieHeaderKey = "cookie" CreateCommandName = "create" DataFlag = "data" DataShortFlag = "d" DataplaneCommandName = "dataplane" DataplaneFlag = "dataplane" DataplaneType = "dataplane" DataplanesCommandName = "dataplanes" DataplanesType = "dataplanes" DefaultConfigDirName = ".wbctl" DefaultConfigFileName = DefaultConfigDirName + "/config.json" DefaultKey = "default" DefaultProfileName = "Default" DefaultTokenFileName = DefaultConfigDirName + "/token.json" // nolint:gosec DefaultTokenTmpFileName = "token.json.*" // nolint:gosec DeleteCommandName = "delete" DescribeCommandName = "describe" DescribeLabelMetadata = "Metadata" DescribeLabelProperties = "Properties" DescribeLabelRoles = "Roles" DescriptionFlag = "description" DesiredStateFlag = "desired-state" DesiredStateRunning = "RUNNING" DesiredStateStopped = "STOPPED" DryRunFlag = "dry-run" DryRunShortFlag = "d" EditCommandName = "edit" EndpointFlag = "endpoint" EndpointShortFlag = "e" EnvironmentFlag = "environment" EventCommandName = "event" EventType = "event" EventsCommandName = "events" EventsType = "events" FilenameFlag = "filename" FilenameShortFlag = "f" FormContentType = "application/x-www-form-urlencoded" GetCommandName = "get" HomeDirFlag = "home-dir" HomeDirPropertyKey = "HOME_DIRECTORY" I18nArgKeyApplications = "applications" I18nArgKeyAuthMode = "authMode" I18nArgKeyChild = "child" I18nArgKeyCode = "code" I18nArgKeyCommandName = "commandName" I18nArgKeyDefault = "default" I18nArgKeyDescription = "description" I18nArgKeyError = "error" I18nArgKeyFlagName = "flagName" I18nArgKeyFlagNameOne = "flagNameOne" I18nArgKeyFlagNameTwo = "flagNameTwo" I18nArgKeyID = "id" I18nArgKeyName = "name" I18nArgKeyNodepools = "nodepools" I18nArgKeyParent = "parent" I18nArgKeyPath = "path" I18nArgKeyServices = "services" I18nArgKeyType = "type" I18nArgKeyTypes = "types" I18nArgKeyURL = "url" I18nArgKindKey = "kind" I18nArgTypeKey = "type" I18nArgTypeSortKeysKey = "sortkeys" IgnoreTokenCacheFlag = "ignore-token-cache" ImageBuildCommandName = "image-build" ImageBuildType = "image-build" ImageBuildsCommandName = "image-builds" ImageBuildsType = "image-builds" ImageCommandName = "image" ImageFlag = "image" ImageShortFlag = "i" ImageType = "image" ImagesCommandName = "images" ImagesType = "images" IngressHostFlag = "ingress-host" InitCommandName = "init" InitializerCommandName = "initializer" InitializerFlag = "initializer" InitializerType = "initializer" InitializersCommandName = "initializers" InitializersType = "initializers" JSONDefaultIndent = " " JSONOutputValue = "json" JobCommandName = "job" JobIDFlag = "job-id" JobSubmissionCommandName = "job-submission" JobSubmissionType = "job-submission" JobSubmissionsCommandName = "job-submissions" JobSubmissionsType = "job-submissions" JobType = "job" JobsCommandName = "jobs" JobsType = "jobs" K8sVolumeSnapshotAPIGroup = "snapshot.storage.k8s.io" K8sVolumeSnapshotKind = "VolumeSnapshot" LabelFlag = "label" LabelShortFlag = "l" ListCommandName = "list" LogCommandName = "logs" LoginCommandName = "login" LogoutCommandName = "logout" MethodFlag = "method" NameFlag = "name" NameShortFlag = "n" NoListenFlag = "no-listen" NodepoolCommandName = "nodepool" NodepoolFlag = "nodepool" NodepoolType = "nodepool" NodepoolsCommandName = "nodepools" NodepoolsType = "nodepools" OAuthAudience = "https://workbench.sas.com/postgrest" OAuthAuthCodeGrantType = "authorization_code" OAuthClientCredentialsGrantType = "client_credentials" OAuthDeviceGrantType = "urn:ietf:params:oauth:grant-type:device_code" OAuthRefreshGrantType = "refresh_token" OAuthScope = "openid profile offline_access" OrganizationFlag = "organization" OutputFlag = "output" OutputShortFlag = "o" PKCECallbackEndpoint = "/" PKCECallbackListenHost = "localhost" PKCECallbackListenProtocol = "tcp" PKCECallbackResponseContentType = "text/html" PKCECallbackURL = "http://" + PKCECallbackListenHost + ":20000" + PKCECallbackEndpoint PKCEChallengeMethod = "S256" PKCEResponseType = "code" PersistentVolumeClaim = "PersistentVolumeClaim" PingCommandName = "ping" PingType = "ping" PingsCommandName = "pings" PingsType = "pings" PostgrestAPIEndpoint = "/postgrest" PostgrestCSRFTokenHeaderKey = "Postgrest-Csrf-Token" // nolint:gosec PostgrestCSRFTokenKey = "postgrest-csrf-token" // nolint:gosec ProfileAliasName = "prof" ProfileCommandName = "profile" ProfileFlag = "profile" ProfileShortFlag = "p" QueryFlag = "query" QueryParameterAudience = "audience" QueryParameterClientID = "client_id" QueryParameterClientSecret = "client_secret" QueryParameterCode = "code" QueryParameterCodeChallenge = "code_challenge" QueryParameterCodeChallengeMethod = "code_challenge_method" QueryParameterCodeVerifier = "code_verifier" QueryParameterDeviceCode = "device_code" QueryParameterError = "error" QueryParameterErrorDescription = "error_description" QueryParameterGrantType = "grant_type" QueryParameterIngressHost = "ingressHost" QueryParameterOrganization = "organization" QueryParameterPassword = "password" QueryParameterRedirectURI = "redirect_uri" QueryParameterRefreshToken = "refresh_token" QueryParameterResponseType = "response_type" QueryParameterScope = "scope" QueryParameterState = "state" QueryParameterUsername = "username" QueryShortFlag = "q" RPCBodyKeyID = "id" RPCBodyKeyIDs = "ids" RPCBodyKeyName = "name" RPCBodyKeyParam = "param" RPCBodyKeyUserID = "user_id" RPCBodyKeyValue = "value" RPCBodyKeyWorkbench = "workbench" RPCBodyKeyWorkspace = "workspace" RebuildCommandName = "rebuild" SASAppName = "wbctl" SASAppUsage = "SAS Workbench Control" ScheduleFlag = "schedule" ServiceCommandName = "service" ServiceFlag = "service" ServiceShortFlag = "s" ServiceType = "service" ServicesCommandName = "services" ServicesType = "services" SetCookieHeaderKey = "Set-Cookie" SetFlag = "set" SettingCommandName = "setting" SettingsCommandName = "settings" ShowCommandName = "show" SizeFlag = "size" SnapshotCommandName = "snapshot" SnapshotFlag = "snapshot" SnapshotType = "snapshot" SnapshotsCommandName = "snapshots" SnapshotsType = "snapshots" SortFlag = "sort" SortKeyAge = "age" SortKeyCreatedAt = "created_at" SortKeyCreationTimeStamp = "creationTimeStamp" SortKeyCurrentState = "current_state" SortKeyDefault = "default" SortKeyDisplayName = "display_name" SortKeyHomeDir = "home_dir" SortKeyImage = "image" SortKeyImageBuildID = "image_build_id" SortKeyImageName = "image_name" SortKeyImageRegistry = "image_registry" SortKeyImageTag = "image_tag" SortKeyLatestImageBuildID = "latest_image_build_id" SortKeyMessage = "message" SortKeyMetadata = "metadata" SortKeyName = "name" SortKeyPropertiesDefault = "properties->default" SortKeyPropertiesHomeDirectory = "properties->HOME_DIRECTORY" SortKeyReady = "ready" SortKeyRequestAt = "request_at" SortKeyResponseAt = "response_at" SortKeyRoles = "roles" SortKeySize = "size" SortKeySource = "source" SortKeySpecSourcePVCName = "spec->source->persistentVolumeClaimName" SortKeyState = "state" SortKeyStatusMessage = "status_message" SortKeyStatusState = "status_state" SortKeyStatusUpdatedAt = "status_updated_at" SortKeyStorageClassName = "storageclassname" SortKeyStorageSizeG = "storage_size_g" SortKeyStorageSpecStorageClassName = "storage_spec->storageClassName" SortKeyVolumeStatusReadyToUse = "volume_status->status->readyToUse" SortKeyVolumeStatusRestoreSize = "volume_status->status->restoreSize" SpecFlag = "spec" SpecShortFlag = "s" StartCommandName = "start" StopCommandName = "stop" StorageClassFlag = "storageclass" StorageclassCommandName = "storageclass" StorageclassType = "storageclass" StorageclassesCommandName = "storageclasses" StorageclassesType = "storageclasses" SubPathFlag = "sub-path" TableLabelAction = "ACTION" TableLabelAge = "AGE" TableLabelApplicationID = "APPLICATION_ID" TableLabelClass = "STORAGECLASSNAME" TableLabelConflictID = "CONFLICT_ID" TableLabelConflictName = "CONFLICT_NAME" TableLabelConflictType = "CONFLICT_TYPE" TableLabelControllerID = "CONTROLLER_ID" TableLabelDataplaneID = "DATAPLANE_ID" TableLabelDefault = "DEFAULT" TableLabelDescription = "DESCRIPTION" TableLabelEmail = "EMAIL" TableLabelHomeDir = "HOME_DIR" TableLabelID = "ID" TableLabelImage = "IMAGE" TableLabelImageBuildID = "IMAGE_BUILD_ID" TableLabelImageID = "IMAGE_ID" TableLabelJobName = "JOB_NAME" TableLabelKind = "KIND" TableLabelLogURL = "LOG_URL" TableLabelMessage = "MESSAGE" TableLabelMetadata = "METADATA" TableLabelName = "NAME" TableLabelNote = "NOTE" TableLabelReady = "READY" TableLabelReason = "REASON" TableLabelRequestAt = "REQUEST_AT" TableLabelResourceType = "RESOURCE_TYPE" TableLabelResponseAt = "RESPONSE_AT" TableLabelResponseTime = "RESPONSE_TIME" TableLabelRoles = "ROLES" TableLabelRuntime = "RUNTIME" TableLabelServices = "SERVICES" TableLabelSize = "SIZE" TableLabelSource = "SOURCE" TableLabelState = "STATE" TableLabelType = "TYPE" TableLabelURL = "URL" TableLabelUserName = "USERNAME" TableLabelValue = "VALUE" TableLabelVolumeID = "VOLUME_ID" TableLabelVolumeName = "VOLUME_NAME" TenantFlag = "tenant" TextOutputValue = "text" UpdateCommandName = "update" UserCommandName = "user" UserIDFlag = "user-id" UserType = "user" UsersCommandName = "users" UsersType = "users" ValueFlag = "value" ValueUnknown = "<unknown>" VerboseFlag = "verbose" VerboseShortFlag = "v" VersionCommandName = "version" VolumeCommandName = "volume" VolumeConflictCommandName = "volume-conflict" VolumeConflictType = "volume-conflict" VolumeConflictsCommandName = "volume-conflicts" VolumeConflictsType = "volume-conflicts" VolumeFlag = "volume" VolumeType = "volume" VolumesCommandName = "volumes" VolumesType = "volumes" WhoamiCommandName = "whoami" WorkbenchAdminRole = "workbench_admin" WorkbenchCommandName = "workbench" WorkbenchEndpointCustom = "/custom" WorkbenchEndpointDataplaneNodepools = "/dataplane_nodepools" WorkbenchEndpointDataplaneStorageclasses = "/dataplane_storageclasses" WorkbenchEndpointDataplaneWorkbenchApplications = "/dataplane_workbench_applications" WorkbenchEndpointDataplaneWorkbenchServices = "/dataplane_workbench_services" WorkbenchEndpointDataplaneWorkspaceServices = "/dataplane_workspace_services" WorkbenchEndpointDataplanes = "/dataplanes" WorkbenchEndpointEvents = "/events" WorkbenchEndpointImageBuilds = "/image_builds" WorkbenchEndpointImages = "/images" WorkbenchEndpointJobRuns = "/job_runs" WorkbenchEndpointJobs = "/jobs" WorkbenchEndpointPings = "/pings" WorkbenchEndpointRPCImageBulkDelete = "/rpc/image_bulk_delete" WorkbenchEndpointRPCImageBulkUpdate = "/rpc/image_bulk_update" WorkbenchEndpointRPCImageCreate = "/rpc/image_create" WorkbenchEndpointRPCImageRebuild = "/rpc/image_rebuild" WorkbenchEndpointRPCJobBulkDelete = "/rpc/job_bulk_delete" WorkbenchEndpointRPCJobBulkUpdate = "/rpc/job_bulk_update" WorkbenchEndpointRPCJobCreate = "/rpc/job_create" WorkbenchEndpointRPCJobRunBulkCancel = "/rpc/job_run_bulk_cancel" WorkbenchEndpointRPCJobRunBulkDelete = "/rpc/job_run_bulk_delete" WorkbenchEndpointRPCJobRunCreate = "/rpc/job_run_create" WorkbenchEndpointRPCSnapshotBulkDelete = "/rpc/snapshot_bulk_delete" WorkbenchEndpointRPCSnapshotBulkUpdate = "/rpc/snapshot_bulk_update" WorkbenchEndpointRPCSnapshotCreate = "/rpc/snapshot_create" WorkbenchEndpointRPCWorkbenchBulkDelete = "/rpc/workbench_bulk_delete" WorkbenchEndpointRPCWorkbenchBulkUpdate = "/rpc/workbench_bulk_update" WorkbenchEndpointRPCWorkbenchCreate = "/rpc/workbench_create" WorkbenchEndpointRPCWorkbenchUpdate = "/rpc/workbench_update" WorkbenchEndpointRPCWorkspaceBulkDelete = "/rpc/workspace_bulk_delete" WorkbenchEndpointRPCWorkspaceBulkUpdate = "/rpc/workspace_bulk_update" WorkbenchEndpointRPCWorkspaceCreate = "/rpc/workspace_create" WorkbenchEndpointRPCWorkspaceUpdate = "/rpc/workspace_update" WorkbenchEndpointRoot = "/" WorkbenchEndpointSnapshots = "/snapshots" WorkbenchEndpointSubmit = "/submit" WorkbenchEndpointSubmitFile = "/submit-file" WorkbenchEndpointUsers = "/users" WorkbenchEndpointWorkbenches = "/workbenches" WorkbenchEndpointWorkspaceConflicts = "/workspace_conflicts" WorkbenchEndpointWorkspaceGetSettings = "/rpc/get_settings" WorkbenchEndpointWorkspaceGetTenantSettings = "/rpc/get_tenant_settings" WorkbenchEndpointWorkspaceGetUserSettings = "/rpc/get_user_settings" WorkbenchEndpointWorkspaceSetTenantSetting = "/rpc/set_tenant_setting" WorkbenchEndpointWorkspaceSetUserSetting = "/rpc/set_user_setting" WorkbenchEndpointWorkspaces = "/workspaces" WorkbenchType = "workbench" WorkbenchesCommandName = "workbenches" WorkbenchesType = "workbenches" WorkspaceCommandName = "workspace" WorkspaceConflictCommandName = "workspace-conflict" WorkspaceConflictsCommandName = "workspace-conflicts" WorkspaceFlag = "workspace" WorkspaceShortFlag = "w" WorkspacesCommandName = "workspaces" )
Command names, flags, resource types, and API keys used across the CLI.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.