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

Method ListSubscriptions

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

ListSubscriptions returns up to limit of the caller's active subscriptions, newest first. The limit must be positive.

(ctx context.Context, limit int)

Source from the content-addressed store, hash-verified

50 // ListSubscriptions returns up to limit of the caller's active subscriptions, newest first. The limit must be
51 // positive.
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

Callers 4

TestListSubscriptionsFunction · 0.65
TestClientErrorsFunction · 0.65
listRunFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 3

TestListSubscriptionsFunction · 0.52
TestClientErrorsFunction · 0.52