orgs

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OrgAdminRoleName = sdktypes.NewSymbol("admin")

Functions

func AddMember

func AddMember(ctx context.Context, db db.DB, m sdktypes.OrgMember) error

This is meant to be called from a transaction. This function does not require authentication! It is used by the user service to add a user to an org.

func Create

func Create(ctx context.Context, db db.DB, org sdktypes.Org) (sdktypes.OrgID, error)

This is meant to be called from within a transaction (see users.go), and should not add the user to the org, as it is being done by the caller.

func New

func New(db db.DB, l *zap.Logger) sdkservices.Orgs

Types

This section is empty.

Jump to

Keyboard shortcuts

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