unixdomainsd

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AAInitUnixDomain = fsoauthz.AAInitUnixDomain
View Source
const AAReadUnixDomain = fsoauthz.AAReadUnixDomain
View Source
const AAWriteUnixDomain = fsoauthz.AAWriteUnixDomain

Variables

View Source
var ErrDomainNameInUse = status.Error(
	codes.FailedPrecondition, "domain name already in use",
)
View Source
var ErrDomainNotFound = status.Error(
	codes.NotFound, "Unix domain not found",
)
View Source
var ErrGid0Forbidden = status.Error(
	codes.InvalidArgument, "Unix GID 0 forbidden",
)
View Source
var ErrMalformedRequest = status.Error(
	codes.InvalidArgument, "malformed request",
)
View Source
var ErrMalformedUnixDomainName = status.Error(
	codes.InvalidArgument, "malformed Unix domain name",
)
View Source
var ErrMissingVid = status.Error(
	codes.InvalidArgument, "missing vid",
)
View Source
var ErrNotYetImplemented = status.Error(
	codes.Unimplemented, "not yet implemented",
)
View Source
var ErrShutdown = status.Errorf(
	codes.Unavailable, "shutdown",
)
View Source
var ErrUid0Forbidden = status.Error(
	codes.InvalidArgument, "Unix UID 0 forbidden",
)
View Source
var ErrUserNotFound = status.Error(
	codes.NotFound, "Unix user not found",
)
View Source
var ErrVersionConflict = status.Error(
	codes.FailedPrecondition, "version conflict",
)

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Errorw(msg string, kv ...interface{})
}

type Server

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

Canceling the server `ctx` stops streaming connections. Use it together with `grpc.Server.GracefulStop()`:

``` cancel() // non-blocking gsrv.GracefulStop() // blocking ```

func New

func New(
	ctx context.Context,
	lg Logger,
	authn auth.Authenticator,
	authz auth.AnyAuthorizer,
	main *fsomain.Main,
	mainId uuid.I,
	domains *unixdomains.UnixDomains,
	domainsJ *events.Journal,
) *Server

func (*Server) AddUnixGroupUser

func (srv *Server) AddUnixGroupUser(
	ctx context.Context, i *pb.AddUnixGroupUserI,
) (*pb.AddUnixGroupUserO, error)

func (*Server) CreateUnixDomain

func (srv *Server) CreateUnixDomain(
	ctx context.Context, i *pb.CreateUnixDomainI,
) (*pb.CreateUnixDomainO, error)

func (*Server) CreateUnixGroup

func (srv *Server) CreateUnixGroup(
	ctx context.Context, i *pb.CreateUnixGroupI,
) (*pb.CreateUnixGroupO, error)

func (*Server) CreateUnixUser

func (srv *Server) CreateUnixUser(
	ctx context.Context, i *pb.CreateUnixUserI,
) (*pb.CreateUnixUserO, error)

func (*Server) DeleteUnixGroup

func (srv *Server) DeleteUnixGroup(
	ctx context.Context, i *pb.DeleteUnixGroupI,
) (*pb.DeleteUnixGroupO, error)

func (*Server) DeleteUnixUser

func (srv *Server) DeleteUnixUser(
	ctx context.Context, i *pb.DeleteUnixUserI,
) (*pb.DeleteUnixUserO, error)

func (*Server) GetUnixDomain

func (srv *Server) GetUnixDomain(
	ctx context.Context, i *pb.GetUnixDomainI,
) (*pb.GetUnixDomainO, error)

func (*Server) GetUnixUser

func (srv *Server) GetUnixUser(
	ctx context.Context, i *pb.GetUnixUserI,
) (*pb.GetUnixUserO, error)

func (*Server) RemoveUnixGroupUser

func (srv *Server) RemoveUnixGroupUser(
	ctx context.Context, i *pb.RemoveUnixGroupUserI,
) (*pb.RemoveUnixGroupUserO, error)

func (*Server) UnixDomainEvents

func (srv *Server) UnixDomainEvents(
	i *pb.UnixDomainEventsI,
	stream pb.UnixDomains_UnixDomainEventsServer,
) error

Jump to

Keyboard shortcuts

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