MCPcopy Create free account
hub / github.com/akash-network/provider / MustStartupChFromCtx

Function MustStartupChFromCtx

tools/fromctx/context.go:71–78  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

69}
70
71func MustStartupChFromCtx(ctx context.Context) chan<- struct{} {
72 val, err := StartupChFromCtx(ctx)
73 if err != nil {
74 panic(err.Error())
75 }
76
77 return val
78}
79
80func KubeRESTClientFromCtx(ctx context.Context) (*rest.RESTClient, error) {
81 val := ctx.Value(CtxKeyKubeRESTClient)

Callers 4

CmdFunction · 0.92
CmdFunction · 0.92
CmdFunction · 0.92
doRunCmdFunction · 0.92

Calls 2

StartupChFromCtxFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected