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

Function convertVariableValues

coderd/provisionerdserver/provisionerdserver.go:3269–3279  ·  view source on GitHub ↗
(variableValues []codersdk.VariableValue)

Source from the content-addressed store, hash-verified

3267}
3268
3269func convertVariableValues(variableValues []codersdk.VariableValue) []*sdkproto.VariableValue {
3270 protoVariableValues := make([]*sdkproto.VariableValue, len(variableValues))
3271 for i, variableValue := range variableValues {
3272 protoVariableValues[i] = &sdkproto.VariableValue{
3273 Name: variableValue.Name,
3274 Value: variableValue.Value,
3275 Sensitive: true, // Without the template variable schema we have to assume that every variable may be sensitive.
3276 }
3277 }
3278 return protoVariableValues
3279}
3280
3281func convertWorkspaceTransition(transition database.WorkspaceTransition) (sdkproto.WorkspaceTransition, error) {
3282 switch transition {

Callers 1

acquireProtoJobMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected