userrolesmodels

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIInterface

type APIInterface struct {
}

type AddRoleToUserResponse

type AddRoleToUserResponse struct {
	OK *struct {
		DidUserAlreadyHaveRole bool
	}
	UnknownRoleError *UnknownRoleError
}

type CreateNewRoleOrAddPermissionsResponse

type CreateNewRoleOrAddPermissionsResponse struct {
	OK *struct {
		CreatedNewRole bool
	}
}

type DeleteRoleResponse

type DeleteRoleResponse struct {
	OK *struct {
		DidRoleExist bool
	}
}

type GetAllRolesResponse

type GetAllRolesResponse struct {
	OK *struct {
		Roles []string
	}
}

type GetPermissionsForRoleResponse

type GetPermissionsForRoleResponse struct {
	OK *struct {
		Permissions []string
	}
	UnknownRoleError *UnknownRoleError
}

type GetRolesForUserResponse

type GetRolesForUserResponse struct {
	OK *struct {
		Roles []string
	}
}

type GetRolesThatHavePermissionResponse

type GetRolesThatHavePermissionResponse struct {
	OK *struct {
		Roles []string
	}
}

type GetUsersThatHaveRoleResponse

type GetUsersThatHaveRoleResponse struct {
	OK *struct {
		Users []string
	}
	UnknownRoleError *UnknownRoleError
}

type OverrideStruct

type OverrideStruct struct {
	Functions func(originalImplementation RecipeInterface) RecipeInterface
	APIs      func(originalImplementation APIInterface) APIInterface
}

type RecipeInterface

type RecipeInterface struct {
	AddRoleToUser                 *func(userID string, role string, tenantId string, userContext supertokens.UserContext) (AddRoleToUserResponse, error)
	RemoveUserRole                *func(userID string, role string, tenantId string, userContext supertokens.UserContext) (RemoveUserRoleResponse, error)
	GetRolesForUser               *func(userID string, tenantId string, userContext supertokens.UserContext) (GetRolesForUserResponse, error)
	GetUsersThatHaveRole          *func(role string, tenantId string, userContext supertokens.UserContext) (GetUsersThatHaveRoleResponse, error)
	CreateNewRoleOrAddPermissions *func(role string, permissions []string, userContext supertokens.UserContext) (CreateNewRoleOrAddPermissionsResponse, error)
	GetPermissionsForRole         *func(role string, userContext supertokens.UserContext) (GetPermissionsForRoleResponse, error)
	RemovePermissionsFromRole     *func(role string, permissions []string, userContext supertokens.UserContext) (RemovePermissionsFromRoleResponse, error)
	GetRolesThatHavePermission    *func(permission string, userContext supertokens.UserContext) (GetRolesThatHavePermissionResponse, error)
	DeleteRole                    *func(role string, userContext supertokens.UserContext) (DeleteRoleResponse, error)
	GetAllRoles                   *func(userContext supertokens.UserContext) (GetAllRolesResponse, error)
}

type RemovePermissionsFromRoleResponse

type RemovePermissionsFromRoleResponse struct {
	OK               *struct{}
	UnknownRoleError *UnknownRoleError
}

type RemoveUserRoleResponse

type RemoveUserRoleResponse struct {
	OK *struct {
		DidUserHaveRole bool
	}
	UnknownRoleError *UnknownRoleError
}

type TypeInput

type TypeInput struct {
	SkipAddingRolesToAccessToken       bool
	SkipAddingPermissionsToAccessToken bool

	Override *OverrideStruct
}

type TypeNormalisedInput

type TypeNormalisedInput struct {
	SkipAddingRolesToAccessToken       bool
	SkipAddingPermissionsToAccessToken bool

	Override OverrideStruct
}

type UnknownRoleError

type UnknownRoleError struct {
}

Jump to

Keyboard shortcuts

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