Versions in this module Expand all Collapse all v0 v0.0.1 Feb 15, 2023 Changes in this version + const EnvGCPNumericProject + const EnvGCPProject + const EnvGoogleAccountEmail + const EnvGoogleApplicationCredentials + const EnvGoogleCloudNumericProject + const EnvGoogleCloudProject + const EnvGoogleGCPNumericProject + const EnvGoogleGCPProject + const EnvGoogleInstanceRegion + const EnvGoogleProjectDefaultZone + const EnvInstanceHostname + const EnvInstanceID + const LegacyRequestHeader + const MetadataFlavorHeader + const MetadataFlavorValue + const RequestHeader + const ServerHeader + const ServerValue + const XFrameOptionsHeader + const XFrameOptionsValue + const XXSSProtectionHeader + const XXSSProtectionValue + var InstanceAttributeMap = map[string]bool + var InstanceGuestAttributeMap = map[string]bool + var MetadataHostEnv = "GCE_METADATA_HOST" + var MetadataIP = "169.254.169.254" + var ProjectAttributeMap = map[string]bool + func DisableImpersonate() + func DisableWorkloadIdentityFederation() + func EnableImpersonate() + func EnableWorkloadIdentityFederation() + func IsRunning() bool + func OnTest() bool + func SetDelegateServiceAccount(delegates []string) + func Shutdown(ctx context.Context) error + func StartServer() + func WriteJSON(w safehttp.ResponseWriter, data interface{}) safehttp.Result + type Dispatcher struct + func (d Dispatcher) Error(rw http.ResponseWriter, resp safehttp.ErrorResponse) error + func (d Dispatcher) Write(rw http.ResponseWriter, resp safehttp.Response) error + type InstanceHandler struct + func (InstanceHandler) Attributes(m map[string]bool) safehttp.Handler + func (InstanceHandler) CPUPlatform() safehttp.Handler + func (InstanceHandler) Description() safehttp.Handler + func (InstanceHandler) Disks() safehttp.Handler + func (InstanceHandler) GuestAttributes(m map[string]bool) safehttp.Handler + func (InstanceHandler) Hostname() safehttp.Handler + func (InstanceHandler) ID() safehttp.Handler + func (InstanceHandler) Image() safehttp.Handler + func (InstanceHandler) LegacyEndpointAccess() safehttp.Handler + func (InstanceHandler) Licenses() safehttp.Handler + func (InstanceHandler) MachineType() safehttp.Handler + func (InstanceHandler) MaintenanceEvent() safehttp.Handler + func (InstanceHandler) Name() safehttp.Handler + func (InstanceHandler) NetworkInterfaces() safehttp.Handler + func (InstanceHandler) Preempted() safehttp.Handler + func (InstanceHandler) Region() safehttp.Handler + func (InstanceHandler) RemainingCPUTime() safehttp.Handler + func (InstanceHandler) Scheduling() safehttp.Handler + func (InstanceHandler) Tags() safehttp.Handler + func (InstanceHandler) VirtualClock() safehttp.Handler + func (InstanceHandler) Zone() safehttp.Handler + func (h *InstanceHandler) RegisterHandlers(mux *safehttp.ServeMux) + func (h *InstanceHandler) ServiceAccounts() safehttp.Handler + type JSONResponse struct + Data interface{} + type ProjectHandler struct + func (ProjectHandler) Attributes(m map[string]bool) safehttp.Handler + func (ProjectHandler) NumericProjectID() safehttp.Handler + func (ProjectHandler) ProjectID() safehttp.Handler + func (h ProjectHandler) RegisterHandlers(mux *safehttp.ServeMux) + type Server struct + func NewServer() *Server + func NewServerWithPort(port string) *Server + func (s *Server) Addr() string + func (s *Server) Close() error + func (s *Server) DisableImpersonate() + func (s *Server) DisableWorkloadIdentityFederation() + func (s *Server) EnableImpersonate() + func (s *Server) EnableWorkloadIdentityFederation() + func (s *Server) ListenAndServe() error + func (s *Server) ListenAndServeTLS(certFile, keyFile string) error + func (s *Server) Serve(l net.Listener) error + func (s *Server) ServeTLS(l net.Listener, certFile, keyFile string) error + func (s *Server) SetDelegateServiceAccount(delegates []string) + func (s *Server) Shutdown(ctx context.Context) error + type StatusError struct + func NewStatusError(err error, status safehttp.StatusCode) StatusError + func (e StatusError) Code() safehttp.StatusCode + func (e StatusError) Error(w http.ResponseWriter, resp safehttp.ErrorResponse) error + type TokenResponse struct + AccessToken string + ExpiresIn int + TokenType string + type X86Microarchitecture int + const AMD_BOBCAT + const AMD_BULLDOZER + const AMD_EXCAVATOR + const AMD_HAMMER + const AMD_JAGUAR + const AMD_K10 + const AMD_K11 + const AMD_K12 + const AMD_PILEDRIVER + const AMD_PUMA + const AMD_STREAMROLLER + const AMD_ZEN + const AMD_ZEN2 + const AMD_ZEN3 + const AMD_ZEN4 + const AMD_ZEN_PLUS + const INTEL_80486 + const INTEL_ADL + const INTEL_ATOM_BNL + const INTEL_ATOM_GMT + const INTEL_ATOM_SMT + const INTEL_BDW + const INTEL_CFL + const INTEL_CML + const INTEL_CNL + const INTEL_CORE + const INTEL_HSW + const INTEL_ICL + const INTEL_IVB + const INTEL_KBL + const INTEL_KNIGHTS_C + const INTEL_KNIGHTS_F + const INTEL_KNIGHTS_L + const INTEL_KNIGHTS_M + const INTEL_LAKEMONT + const INTEL_NETBURST + const INTEL_NHM + const INTEL_P5 + const INTEL_PNR + const INTEL_RCL + const INTEL_SKL + const INTEL_SNB + const INTEL_SPR + const INTEL_TGL + const INTEL_WHL + const INTEL_WSM + const X86_UNKNOWN + func (x86 X86Microarchitecture) String() string Other modules containing this package github.com/zchee/compute-metadata-server