MCPcopy Create free account
hub / github.com/compozy/agh / UpdateNetworkChannel

Method UpdateNetworkChannel

internal/cli/client.go:1913–1932  ·  view source on GitHub ↗
(
	ctx context.Context,
	workspaceRef string,
	channel string,
	request UpdateNetworkChannelRequest,
)

Source from the content-addressed store, hash-verified

1911}
1912
1913func (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
1934func (c *unixSocketClient) ListNetworkSubscriptions(
1935 ctx context.Context,

Callers

nothing calls this directly

Calls 3

doJSONMethod · 0.95
requireNetworkPathValueFunction · 0.85
networkChannelPathFunction · 0.85

Tested by

no test coverage detected