Documentation
¶
Overview ¶
Package deviceagent handles the gRPC server that ties the helper, systray/cli and apiserver together. It is the main driver on the device side.
Index ¶
- func NewStateMachine(ctx context.Context, rc runtimeconfig.RuntimeConfig, cfg config.Config, ...) *statemachine.StateMachine
- type DeviceAgentServer
- func (das *DeviceAgentServer) ConfigureJITA(context.Context, *pb.ConfigureJITARequest) (*pb.ConfigureJITAResponse, error)
- func (das *DeviceAgentServer) GetAgentConfiguration(ctx context.Context, req *pb.GetAgentConfigurationRequest) (*pb.GetAgentConfigurationResponse, error)
- func (das *DeviceAgentServer) Login(ctx context.Context, request *pb.LoginRequest) (*pb.LoginResponse, error)
- func (das *DeviceAgentServer) Logout(ctx context.Context, request *pb.LogoutRequest) (*pb.LogoutResponse, error)
- func (das *DeviceAgentServer) SetActiveTenant(ctx context.Context, req *pb.SetActiveTenantRequest) (*pb.SetActiveTenantResponse, error)
- func (das *DeviceAgentServer) SetAgentConfiguration(ctx context.Context, req *pb.SetAgentConfigurationRequest) (*pb.SetAgentConfigurationResponse, error)
- func (das *DeviceAgentServer) ShowAcceptableUse(ctx context.Context, _ *pb.ShowAcceptableUseRequest) (*pb.ShowAcceptableUseResponse, error)
- func (das *DeviceAgentServer) ShowJita(ctx context.Context, req *pb.ShowJitaRequest) (*pb.ShowJitaResponse, error)
- func (das *DeviceAgentServer) Status(request *pb.AgentStatusRequest, statusServer pb.DeviceAgent_StatusServer) error
- func (das *DeviceAgentServer) UpdateAgentStatus(status *pb.AgentStatus)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStateMachine ¶
func NewStateMachine( ctx context.Context, rc runtimeconfig.RuntimeConfig, cfg config.Config, notifier notify.Notifier, deviceHelper pb.DeviceHelperClient, statusUpdates chan<- *pb.AgentStatus, authHandler auth.Handler, logger logrus.FieldLogger, ) *statemachine.StateMachine
Types ¶
type DeviceAgentServer ¶
type DeviceAgentServer struct {
pb.UnimplementedDeviceAgentServer
Config *config.Config
AgentStatus *pb.AgentStatus
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(ctx context.Context, log *logrus.Entry, cfg *config.Config, rc runtimeconfig.RuntimeConfig, notifier notify.Notifier, sendEvent func(state.EventWithSpan), acceptableUse *acceptableuse.Handler, jita *jita.Handler, authHandler auth.Handler, ) *DeviceAgentServer
func (*DeviceAgentServer) ConfigureJITA ¶
func (das *DeviceAgentServer) ConfigureJITA(context.Context, *pb.ConfigureJITARequest) (*pb.ConfigureJITAResponse, error)
func (*DeviceAgentServer) GetAgentConfiguration ¶
func (das *DeviceAgentServer) GetAgentConfiguration(ctx context.Context, req *pb.GetAgentConfigurationRequest) (*pb.GetAgentConfigurationResponse, error)
func (*DeviceAgentServer) Login ¶
func (das *DeviceAgentServer) Login(ctx context.Context, request *pb.LoginRequest) (*pb.LoginResponse, error)
func (*DeviceAgentServer) Logout ¶
func (das *DeviceAgentServer) Logout(ctx context.Context, request *pb.LogoutRequest) (*pb.LogoutResponse, error)
func (*DeviceAgentServer) SetActiveTenant ¶
func (das *DeviceAgentServer) SetActiveTenant(ctx context.Context, req *pb.SetActiveTenantRequest) (*pb.SetActiveTenantResponse, error)
func (*DeviceAgentServer) SetAgentConfiguration ¶
func (das *DeviceAgentServer) SetAgentConfiguration(ctx context.Context, req *pb.SetAgentConfigurationRequest) (*pb.SetAgentConfigurationResponse, error)
func (*DeviceAgentServer) ShowAcceptableUse ¶
func (das *DeviceAgentServer) ShowAcceptableUse(ctx context.Context, _ *pb.ShowAcceptableUseRequest) (*pb.ShowAcceptableUseResponse, error)
func (*DeviceAgentServer) ShowJita ¶
func (das *DeviceAgentServer) ShowJita(ctx context.Context, req *pb.ShowJitaRequest) (*pb.ShowJitaResponse, error)
func (*DeviceAgentServer) Status ¶
func (das *DeviceAgentServer) Status(request *pb.AgentStatusRequest, statusServer pb.DeviceAgent_StatusServer) error
func (*DeviceAgentServer) UpdateAgentStatus ¶
func (das *DeviceAgentServer) UpdateAgentStatus(status *pb.AgentStatus)
Directories
¶
| Path | Synopsis |
|---|---|
|
Package agenthttp provides a simple HTTP server for serving psk-secured sites on localhost for the device-agent
|
Package agenthttp provides a simple HTTP server for serving psk-secured sites on localhost for the device-agent |
|
states
|
|
Click to show internal directories.
Click to hide internal directories.