MCPcopy Create free account
hub / github.com/docker/secrets-engine / Marshal

Method Marshal

plugins/pass/plugin_test.go:74–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72}
73
74func (m *MockMyOtherValue) Marshal() ([]byte, error) {
75 buf := new(bytes.Buffer)
76 if err := binary.Write(buf, binary.BigEndian, m.Value); err != nil {
77 return nil, err
78 }
79 data := buf.Bytes()
80 return data, nil
81}
82
83func (m *MockMyOtherValue) Unmarshal(data []byte) error {
84 var decoded int64

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected