linuxkit/pkg/metadata/provider_vmware_unsupported.go
Birol Bilgin d4a8e284f6
added vmware metadata provider (#3526)
cloud-init data from vmware guest info as it described in the link below
https://github.com/vmware/cloud-init-vmware-guestinfo

Signed-off-by: Birol Bilgin <birolbilgin@gmail.com>
Co-authored-by: Birol Bilgin <birol.bilgin@basefarm.com>
2023-03-04 19:50:46 +02:00

28 lines
607 B
Go

//go:build !(linux && 386 && amd64)
package main
// ProviderVMware implements VMware provider interface for unsupported architectures
type ProviderVMware struct{}
// NewVMware returns a new VMware Provider
func NewVMware() *ProviderVMware {
return nil
}
// String implements provider interface
func (p *ProviderVMware) String() string {
return ""
}
// Probe implements provider interface
func (p *ProviderVMware) Probe() bool {
return false
}
// Extract implements provider interface
func (p *ProviderVMware) Extract() ([]byte, error) {
// Get vendor data, if empty do not fail
return nil, nil
}