services

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package services mediates all the business logic of the application via a manager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager mediate the whole business logic of the application.

func NewManager

func NewManager(ctx context.Context, cacheDir, brokersConfPath string, configuredBrokers []string, usersConfig users.Config) (m Manager, err error)

NewManager returns a new manager after creating all necessary items for our business logic.

func (Manager) RegisterGRPCServices

func (m Manager) RegisterGRPCServices(ctx context.Context) *grpc.Server

RegisterGRPCServices returns a new grpc Server after registering both NSS and PAM services.

func (*Manager) Stop

func (m *Manager) Stop() error

Stop stops the underlying cache only in production code.

Directories

Path Synopsis
Package errmessages formats the error messages that are sent to the client.
Package errmessages formats the error messages that are sent to the client.
Package nss implements the nss grpc service protocol to the daemon.
Package nss implements the nss grpc service protocol to the daemon.
Package pam implements the pam grpc service protocol to the daemon.
Package pam implements the pam grpc service protocol to the daemon.
Package permissions handles peer user detection and permissions.
Package permissions handles peer user detection and permissions.
testutils
Package permissionstestutils are exported functions to be run in 3rd party package or integration tests.
Package permissionstestutils are exported functions to be run in 3rd party package or integration tests.

Jump to

Keyboard shortcuts

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