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

Method GetSubscription

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

GetSubscription returns the active subscription with the given ID.

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

58 CreateSubscription(ctx context.Context, resourceURL string, eventTypes []string) (sub *Subscription, created bool, err error)
59 // GetSubscription returns the active subscription with the given ID.
60 GetSubscription(ctx context.Context, id string) (*Subscription, error)
61 // ListSubscriptions returns up to limit of the caller's active subscriptions, newest first. The limit must be
62 // positive.
63 ListSubscriptions(ctx context.Context, limit int) ([]Subscription, error)

Callers 4

TestGetSubscriptionFunction · 0.65
TestClientErrorsFunction · 0.65
viewRunFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 3

TestGetSubscriptionFunction · 0.52
TestClientErrorsFunction · 0.52