agent: Fix the configuration sample file
All endpoint names share the `Request` suffix.
Also, the current list is based on functions, not requests.
Fixes
Reported-by: Jakob Naucke
@@ -4,18 +4,38 @@ server_addr = 'vsock://8:2048'
[endpoints]
# All endpoints are allowed
-allowed = [ "CreateContainer", "StartContainer", "RemoveContainer",
- "ExecProcess", "SignalProcess", "WaitProcess",
- "UpdateContainer", "StatsContainer", "PauseContainer", "ResumeContainer",
- "WriteStdin", "ReadStdout", "ReadStderr", "CloseStdin", "TtyWinResize",
- "UpdateInterface", "UpdateRoutes", "ListInterfaces", "ListRoutes", "AddARPNeighbors",
- "StartTracing", "StopTracing", "GetMetrics",
- "CreateSandbox", "DestroySandbox",
- "OnlineCPUMem",
- "ReseedRandomDev",
- "GetGuestDetails",
- "MemHotplugByProbe",
- "SetGuestDateTime",
- "CopyFile",
- "GetOOMEvent",
- "AddSwap"]
+allowed = [
+ "AddARPNeighborsRequest",
+ "AddSwapRequest",
+ "CloseStdinRequest",
+ "CopyFileRequest",
+ "CreateContainerRequest",
+ "CreateSandboxRequest",
+ "DestroySandboxRequest",
+ "ExecProcessRequest",
+ "GetMetricsRequest",
+ "GetOOMEventRequest",
+ "GuestDetailsRequest",
+ "ListInterfacesRequest",
+ "ListRoutesRequest",
+ "MemHotplugByProbeRequest",
+ "OnlineCPUMemRequest",
+ "PauseContainerRequest",
+ "PullImageRequest",
+ "ReadStreamRequest",
+ "RemoveContainerRequest",
+ "ReseedRandomDevRequest",
+ "ResumeContainerRequest",
+ "SetGuestDateTimeRequest",
+ "SignalProcessRequest",
+ "StartContainerRequest",
+ "StartTracingRequest",
+ "StatsContainerRequest",
+ "StopTracingRequest",
+ "TtyWinResizeRequest",
+ "UpdateContainerRequest",
+ "UpdateInterfaceRequest",
+ "UpdateRoutesRequest",
+ "WaitProcessRequest",
+ "WriteStreamRequest"
+]
