| 1868 | } |
| 1869 | |
| 1870 | func (c *unixSocketClient) NetworkChannels(ctx context.Context, workspaceRef string) ([]NetworkChannelRecord, error) { |
| 1871 | var response struct { |
| 1872 | Channels []NetworkChannelRecord `json:"channels"` |
| 1873 | } |
| 1874 | path, err := networkBasePath(workspaceRef) |
| 1875 | if err != nil { |
| 1876 | return nil, err |
| 1877 | } |
| 1878 | if err := c.doJSON(ctx, http.MethodGet, path+"/channels", nil, nil, &response); err != nil { |
| 1879 | return nil, err |
| 1880 | } |
| 1881 | return response.Channels, nil |
| 1882 | } |
| 1883 | |
| 1884 | func (c *unixSocketClient) CreateNetworkChannel( |
| 1885 | ctx context.Context, |