lib

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLib

func NewLib() interfaces.Auth

Types

type Modules

type Modules struct {
	Option *interfaces.AuthOption
	// contains filtered or unexported fields
}

func (*Modules) AddAuthCode added in v0.0.3

func (c *Modules) AddAuthCode(enabletracing bool, ctx context.Context, req *auth.AuthCodeList) (code string, err error)

func (*Modules) AddGroupApplications added in v0.0.3

func (c *Modules) AddGroupApplications(enabletracing bool, ctx context.Context, req *auth.UsersGroupApplicationsListRequest) (err error)

func (*Modules) AddGroupScopes added in v0.0.3

func (c *Modules) AddGroupScopes(enabletracing bool, ctx context.Context, req *auth.UsersGroupScopesListRequest) (err error)

func (*Modules) AddUserApplication added in v0.0.3

func (c *Modules) AddUserApplication(enabletracing bool, ctx context.Context, req *auth.AddUsersApplicationRequest) (err error)

func (*Modules) AddUsersListGroups added in v0.0.3

func (c *Modules) AddUsersListGroups(enabletracing bool, ctx context.Context, req *auth.AddUsersListGroupsRequest) (err error)

func (*Modules) BasicTokenValidate

func (c *Modules) BasicTokenValidate(tok string) (err error)

func (*Modules) DelGroupApplications added in v0.0.3

func (c *Modules) DelGroupApplications(enabletracing bool, ctx context.Context, req *auth.UsersGroupApplicationsListRequest) (err error)

func (*Modules) DelGroupScopes added in v0.0.3

func (c *Modules) DelGroupScopes(enabletracing bool, ctx context.Context, req *auth.UsersGroupScopesListRequest) (err error)

func (*Modules) DelUsersListGroups added in v0.0.3

func (c *Modules) DelUsersListGroups(enabletracing bool, ctx context.Context, req *auth.DelUsersListGroupsRequest) (err error)

func (*Modules) DeleteApplication added in v0.0.3

func (c *Modules) DeleteApplication(enabletracing bool, ctx context.Context, req *auth.DeleteApplicationRequest) (res *emptypb.Empty, err error)

func (*Modules) DeleteScope added in v0.0.3

func (c *Modules) DeleteScope(enabletracing bool, ctx context.Context, req *auth.DeleteScopesRequest) (err error)

func (*Modules) DeleteUser added in v0.0.3

func (c *Modules) DeleteUser(enabletracing bool, ctx context.Context, requser *auth.UsersList, req *auth.UserDeleteRequest) (err error)

func (*Modules) DeleteUserGroup added in v0.0.3

func (c *Modules) DeleteUserGroup(enabletracing bool, ctx context.Context, req *auth.DeleteUserGroupRequest) (err error)

func (*Modules) EditScope added in v0.0.3

func (c *Modules) EditScope(enabletracing bool, ctx context.Context, req *auth.ScopeList) (err error)

func (*Modules) FindApplicationGroup added in v0.0.3

func (c *Modules) FindApplicationGroup(enabletracing bool, ctx context.Context, req *auth.ApplicationInList) (res *auth.ApplicationInList, err error)

func (*Modules) FindGroupScopes added in v0.0.3

func (c *Modules) FindGroupScopes(enabletracing bool, ctx context.Context, req *auth.GroupScopeInList) (res *auth.GroupScopeInList, err error)

func (*Modules) FindUsersGroup added in v0.0.3

func (c *Modules) FindUsersGroup(enabletracing bool, ctx context.Context, req *auth.UsersGroupInList) (res *auth.UsersGroupInList, err error)

func (*Modules) GetApplication added in v0.0.3

func (c *Modules) GetApplication(enabletracing bool, ctx context.Context, req *auth.GetApplicationRequest) (res *auth.GetApplicationResponse, err error)

func (*Modules) GetModels added in v0.0.3

func (c *Modules) GetModels() interfaces.Models

func (*Modules) GetScopes added in v0.0.3

func (c *Modules) GetScopes(enabletracing bool, ctx context.Context, req *auth.GetScopesRequest) (res *auth.GetScopesResponse, err error)

func (*Modules) GetUsers added in v0.0.3

func (c *Modules) GetUsers(enabletracing bool, ctx context.Context, req *auth.GetUsersRequest) (res *auth.GetUsersResponse, err error)

func (*Modules) GetUsersGroup added in v0.0.3

func (c *Modules) GetUsersGroup(enabletracing bool, ctx context.Context, req *auth.GetUsersGroupRequest) (res *auth.GetUsersGroupResponse, err error)

func (*Modules) GetUsersGroupApplications added in v0.0.3

func (c *Modules) GetUsersGroupApplications(enabletracing bool, ctx context.Context, req *auth.GetUsersGroupApplicationsRequest) (res *auth.GetUsersGroupApplicationsResponse, err error)

func (*Modules) GetUsersGroupScopes added in v0.0.3

func (c *Modules) GetUsersGroupScopes(enabletracing bool, ctx context.Context, req *auth.GetUsersGroupScopesRequest) (res *auth.GetUsersGroupScopesResponse, err error)

func (*Modules) GetUsersListGroups added in v0.0.3

func (c *Modules) GetUsersListGroups(enabletracing bool, ctx context.Context, req *auth.GetUsersListGroupsRequest) (res *auth.GetUsersListGroupsResponse, err error)

func (*Modules) Init

func (c *Modules) Init(option *interfaces.AuthOption) error

func (*Modules) InsertLogs added in v0.0.3

func (c *Modules) InsertLogs(enabletracing bool, ctx context.Context, req *auth.LogsList) (err error)

func (*Modules) NewApplication added in v0.0.3

func (c *Modules) NewApplication(enabletracing bool, ctx context.Context, req *auth.NewApplicationRequest) (res *auth.ApplicationList, err error)

func (*Modules) NewScope added in v0.0.3

func (c *Modules) NewScope(enabletracing bool, ctx context.Context, req *auth.ScopeList) (res *auth.ScopeList, err error)

func (*Modules) NewUser added in v0.0.3

func (c *Modules) NewUser(enabletracing bool, ctx context.Context, req *auth.NewUserRequest) (res *auth.UsersList, err error)

func (*Modules) NewUserGroup added in v0.0.3

func (c *Modules) NewUserGroup(enabletracing bool, ctx context.Context, req *auth.UsersGroupList) (res *auth.UsersGroupList, err error)

func (*Modules) UseBasicToken

func (c *Modules) UseBasicToken(dir string) (err error)

func (*Modules) UseBasicTokenWithPreload added in v0.0.4

func (c *Modules) UseBasicTokenWithPreload(dir, token string) (err error)

func (*Modules) UseSQLJWT added in v0.0.3

func (c *Modules) UseSQLJWT() (j interfaces.Services, err error)

func (*Modules) UserChangePassword added in v0.0.3

func (c *Modules) UserChangePassword(enabletracing bool, ctx context.Context, requser *auth.UsersList, req *auth.ChangePasswordRequest, tokenid string) (res *auth.UsersList, err error)

func (*Modules) UserEdit added in v0.0.3

func (c *Modules) UserEdit(enabletracing bool, ctx context.Context, requser *auth.UsersList, req *auth.UserEditRequest) (res *auth.UsersList, err error)

Directories

Path Synopsis
models

Jump to

Keyboard shortcuts

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