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() *iampb.SetIamPolicyRequest
- func EinrideGothenburgOffice() *iamexamplev1.Site
- func EinrideGothenburgOfficeSetIamPolicyRequest() *iampb.SetIamPolicyRequest
- func EinrideSetIamPolicyRequest() *iampb.SetIamPolicyRequest
- func EinrideStockholmOffice() *iamexamplev1.Site
- func InitializeResources(ctx context.Context, server iamexamplev1.FreightServiceServer) error
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() *iampb.SetIamPolicyRequest
EinrideBatcaveSetIamPolicyRequest returns an iampb.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() *iampb.SetIamPolicyRequest
EinrideGothenburgOfficeSetIamPolicyRequest returns an iampb.SetIamPolicyRequest for the Einride Gothenburg Office site resource.
func EinrideSetIamPolicyRequest ¶
func EinrideSetIamPolicyRequest() *iampb.SetIamPolicyRequest
EinrideSetIamPolicyRequest returns an iampb.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.
Types ¶
This section is empty.