( ctx context.Context, workspaceRef string, channel string, request UpdateNetworkChannelRequest, )
| 1911 | } |
| 1912 | |
| 1913 | func (c *unixSocketClient) UpdateNetworkChannel( |
| 1914 | ctx context.Context, |
| 1915 | workspaceRef string, |
| 1916 | channel string, |
| 1917 | request UpdateNetworkChannelRequest, |
| 1918 | ) (NetworkChannelDetailRecord, error) { |
| 1919 | channel, err := requireNetworkPathValue("channel", channel) |
| 1920 | if err != nil { |
| 1921 | return NetworkChannelDetailRecord{}, err |
| 1922 | } |
| 1923 | var response contract.NetworkChannelResponse |
| 1924 | path, err := networkChannelPath(workspaceRef, channel) |
| 1925 | if err != nil { |
| 1926 | return NetworkChannelDetailRecord{}, err |
| 1927 | } |
| 1928 | if err := c.doJSON(ctx, http.MethodPatch, path, nil, request, &response); err != nil { |
| 1929 | return NetworkChannelDetailRecord{}, err |
| 1930 | } |
| 1931 | return response.Channel, nil |
| 1932 | } |
| 1933 | |
| 1934 | func (c *unixSocketClient) ListNetworkSubscriptions( |
| 1935 | ctx context.Context, |
nothing calls this directly
no test coverage detected