Documentation ¶
Index ¶
- func NewAwsInfrastructure(metadataService MetadataService, registry Registry, ...) awsInfrastructure
- func NewAwsMetadataServiceProvider(resolver DNSResolver) awsMetadataServiceProvider
- func NewAzureFileMetadataService(resolver DNSResolver, fs boshsys.FileSystem, walaLibPath string, ...) azureFileMetadataService
- func NewAzureInfrastructure(metadataService MetadataService, registry Registry, ...) azureInfrastructure
- func NewAzureMetadataServiceProvider(resolver DNSResolver, platform boshplatform.Platform, walaLibPath string, ...) azureMetadataServiceProvider
- func NewConfigDriveMetadataService(resolver DNSResolver, platform boshplatform.Platform, diskPaths []string, ...) *configDriveMetadataService
- func NewDummyInfrastructure(fs boshsys.FileSystem, dirProvider boshdir.Provider, ...) (inf dummyInfrastructure)
- func NewFileMetadataService(userDataFilePath string, metadataFilePath string, fs boshsys.FileSystem, ...) fileMetadataService
- func NewHTTPMetadataService(metadataHost string, resolver DNSResolver) httpMetadataService
- func NewHTTPRegistry(metadataService MetadataService, useServerNameAsID bool) httpRegistry
- func NewOpenstackInfrastructure(metadataService MetadataService, registry Registry, ...) openstackInfrastructure
- func NewOpenstackMetadataServiceProvider(resolver DNSResolver, platform boshplatform.Platform, ...) openstackServiceProvider
- func NewRegistryEndpointResolver(resolver DNSResolver) registryEndpointResolver
- func NewVsphereInfrastructure(platform boshplatform.Platform, ...) (inf vsphereInfrastructure)
- func NewWardenInfrastructure(platform boshplatform.Platform, ...) wardenInfrastructure
- type DNSResolver
- type DigDNSResolver
- type Infrastructure
- type MetadataContentsType
- type MetadataService
- type MetadataServiceOptions
- type MetadataServiceProvider
- type MultiSourceMetadataService
- func (ms *MultiSourceMetadataService) GetInstanceID() (string, error)
- func (ms *MultiSourceMetadataService) GetPublicKey() (string, error)
- func (ms *MultiSourceMetadataService) GetRegistryEndpoint() (string, error)
- func (ms *MultiSourceMetadataService) GetServerName() (string, error)
- func (ms *MultiSourceMetadataService) IsAvailable() bool
- type Provider
- type ProviderOptions
- type PublicKeyType
- type Registry
- type RegistryProvider
- type UserDataContentsType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAwsInfrastructure ¶
func NewAwsInfrastructure( metadataService MetadataService, registry Registry, platform boshplatform.Platform, devicePathResolver boshdpresolv.DevicePathResolver, logger boshlog.Logger, ) awsInfrastructure
func NewAwsMetadataServiceProvider ¶
func NewAwsMetadataServiceProvider(resolver DNSResolver) awsMetadataServiceProvider
func NewAzureFileMetadataService ¶
func NewAzureFileMetadataService( resolver DNSResolver, fs boshsys.FileSystem, walaLibPath string, logger boshlog.Logger, ) azureFileMetadataService
func NewAzureInfrastructure ¶
func NewAzureInfrastructure( metadataService MetadataService, registry Registry, platform boshplatform.Platform, devicePathResolver boshdpresolv.DevicePathResolver, logger boshlog.Logger, ) azureInfrastructure
func NewAzureMetadataServiceProvider ¶
func NewAzureMetadataServiceProvider( resolver DNSResolver, platform boshplatform.Platform, walaLibPath string, logger boshlog.Logger, ) azureMetadataServiceProvider
func NewConfigDriveMetadataService ¶
func NewConfigDriveMetadataService( resolver DNSResolver, platform boshplatform.Platform, diskPaths []string, metadataFilePath string, userdataFilePath string, logger boshlog.Logger, ) *configDriveMetadataService
func NewDummyInfrastructure ¶
func NewDummyInfrastructure( fs boshsys.FileSystem, dirProvider boshdir.Provider, platform boshplatform.Platform, devicePathResolver boshdpresolv.DevicePathResolver, ) (inf dummyInfrastructure)
func NewFileMetadataService ¶
func NewHTTPMetadataService ¶
func NewHTTPMetadataService( metadataHost string, resolver DNSResolver, ) httpMetadataService
func NewHTTPRegistry ¶
func NewHTTPRegistry( metadataService MetadataService, useServerNameAsID bool, ) httpRegistry
func NewOpenstackInfrastructure ¶
func NewOpenstackInfrastructure( metadataService MetadataService, registry Registry, platform boshplatform.Platform, devicePathResolver boshdpresolv.DevicePathResolver, logger boshlog.Logger, ) openstackInfrastructure
func NewOpenstackMetadataServiceProvider ¶
func NewOpenstackMetadataServiceProvider( resolver DNSResolver, platform boshplatform.Platform, options MetadataServiceOptions, logger boshlog.Logger, ) openstackServiceProvider
func NewRegistryEndpointResolver ¶
func NewRegistryEndpointResolver(resolver DNSResolver) registryEndpointResolver
func NewVsphereInfrastructure ¶
func NewVsphereInfrastructure( platform boshplatform.Platform, devicePathResolver boshdpresolv.DevicePathResolver, logger boshlog.Logger, ) (inf vsphereInfrastructure)
func NewWardenInfrastructure ¶
func NewWardenInfrastructure( platform boshplatform.Platform, devicePathResolver boshdpresolv.DevicePathResolver, registryProvider RegistryProvider, ) wardenInfrastructure
Types ¶
type DNSResolver ¶
type DigDNSResolver ¶
type DigDNSResolver struct {
// contains filtered or unexported fields
}
func NewDigDNSResolver ¶
func NewDigDNSResolver(runner boshsys.CmdRunner, logger boshlog.Logger) DigDNSResolver
func (DigDNSResolver) LookupHost ¶
func (res DigDNSResolver) LookupHost(dnsServers []string, host string) (string, error)
type Infrastructure ¶
type Infrastructure interface { SetupSSH(username string) (err error) GetSettings() (settings boshsettings.Settings, err error) SetupNetworking(networks boshsettings.Networks) (err error) GetEphemeralDiskPath(diskSettings boshsettings.DiskSettings) string GetDevicePathResolver() (devicePathResolver boshdpresolv.DevicePathResolver) }
type MetadataContentsType ¶
type MetadataContentsType struct { PublicKeys map[string]PublicKeyType `json:"public-keys"` InstanceID string `json:"instance-id"` }
type MetadataService ¶
type MetadataService interface { IsAvailable() bool GetPublicKey() (string, error) GetInstanceID() (string, error) GetServerName() (string, error) GetRegistryEndpoint() (string, error) }
func NewMultiSourceMetadataService ¶
func NewMultiSourceMetadataService(services ...MetadataService) MetadataService
type MetadataServiceOptions ¶
type MetadataServiceOptions struct {
UseConfigDrive bool
}
type MetadataServiceProvider ¶
type MetadataServiceProvider interface {
Get() MetadataService
}
type MultiSourceMetadataService ¶
type MultiSourceMetadataService struct { Services []MetadataService // contains filtered or unexported fields }
func (*MultiSourceMetadataService) GetInstanceID ¶
func (ms *MultiSourceMetadataService) GetInstanceID() (string, error)
func (*MultiSourceMetadataService) GetPublicKey ¶
func (ms *MultiSourceMetadataService) GetPublicKey() (string, error)
func (*MultiSourceMetadataService) GetRegistryEndpoint ¶
func (ms *MultiSourceMetadataService) GetRegistryEndpoint() (string, error)
func (*MultiSourceMetadataService) GetServerName ¶
func (ms *MultiSourceMetadataService) GetServerName() (string, error)
func (*MultiSourceMetadataService) IsAvailable ¶
func (ms *MultiSourceMetadataService) IsAvailable() bool
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider(logger boshlog.Logger, platform boshplatform.Platform, options ProviderOptions) (p Provider)
type ProviderOptions ¶
type ProviderOptions struct {
MetadataService MetadataServiceOptions
}
type PublicKeyType ¶
type Registry ¶
type Registry interface {
GetSettings() (boshsettings.Settings, error)
}
func NewAwsRegistry ¶
func NewAwsRegistry(metadataService MetadataService) Registry
func NewAzureRegistry ¶
func NewAzureRegistry(metadataService MetadataService) Registry
func NewFileRegistry ¶
func NewFileRegistry(registryFilePath string, fs boshsys.FileSystem) Registry
func NewOpenstackRegistry ¶
func NewOpenstackRegistry(metadataService MetadataService) Registry
type RegistryProvider ¶
type RegistryProvider interface {
GetRegistry() Registry
}
func NewRegistryProvider ¶
func NewRegistryProvider( metadataService MetadataService, fallbackFileRegistryPath string, fs boshsys.FileSystem, logger boshlog.Logger, ) RegistryProvider
type UserDataContentsType ¶
Source Files ¶
- aws_infrastructure.go
- aws_metadata_service_provider.go
- azure_file_metadata_service.go
- azure_infrastructure.go
- azure_metadata_service_provider.go
- config_drive_metadata_service.go
- dig_dns_resolver.go
- dns_resolver_interface.go
- dummy_infrastructure.go
- file_metadata_service.go
- file_registry.go
- http_metadata_service.go
- http_registry.go
- infrastructure_interface.go
- metadata_service_interface.go
- multi_source_metadata_service.go
- openstack_infrastructure.go
- openstack_metadata_service_provider.go
- provider.go
- registry_endpoint_resolver.go
- registry_interface.go
- registry_provider.go
- vsphere_infrastructure.go
- warden_infrastructure.go
Click to show internal directories.
Click to hide internal directories.