MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / getGCEInstanceID

Function getGCEInstanceID

api/pkg/di/container.go:1960–1966  ·  view source on GitHub ↗
(hostname string)

Source from the content-addressed store, hash-verified

1958}
1959
1960func getGCEInstanceID(hostname string) string {
1961 instanceID, err := metadata.InstanceIDWithContext(context.Background())
1962 if err != nil {
1963 return hostname
1964 }
1965 return instanceID
1966}
1967
1968func consoleLogger(skipFrameCount int) *zerodriver.Logger {
1969 l := zerolog.New(

Callers 1

instanceIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected