MCPcopy Create free account
hub / github.com/docker/buildx / ReadFile

Method ReadFile

dap/thread.go:815–825  ·  view source on GitHub ↗
(ctx context.Context, req gateway.ReadRequest)

Source from the content-addressed store, hash-verified

813}
814
815func (r *mountReference) ReadFile(ctx context.Context, req gateway.ReadRequest) ([]byte, error) {
816 ctr, err := r.getContainer()
817 if err != nil {
818 return nil, err
819 }
820
821 return ctr.ReadFile(ctx, gateway.ReadContainerRequest{
822 ReadRequest: req,
823 MountIndex: r.index,
824 })
825}
826
827func (r *mountReference) StatFile(ctx context.Context, req gateway.StatRequest) (*types.Stat, error) {
828 ctr, err := r.getContainer()

Callers 15

LoadTestModulesFunction · 0.80
loadPolicyModulesFunction · 0.80
newPolicyModuleLoaderFunction · 0.80
regoBaseOptsMethod · 0.80
readPolicyDataFunction · 0.80
runCreateFunction · 0.80
NodeGroupByNameMethod · 0.80
GetLastActivityMethod · 0.80
CurrentMethod · 0.80
loadTLSFunction · 0.80
NamespaceMethod · 0.80

Calls

no outgoing calls

Tested by 3

TestGithubActionsContextFunction · 0.64
TestParseSpanStubsFunction · 0.64
TestJaegerDataFunction · 0.64