services

package
v0.0.0-...-bd7e1e1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminServer

type AdminServer struct {
	pb.UnsafeAdminServiceServer

	Listen string
	// contains filtered or unexported fields
}

func NewAdminServer

func NewAdminServer(p AdminServerParams) (*AdminServer, error)

func (*AdminServer) AddUser

func (*AdminServer) Authenticate

func (a *AdminServer) Authenticate(ctx context.Context, _ *pbcommon.Empty) (*pbcommon.AuthReply, error)

func (*AdminServer) ChangeRootCert

func (*AdminServer) RegisterServer

func (a *AdminServer) RegisterServer(s *grpc.Server)

func (*AdminServer) RestartServer

func (a *AdminServer) RestartServer(ctx context.Context, request *pb.StopServerRequest) (*pbcommon.Empty, error)

type AdminServerParams

type AdminServerParams struct {
	fx.In
	Config  providers.ConfigurationProvider
	AuthPro providers.AuthProvider
	Env     *providers.EnvProvider
	Logger  *zap.Logger
}

type AuthChallenge

type AuthChallenge struct {
	Id        uuid.UUID
	Challenge []byte
	Expires   int64
	Nonce     uint64
}

type CaServer

type CaServer struct {
	pb.CertificateAuthorityServer

	Listen string
	// contains filtered or unexported fields
}

func NewCAServer

func NewCAServer(p CaServerParams) (*CaServer, error)

func (*CaServer) Authenticate

func (s *CaServer) Authenticate(ctx context.Context, _ *pbcommon.Empty) (*pbcommon.AuthReply, error)

func (*CaServer) GetConfig

func (*CaServer) GetCurrentKey

func (s *CaServer) GetCurrentKey(ctx context.Context, _ *pbcommon.Empty) (*pb.CertReply, error)

func (*CaServer) RegisterServer

func (s *CaServer) RegisterServer(srv *grpc.Server)

func (*CaServer) RequestServerCertificate

func (s *CaServer) RequestServerCertificate(ctx context.Context, msg *pb.HostCertRequest) (*pb.CertReply, error)

func (*CaServer) RequestUserCertificate

func (s *CaServer) RequestUserCertificate(ctx context.Context, msg *pb.UserCertRequest) (*pb.CertReply, error)

type CaServerParams

type CaServerParams struct {
	fx.In
	LC        fx.Lifecycle
	Logger    *zap.Logger
	Config    providers.ConfigurationProvider
	Auth      providers.AuthProvider
	Env       *providers.EnvProvider
	KProvider providers.KeychainProvider
}

Jump to

Keyboard shortcuts

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