Documentation ¶
Index ¶
- func NewMultiSettingsSource(sources ...boshsettings.Source) (boshsettings.Source, error)
- type CDROMSettingsSource
- type CDROMSourceOptions
- type ConfigDriveSettingsSource
- type ConfigDriveSourceOptions
- type DNSResolver
- type DigDNSResolver
- type DynamicMetadataService
- type FileSettingsSource
- type FileSourceOptions
- type HTTPMetadataService
- func (ms HTTPMetadataService) GetInstanceID() (string, error)
- func (ms HTTPMetadataService) GetNetworks() (boshsettings.Networks, error)
- func (ms HTTPMetadataService) GetServerName() (string, error)
- func (ms HTTPMetadataService) GetValueAtPath(path string) (string, error)
- func (ms HTTPMetadataService) IsAvailable() bool
- func (ms HTTPMetadataService) Load() error
- func (ms HTTPMetadataService) PublicSSHKeyForUsername(s string) (string, error)
- func (ms HTTPMetadataService) Settings() (boshsettings.Settings, error)
- type HTTPSourceOptions
- type InstanceMetadataSettingsSource
- func NewInstanceMetadataSettingsSource(metadataHost string, metadataHeaders map[string]string, settingsPath string, ...) *InstanceMetadataSettingsSource
- func NewInstanceMetadataSettingsSourceWithoutRetryDelay(metadataHost string, metadataHeaders map[string]string, settingsPath string, ...) *InstanceMetadataSettingsSource
- type InstanceMetadataSourceOptions
- type MetadataContentsType
- type MetadataService
- type MetadataServiceOptions
- type MetadataServiceProvider
- type MultiSettingsSource
- type Options
- type PublicKeyType
- type SettingsOptions
- type SettingsSourceFactory
- type SourceOptions
- type SourceOptionsSlice
- type UserDataContentsType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMultiSettingsSource ¶
func NewMultiSettingsSource(sources ...boshsettings.Source) (boshsettings.Source, error)
Types ¶
type CDROMSettingsSource ¶
type CDROMSettingsSource struct {
// contains filtered or unexported fields
}
func NewCDROMSettingsSource ¶
func NewCDROMSettingsSource( settingsFileName string, platform boshplatform.Platform, logger boshlog.Logger, ) *CDROMSettingsSource
func (CDROMSettingsSource) PublicSSHKeyForUsername ¶
func (s CDROMSettingsSource) PublicSSHKeyForUsername(string) (string, error)
func (*CDROMSettingsSource) Settings ¶
func (s *CDROMSettingsSource) Settings() (boshsettings.Settings, error)
type CDROMSourceOptions ¶
type CDROMSourceOptions struct {
FileName string
}
type ConfigDriveSettingsSource ¶
type ConfigDriveSettingsSource struct {
// contains filtered or unexported fields
}
func NewConfigDriveSettingsSource ¶
func NewConfigDriveSettingsSource( diskPaths []string, metadataPath string, settingsPath string, platform boshplatform.Platform, logger boshlog.Logger, ) *ConfigDriveSettingsSource
func (*ConfigDriveSettingsSource) PublicSSHKeyForUsername ¶
func (s *ConfigDriveSettingsSource) PublicSSHKeyForUsername(string) (string, error)
func (*ConfigDriveSettingsSource) Settings ¶
func (s *ConfigDriveSettingsSource) Settings() (boshsettings.Settings, error)
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 DynamicMetadataService ¶
type DynamicMetadataService interface { MetadataService GetValueAtPath(string) (string, error) }
type FileSettingsSource ¶
type FileSettingsSource struct {
// contains filtered or unexported fields
}
func NewFileSettingsSource ¶
func NewFileSettingsSource( settingsFilePath string, fs boshsys.FileSystem, logger boshlog.Logger, ) *FileSettingsSource
func (*FileSettingsSource) PublicSSHKeyForUsername ¶
func (s *FileSettingsSource) PublicSSHKeyForUsername(string) (string, error)
func (*FileSettingsSource) Settings ¶
func (s *FileSettingsSource) Settings() (boshsettings.Settings, error)
type FileSourceOptions ¶
type HTTPMetadataService ¶
type HTTPMetadataService struct {
// contains filtered or unexported fields
}
func NewHTTPMetadataService ¶
func (HTTPMetadataService) GetInstanceID ¶
func (ms HTTPMetadataService) GetInstanceID() (string, error)
func (HTTPMetadataService) GetNetworks ¶
func (ms HTTPMetadataService) GetNetworks() (boshsettings.Networks, error)
func (HTTPMetadataService) GetServerName ¶
func (ms HTTPMetadataService) GetServerName() (string, error)
func (HTTPMetadataService) GetValueAtPath ¶
func (ms HTTPMetadataService) GetValueAtPath(path string) (string, error)
func (HTTPMetadataService) IsAvailable ¶
func (ms HTTPMetadataService) IsAvailable() bool
func (HTTPMetadataService) Load ¶
func (ms HTTPMetadataService) Load() error
func (HTTPMetadataService) PublicSSHKeyForUsername ¶
func (ms HTTPMetadataService) PublicSSHKeyForUsername(s string) (string, error)
func (HTTPMetadataService) Settings ¶
func (ms HTTPMetadataService) Settings() (boshsettings.Settings, error)
type HTTPSourceOptions ¶
type InstanceMetadataSettingsSource ¶
type InstanceMetadataSettingsSource struct {
// contains filtered or unexported fields
}
func NewInstanceMetadataSettingsSource ¶
func NewInstanceMetadataSettingsSource( metadataHost string, metadataHeaders map[string]string, settingsPath string, platform boshplatform.Platform, logger boshlog.Logger, ) *InstanceMetadataSettingsSource
func NewInstanceMetadataSettingsSourceWithoutRetryDelay ¶
func NewInstanceMetadataSettingsSourceWithoutRetryDelay( metadataHost string, metadataHeaders map[string]string, settingsPath string, platform boshplatform.Platform, logger boshlog.Logger, ) *InstanceMetadataSettingsSource
func (InstanceMetadataSettingsSource) PublicSSHKeyForUsername ¶
func (s InstanceMetadataSettingsSource) PublicSSHKeyForUsername(string) (string, error)
func (*InstanceMetadataSettingsSource) Settings ¶
func (s *InstanceMetadataSettingsSource) Settings() (boshsettings.Settings, error)
type MetadataContentsType ¶
type MetadataContentsType struct { PublicKeys map[string]PublicKeyType `json:"public-keys"` InstanceID string `json:"instance-id"` // todo remove }
type MetadataService ¶
type MetadataServiceOptions ¶
type MetadataServiceOptions struct {
UseConfigDrive bool
}
type MetadataServiceProvider ¶
type MetadataServiceProvider interface {
Get() MetadataService
}
type MultiSettingsSource ¶
type MultiSettingsSource struct {
// contains filtered or unexported fields
}
func (*MultiSettingsSource) GetSources ¶
func (s *MultiSettingsSource) GetSources() []boshsettings.Source
func (*MultiSettingsSource) PublicSSHKeyForUsername ¶
func (s *MultiSettingsSource) PublicSSHKeyForUsername(username string) (string, error)
func (*MultiSettingsSource) Settings ¶
func (s *MultiSettingsSource) Settings() (boshsettings.Settings, error)
type Options ¶
type Options struct {
Settings SettingsOptions
}
type PublicKeyType ¶
type SettingsOptions ¶
type SettingsOptions struct {
Sources SourceOptionsSlice
}
type SettingsSourceFactory ¶
type SettingsSourceFactory struct {
// contains filtered or unexported fields
}
func NewSettingsSourceFactory ¶
func NewSettingsSourceFactory( options SettingsOptions, platform boshplat.Platform, logger boshlog.Logger, ) SettingsSourceFactory
func (SettingsSourceFactory) New ¶
func (f SettingsSourceFactory) New() (boshsettings.Source, error)
type SourceOptions ¶
type SourceOptions interface {
// contains filtered or unexported methods
}
type SourceOptionsSlice ¶
type SourceOptionsSlice []SourceOptions
SourceOptionsSlice is used for unmarshalling different source types
func (*SourceOptionsSlice) UnmarshalJSON ¶
func (s *SourceOptionsSlice) UnmarshalJSON(data []byte) error
type UserDataContentsType ¶
type UserDataContentsType struct { boshsettings.Settings Registry struct { Endpoint string } Server struct { Name string // Name given by CPI e.g. vm-384sd4-r7re9e... } DNS struct { Nameserver []string } }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.