MCPcopy Index your code
hub / github.com/coder/coder / MetadataFromProto

Function MetadataFromProto

codersdk/agentsdk/convert.go:158–163  ·  view source on GitHub ↗
(m *proto.Metadata)

Source from the content-addressed store, hash-verified

156}
157
158func MetadataFromProto(m *proto.Metadata) Metadata {
159 return Metadata{
160 Key: m.GetKey(),
161 WorkspaceAgentMetadataResult: MetadataResultFromProto(m.GetResult()),
162 }
163}
164
165func AgentScriptsFromProto(protoScripts []*proto.WorkspaceAgentScript) ([]codersdk.WorkspaceAgentScript, error) {
166 ret := make([]codersdk.WorkspaceAgentScript, len(protoScripts))

Callers 2

TestMetadataFromProtoFunction · 0.92
BatchUpdateMetadataMethod · 0.92

Calls 3

MetadataResultFromProtoFunction · 0.85
GetKeyMethod · 0.45
GetResultMethod · 0.45

Tested by 1

TestMetadataFromProtoFunction · 0.74