utils

package
v0.0.0-...-9e96525 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 41

Documentation

Index

Constants

View Source
const ErrCodeRRoleDoesnotExist = "RoleDoesnotExist"

Variables

This section is empty.

Functions

func CloudName

func CloudName(region models.Region) string

func CloudType

func CloudType(region models.Region) string

func EscapeUrlParm

func EscapeUrlParm(urlParm string) string

func FindRoleByName

func FindRoleByName(supported []models.PolicyRole, name string) (models.PolicyRole, error)

func FindRoleByNameV2

func FindRoleByNameV2(supported []iampapv2.Role, name string) (iampapv2.Role, error)

func GenerateBoundToCRN

func GenerateBoundToCRN(region models.Region, accountID string) crn.CRN

func GenerateSpaceCRN

func GenerateSpaceCRN(region models.Region, orgID string, spaceID string) crn.CRN

func GetLocationFromTargetCRN

func GetLocationFromTargetCRN(crnResource string) string

func GetRolesFromRoleNames

func GetRolesFromRoleNames(roleNames []string, roles []models.PolicyRole) ([]models.PolicyRole, error)

func GetRolesFromRoleNamesV2

func GetRolesFromRoleNamesV2(roleNames []string, roles []iampapv2.Role) ([]iampapv2.Role, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL