MCPcopy Index your code
hub / github.com/dagger/dagger / EncodePersistedObject

Method EncodePersistedObject

core/envfile.go:52–59  ·  view source on GitHub ↗
(ctx context.Context, cache dagql.PersistedObjectCache)

Source from the content-addressed store, hash-verified

50}
51
52func (ef *EnvFile) EncodePersistedObject(ctx context.Context, cache dagql.PersistedObjectCache) (dagql.PersistedObjectEncoding, error) {
53 _ = ctx
54 _ = cache
55 if ef == nil {
56 return dagql.PersistedObjectEncoding{}, fmt.Errorf("encode persisted env file: nil env file")
57 }
58 return encodePersistedObjectPayload(ef)
59}
60
61func (*EnvFile) DecodePersistedObject(ctx context.Context, dag *dagql.Server, _ uint64, _ *dagql.ResultCall, payload json.RawMessage) (dagql.Typed, error) {
62 _ = ctx

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected