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

Method GetToken

provisionersdk/proto/provisioner.pb.go:1751–1756  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1749}
1750
1751func (x *Agent) GetToken() string {
1752 if x, ok := x.GetAuth().(*Agent_Token); ok {
1753 return x.Token
1754 }
1755 return ""
1756}
1757
1758func (x *Agent) GetInstanceId() string {
1759 if x, ok := x.GetAuth().(*Agent_InstanceId); ok {

Callers 4

InsertWorkspaceResourceFunction · 0.45
normalizeResourcesFunction · 0.45
TestConvertResourcesFunction · 0.45
applyAutomaticInstanceIDFunction · 0.45

Calls 1

GetAuthMethod · 0.95

Tested by 2

normalizeResourcesFunction · 0.36
TestConvertResourcesFunction · 0.36