agenttransport

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateDeviceAccessFromContext

func ValidateDeviceAccessFromContext(ctx context.Context, name string, log logrus.FieldLogger) error

func ValidateEnrollmentAccessFromContext

func ValidateEnrollmentAccessFromContext(ctx context.Context, log logrus.FieldLogger) error

Types

type AgentTransportHandler

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

func NewAgentTransportHandler

func NewAgentTransportHandler(serviceHandler *service.ServiceHandler, log logrus.FieldLogger) *AgentTransportHandler

func (*AgentTransportHandler) CreateEnrollmentRequest

func (s *AgentTransportHandler) CreateEnrollmentRequest(w http.ResponseWriter, r *http.Request)

(POST /api/v1/enrollmentrequests)

func (*AgentTransportHandler) GetRenderedDevice

func (s *AgentTransportHandler) GetRenderedDevice(w http.ResponseWriter, r *http.Request, name string, params api.GetRenderedDeviceParams)

(GET /api/v1/devices/{name}/rendered)

func (*AgentTransportHandler) PatchDeviceStatus

func (s *AgentTransportHandler) PatchDeviceStatus(w http.ResponseWriter, r *http.Request, name string)

(PATCH) /api/v1/devices/{name}/status)

func (*AgentTransportHandler) ReadEnrollmentRequest

func (s *AgentTransportHandler) ReadEnrollmentRequest(w http.ResponseWriter, r *http.Request, name string)

(GET /api/v1/enrollmentrequests/{name})

func (*AgentTransportHandler) ReplaceDeviceStatus

func (s *AgentTransportHandler) ReplaceDeviceStatus(w http.ResponseWriter, r *http.Request, name string)

(PUT /api/v1/devices/{name}/status)

Jump to

Keyboard shortcuts

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