Documentation ¶
Overview ¶
Package iamexampledata provides predefined example data for the IAM example service.
Index ¶
- Constants
- func BootstrapRootAdmin(ctx context.Context, spannerClient *spanner.Client) error
- func Einride() *iamexamplev1.Shipper
- func EinrideBatcave() *iamexamplev1.Site
- func EinrideBatcaveSetIamPolicyRequest() *iam.SetIamPolicyRequest
- func EinrideGothenburgOffice() *iamexamplev1.Site
- func EinrideGothenburgOfficeSetIamPolicyRequest() *iam.SetIamPolicyRequest
- func EinrideSetIamPolicyRequest() *iam.SetIamPolicyRequest
- func EinrideStockholmOffice() *iamexamplev1.Site
- func InitializeResources(ctx context.Context, server iamexamplev1.FreightServiceServer) error
- func PredefinedRoles() *iamv1.Roles
Constants ¶
const ( RootAdminMember = "user:root" EinrideAdminMember = "user:einride-admin" EinrideGothenburgFreightPlannerMember = "user:einride-gothenburg-freight-planner" EinrideBatcaveWorkerMember = "user:einride-batcave-worker" )
Example IAM policy members.
Variables ¶
This section is empty.
Functions ¶
func BootstrapRootAdmin ¶
BootstrapRootAdmin bootstraps an IAM database with RootAdminMember as iamexamplev1.FreightServiceServer root admin.
func EinrideBatcave ¶
func EinrideBatcave() *iamexamplev1.Site
EinrideBatcave returns an iamexamplev1.Site representing Einride's Batcave.
func EinrideBatcaveSetIamPolicyRequest ¶
func EinrideBatcaveSetIamPolicyRequest() *iam.SetIamPolicyRequest
EinrideBatcaveSetIamPolicyRequest returns an iam.SetIamPolicyRequest for the Einride Batcave site resource.
func EinrideGothenburgOffice ¶
func EinrideGothenburgOffice() *iamexamplev1.Site
EinrideGothenburgOffice returns an iamexamplev1.Site representing Einride's Gothenburg office.
func EinrideGothenburgOfficeSetIamPolicyRequest ¶
func EinrideGothenburgOfficeSetIamPolicyRequest() *iam.SetIamPolicyRequest
EinrideGothenburgOfficeSetIamPolicyRequest returns an iam.SetIamPolicyRequest for the Einride Gothenburg Office site resource.
func EinrideSetIamPolicyRequest ¶
func EinrideSetIamPolicyRequest() *iam.SetIamPolicyRequest
EinrideSetIamPolicyRequest returns an iam.SetIamPolicyRequest for the Einride shipper resource.
func EinrideStockholmOffice ¶
func EinrideStockholmOffice() *iamexamplev1.Site
EinrideStockholmOffice returns an iamexamplev1.Site representing Einride's Stockholm office.
func InitializeResources ¶
func InitializeResources(ctx context.Context, server iamexamplev1.FreightServiceServer) error
InitializeResources uses an iamexamplev1.FreightServiceClient to initialize the set of example resources.
func PredefinedRoles ¶
PredefinedRoles returns the pre-defined roles for iamexamplev1.FreightServiceServer.
Types ¶
This section is empty.