MCPcopy Create free account
hub / github.com/compozy/agh / Encode

Method Encode

internal/resources/codec.go:17–17  ·  view source on GitHub ↗
(spec T)

Source from the content-addressed store, hash-verified

15 Kind() ResourceKind
16 DecodeAndValidate(ctx context.Context, scope ResourceScope, raw []byte) (T, error)
17 Encode(spec T) ([]byte, error)
18 MaxBytes() int
19}
20

Callers 15

quoteJSONStringFunction · 0.65
readOnlyTestSQLiteDSNFunction · 0.65
readOnlySQLiteDSNFunction · 0.65
stableIDFunction · 0.65
sameEncodedSpecFunction · 0.65
buildURLMethod · 0.65
endpointMethod · 0.65
FetchSSHAccessMethod · 0.65
writeJSONFunction · 0.65
openLowBusyTestKernelFunction · 0.65
encodeValidatedSpecFunction · 0.65

Implementers 2

externalCodecinternal/resources/codec_external_test
hookBindingCodecinternal/daemon/hook_binding_resources

Calls

no outgoing calls

Tested by 15

readOnlyTestSQLiteDSNFunction · 0.52
endpointMethod · 0.52
writeJSONFunction · 0.52
openLowBusyTestKernelFunction · 0.52
EncodeMethod · 0.52
newMarketplaceTestServerFunction · 0.52
writeJSONResponseFunction · 0.52
writeJSONFunction · 0.52
transportHarnessLogsPathFunction · 0.52