iam

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServiceRoleCRN

func GetServiceRoleCRN(session *session.Session, serviceName, roleName string) (crn.CRN, error)

GetServiceRoleCRN searches serviceName's service roles for 'roleName' and returns its CRN. If serviceName is empty, searches system roles. If roleName is empty, searches for a "Manager" role if it exists. If the Manager role isn't present, the first role is chosen.

Types

type ServiceRolesGetter

type ServiceRolesGetter func(session *session.Session, serviceName, roleName string) (crn.CRN, error)

Jump to

Keyboard shortcuts

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