Documentation
¶
Index ¶
Constants ¶
const ( AppCodeSIA = "SIA" AppCodeDPA = "DPA" AppCodeCSM = "CSM" AppCodePAM = "PAM" AppCodeDAP = "DAP" AppCodeITI = "ITI" AppCodeUBA = "UBA" AppCodeADM = "ADM" AppCodeAUD = "AUD" AppCodeALR = "ALR" AppCodeCEM = "CEM" AppCodeEPM = "EPM" AppCodeSCA = "SCA" AppCodeSHSM = "SHSM" AppCodeCLO = "CLO" AppCodeCMS = "CMS" AppCodeSMS = "SMS" AppCodePYC = "PYC" AppCodeARS = "ARS" AppCodeIDP = "IDP" AppCodeITDR = "ITDR" AppCodeINTS = "INTS" AppCodeMSP = "MSP" AppCodeCCE = "CCE" )
Application codes for sessions.
const ( CategoryTypeCloudConsole = "Cloud console" CategoryTypeVM = "VM" CategoryTypeDB = "DB" )
ArkCategoryType represents the type of category in Ark.
const ( ConnectionMethodStanding = "standing" ConnectionMethodDynamic = "dynamic" )
Possible connection methods.
const ( DeployEnv = "DEPLOY_ENV" IdentityTenantName = "isp" )
Constants for environment variables and tenant names.
const ( OSTypeWindows = "windows" OSTypeDarwin = "darwin" OSTypeLinux = "linux" )
Possible operating systems
const ( ProtocolTypeSSH = "SSH" ProtocolTypeRDP = "RDP" ProtocolTypeCLI = "CLI" ProtocolTypeCONSOLE = "CONSOLE" ProtocolTypeHTTPS = "HTTPS" ProtocolTypeK8S = "K8S" ProtocolTypeDB = "DB" )
Protocol types for sessions.
const ( WorkspaceTypeAWS = "AWS" WorkspaceTypeAzure = "AZURE" WorkspaceTypeOnPrem = "ON-PREMISE" WorkspaceTypeGCP = "GCP" WorkspaceTypeFQDNIP = "FQDN/IP" WorkspaceTypeATLAS = "ATLAS" WorkspaceTypeFault = "FAULT" )
Possible workspace types
Variables ¶
var IdentityEnvUrls = map[AwsEnv]string{ Prod: "idaptive.app", GovProd: "id.cyberarkgov.cloud", }
IdentityEnvUrls is a map that associates AWS environments with their respective identity environment URLs.
var IdentityGeneratedSuffixPattern = map[AwsEnv]string{ Prod: `cyberark\.cloud\.\d.*`, GovProd: `cyberarkgov\.cloud\.\d.*`, }
IdentityGeneratedSuffixPattern is a map that associates AWS environments with their respective identity generated suffix patterns.
var IdentityTenantNames = map[AwsEnv]string{ Prod: IdentityTenantName, GovProd: IdentityTenantName, }
IdentityTenantNames is a map that associates AWS environments with their respective identity tenant names.
var RootDomain = map[AwsEnv]string{ Prod: "cyberark.cloud", GovProd: "cyberarkgov.cloud", }
RootDomain is a map that associates AWS environments with their respective root domains.
Functions ¶
func CheckIfIdentityGeneratedSuffix ¶
CheckIfIdentityGeneratedSuffix checks if the given tenant suffix matches the identity generated suffix pattern for the specified AWS environment.
func IsGovCloud ¶
func IsGovCloud() bool
IsGovCloud checks if the current AWS region is a GovCloud region.
Types ¶
type ArkRFC3339Time ¶
ArkRFC3339Time is a custom time type that represents a time in RFC 3339 format.
func (*ArkRFC3339Time) MarshalJSON ¶
func (ct *ArkRFC3339Time) MarshalJSON() ([]byte, error)
MarshalJSON converts the ArkRFC3339Time type to JSON format.
func (*ArkRFC3339Time) UnmarshalJSON ¶
func (ct *ArkRFC3339Time) UnmarshalJSON(data []byte) error
UnmarshalJSON parses the JSON data into the ArkRFC3339Time type.