Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface { AuthenticateJWT(ctx context.Context, token string) (*entities.UserInfo, error) AuthenticateAPIKey(ctx context.Context, apiKey []byte) (*entities.UserInfo, error) AuthenticateTLS(ctx context.Context, connState *tls.ConnectionState) (*entities.UserInfo, error) }
Authenticator retrieves user info given an authentication method
type Authorizator ¶
type Authorizator interface { CheckPermission(ops ...*entities.Operation) error CheckAccess(allowedTenants []string) error }
Authorizator allows managing authorizations given a set of permissions
type Roles ¶
type Roles interface { Create(ctx context.Context, name string, permissions []entities.Permission, userInfo *entities.UserInfo) error Get(ctx context.Context, name string, userInfo *entities.UserInfo) (*entities.Role, error) List(ctx context.Context, userInfo *entities.UserInfo) ([]string, error) UserPermissions(ctx context.Context, userInfo *entities.UserInfo) []entities.Permission }
Roles allows managing permissions and roles
Directories ¶
Path | Synopsis |
---|---|
api
|
|
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
service
|
|
Click to show internal directories.
Click to hide internal directories.