MCPcopy Create free account
hub / github.com/linuxkit/linuxkit / Provider

Interface Provider

pkg/metadata/main.go:47–57  ·  view source on GitHub ↗

Provider is a generic interface for metadata/userdata providers.

Source from the content-addressed store, hash-verified

45
46// Provider is a generic interface for metadata/userdata providers.
47type Provider interface {
48 // String should return a unique name for the Provider
49 String() string
50
51 // Probe returns true if the provider was detected.
52 Probe() bool
53
54 // Extract user data. This may write some data, specific to a
55 // provider, to ConfigPath and should return the generic userdata.
56 Extract() ([]byte, error)
57}
58
59// netProviders is a list of Providers offering metadata/userdata over the network
60var netProviders []Provider

Callers 79

mainFunction · 0.95
parseCmdFunction · 0.65
volumeInitCmdFunction · 0.65
systemInitCmdFunction · 0.65
mainFunction · 0.65
WriteMethod · 0.65
mainFunction · 0.65
vmwareGetFunction · 0.65
mainFunction · 0.95
mainFunction · 0.95
createOpenStackImageFunction · 0.65
runOpenStackCmdFunction · 0.65

Implementers 11

ProviderCDROMpkg/metadata/provider_cdrom.go
ProviderGCPpkg/metadata/provider_gcp.go
ProviderVMwarepkg/metadata/provider_vmware_unsupport
ProviderEquinixMetalpkg/metadata/provider_equinixmetal.go
ProviderVultrpkg/metadata/provider_vultr.go
ProviderDigitalOceanpkg/metadata/provider_digitalocean.go
ProviderHetznerpkg/metadata/provider_hetzner.go
ProviderMetaldatapkg/metadata/provider_metaldata.go
ProviderOpenstackpkg/metadata/provider_openstack.go
ProviderScalewaypkg/metadata/provider_scaleway.go
ProviderAWSpkg/metadata/provider_aws.go

Calls

no outgoing calls

Tested by

no test coverage detected