Documentation ¶
Index ¶
- Variables
- func CheckEnvironmentRole(ctx context.Context, requiredRole accountproto.AccountV2_Role_Environment, ...) (*eventproto.Editor, error)
- func CheckOrganizationRole(ctx context.Context, requiredRole accountproto.AccountV2_Role_Organization, ...) (*eventproto.Editor, error)
- func CheckSystemAdminRole(ctx context.Context) (*eventproto.Editor, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnauthenticated = status.Error(codes.Unauthenticated, "Unauthenticated user") ErrPermissionDenied = status.Error(codes.PermissionDenied, "Permission denied") ErrInternal = status.Error(codes.Internal, "Internal") )
Functions ¶
func CheckEnvironmentRole ¶ added in v0.4.0
func CheckEnvironmentRole( ctx context.Context, requiredRole accountproto.AccountV2_Role_Environment, environmentID string, getAccountFunc func(email string) (*accountproto.AccountV2, error), ) (*eventproto.Editor, error)
func CheckOrganizationRole ¶ added in v0.4.0
func CheckOrganizationRole( ctx context.Context, requiredRole accountproto.AccountV2_Role_Organization, getAccountFunc func(email string) (*accountproto.GetAccountV2Response, error), ) (*eventproto.Editor, error)
func CheckSystemAdminRole ¶ added in v0.4.0
func CheckSystemAdminRole(ctx context.Context) (*eventproto.Editor, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.