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

Method GetSubscription

pkg/cmd/event/client/client.go:49–49  ·  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

47 CreateSubscription(ctx context.Context, resourceURL string, eventTypes []string) (sub *Subscription, created bool, err error)
48 // GetSubscription returns the active subscription with the given ID.
49 GetSubscription(ctx context.Context, id string) (*Subscription, error)
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)

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