MCPcopy Create free account
hub / github.com/cli/cli / DeleteSubscription

Method DeleteSubscription

pkg/cmd/event/client/client.go:54–54  ·  view source on GitHub ↗

DeleteSubscription deletes the subscription with the given ID.

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

52 ListSubscriptions(ctx context.Context, limit int) ([]Subscription, error)
53 // DeleteSubscription deletes the subscription with the given ID.
54 DeleteSubscription(ctx context.Context, id string) error
55 // OpenStream opens the server-sent events stream of the subscription with the given ID. The caller must close
56 // the returned body. The stream is live only: events published while no stream is open are not delivered.
57 OpenStream(ctx context.Context, id string) (io.ReadCloser, error)

Callers 3

TestDeleteSubscriptionFunction · 0.65
TestClientErrorsFunction · 0.65
deleteRunFunction · 0.65

Implementers 2

EventClientMockpkg/cmd/event/client/client_mock.go
eventClientpkg/cmd/event/client/client.go

Calls

no outgoing calls

Tested by 2

TestDeleteSubscriptionFunction · 0.52
TestClientErrorsFunction · 0.52