MCPcopy Create free account
hub / github.com/coder/coder / sendApply

Function sendApply

provisioner/terraform/provision_test.go:143–147  ·  view source on GitHub ↗
(sess proto.DRPCProvisioner_SessionClient, transition proto.WorkspaceTransition)

Source from the content-addressed store, hash-verified

141}
142
143func sendApply(sess proto.DRPCProvisioner_SessionClient, transition proto.WorkspaceTransition) error {
144 return sess.Send(&proto.Request{Type: &proto.Request_Apply{Apply: &proto.ApplyRequest{
145 Metadata: &proto.Metadata{WorkspaceTransition: transition},
146 }}})
147}
148
149func sendGraph(sess proto.DRPCProvisioner_SessionClient, source proto.GraphSource) error {
150 return sess.Send(&proto.Request{Type: &proto.Request_Graph{Graph: &proto.GraphRequest{

Callers 2

TestProvision_SafeEnvFunction · 0.85
TestTimingsFromProvisionFunction · 0.85

Calls 1

SendMethod · 0.65

Tested by

no test coverage detected