Documentation
¶
Index ¶
Constants ¶
const ( SIA = "SIA" DPA = "DPA" CSM = "CSM" PAM = "PAM" DAP = "DAP" ITI = "ITI" UBA = "UBA" ADM = "ADM" AUD = "AUD" ALR = "ALR" CEM = "CEM" EPM = "EPM" SCA = "SCA" SHSM = "SHSM" CLO = "CLO" CMS = "CMS" SMS = "SMS" PYC = "PYC" ARS = "ARS" IDP = "IDP" ITDR = "ITDR" INTS = "INTS" MSP = "MSP" CCE = "CCE" )
Application codes for sessions.
const ( DeployEnv = "DEPLOY_ENV" IdentityTenantName = "isp" )
Constants for environment variables and tenant names.
const ( Windows = "windows" Darwin = "darwin" Linux = "linux" )
Possible operating systems
const ( SSH = "SSH" RDP = "RDP" CLI = "CLI" CONSOLE = "CONSOLE" HTTPS = "HTTPS" K8S = "K8S" DB = "DB" )
Protocol types for sessions.
const ( AWS = "AWS" Azure = "AZURE" OnPrem = "ON-PREMISE" GCP = "GCP" ATLAS = "ATLAS" Fault = "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.