Documentation
¶
Overview ¶
Package nss implements the nss grpc service protocol to the daemon.
Index ¶
- type Service
- func (s Service) CheckGlobalAccess(ctx context.Context, method string) error
- func (s Service) GetGroupByGID(ctx context.Context, req *authd.GetByIDRequest) (*authd.GroupEntry, error)
- func (s Service) GetGroupByName(ctx context.Context, req *authd.GetGroupByNameRequest) (*authd.GroupEntry, error)
- func (s Service) GetGroupEntries(ctx context.Context, req *authd.Empty) (*authd.GroupEntries, error)
- func (s Service) GetPasswdByName(ctx context.Context, req *authd.GetPasswdByNameRequest) (*authd.PasswdEntry, error)
- func (s Service) GetPasswdByUID(ctx context.Context, req *authd.GetByIDRequest) (*authd.PasswdEntry, error)
- func (s Service) GetPasswdEntries(ctx context.Context, req *authd.Empty) (*authd.PasswdEntries, error)
- func (s Service) GetShadowByName(ctx context.Context, req *authd.GetShadowByNameRequest) (*authd.ShadowEntry, error)
- func (s Service) GetShadowEntries(ctx context.Context, req *authd.Empty) (*authd.ShadowEntries, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
authd.UnimplementedNSSServer
// contains filtered or unexported fields
}
Service is the implementation of the NSS module service.
func NewService ¶
func NewService(ctx context.Context, userManager *users.Manager, brokerManager *brokers.Manager, permissionManager *permissions.Manager) Service
NewService returns a new NSS GRPC service.
func (Service) CheckGlobalAccess ¶
CheckGlobalAccess always return access, then individual calls are filtered.
func (Service) GetGroupByGID ¶
func (s Service) GetGroupByGID(ctx context.Context, req *authd.GetByIDRequest) (*authd.GroupEntry, error)
GetGroupByGID returns the group entry for the given GID.
func (Service) GetGroupByName ¶
func (s Service) GetGroupByName(ctx context.Context, req *authd.GetGroupByNameRequest) (*authd.GroupEntry, error)
GetGroupByName returns the group entry for the given group name.
func (Service) GetGroupEntries ¶
func (s Service) GetGroupEntries(ctx context.Context, req *authd.Empty) (*authd.GroupEntries, error)
GetGroupEntries returns all group entries.
func (Service) GetPasswdByName ¶
func (s Service) GetPasswdByName(ctx context.Context, req *authd.GetPasswdByNameRequest) (*authd.PasswdEntry, error)
GetPasswdByName returns the passwd entry for the given username.
func (Service) GetPasswdByUID ¶
func (s Service) GetPasswdByUID(ctx context.Context, req *authd.GetByIDRequest) (*authd.PasswdEntry, error)
GetPasswdByUID returns the passwd entry for the given UID.
func (Service) GetPasswdEntries ¶
func (s Service) GetPasswdEntries(ctx context.Context, req *authd.Empty) (*authd.PasswdEntries, error)
GetPasswdEntries returns all passwd entries.
func (Service) GetShadowByName ¶
func (s Service) GetShadowByName(ctx context.Context, req *authd.GetShadowByNameRequest) (*authd.ShadowEntry, error)
GetShadowByName returns the shadow entry for the given username.
func (Service) GetShadowEntries ¶
func (s Service) GetShadowEntries(ctx context.Context, req *authd.Empty) (*authd.ShadowEntries, error)
GetShadowEntries returns all shadow entries.