MCPcopy Create free account
hub / github.com/coder/coder / NewDisabledStub

Function NewDisabledStub

aibridge/provider/disabled.go:25–27  ·  view source on GitHub ↗

NewDisabledStub returns a Provider stub that reports Enabled() == false. The type string is preserved so callers can distinguish provider families.

(name, providerType string)

Source from the content-addressed store, hash-verified

23// NewDisabledStub returns a Provider stub that reports Enabled() == false.
24// The type string is preserved so callers can distinguish provider families.
25func NewDisabledStub(name, providerType string) *DisabledStub {
26 return &DisabledStub{name: name, providerType: providerType}
27}
28
29func (d *DisabledStub) Type() string { return d.providerType }
30func (d *DisabledStub) Name() string { return d.name }

Callers 1

NewDisabledProviderStubFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected