completeWithExternalAgent creates a template version with an external agent resource
()
| 22 | |
| 23 | // completeWithExternalAgent creates a template version with an external agent resource |
| 24 | func completeWithExternalAgent() *echo.Responses { |
| 25 | return &echo.Responses{ |
| 26 | Parse: echo.ParseComplete, |
| 27 | ProvisionGraph: []*proto.Response{ |
| 28 | { |
| 29 | Type: &proto.Response_Graph{ |
| 30 | Graph: &proto.GraphComplete{ |
| 31 | Resources: []*proto.Resource{ |
| 32 | { |
| 33 | Type: "coder_external_agent", |
| 34 | Name: "main", |
| 35 | Agents: []*proto.Agent{ |
| 36 | { |
| 37 | Name: "external-agent", |
| 38 | OperatingSystem: "linux", |
| 39 | Architecture: "amd64", |
| 40 | }, |
| 41 | }, |
| 42 | }, |
| 43 | }, |
| 44 | HasExternalAgents: true, |
| 45 | }, |
| 46 | }, |
| 47 | }, |
| 48 | }, |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | // completeWithRegularAgent creates a template version with a regular agent (no external agent) |
| 53 | func completeWithRegularAgent() *echo.Responses { |
no outgoing calls
no test coverage detected