Documentation
¶
Index ¶
- func GetOldWinlogChannels() ([]string, error)
- type Platform
- func (p Platform) GetResource() (resourcedetector.Resource, error)
- func (p Platform) Hostname() string
- func (p Platform) Is2012() bool
- func (p Platform) Is2016() bool
- func (p Platform) Name() string
- func (p Platform) TestContext(ctx context.Context) context.Context
- func (p Platform) UserAgent(prefix string) (string, error)
- func (p Platform) VersionLabel(prefix string) (string, error)
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOldWinlogChannels ¶
Types ¶
type Platform ¶
type Platform struct { Type Type WindowsBuildNumber string WinlogV1Channels []string HostInfo *host.InfoStat HasNvidiaGpu bool ResourceOverride resourcedetector.Resource // Resource override only for GCE metadata unit testing TestGCEResourceOverride resourcedetector.Resource }
func FromContext ¶
func (Platform) GetResource ¶
func (p Platform) GetResource() (resourcedetector.Resource, error)
Click to show internal directories.
Click to hide internal directories.