fakes

package
v0.0.59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDNSRecord

type FakeDNSRecord struct {
	DNSServers []string
	Host       string
	IP         string
}

type FakeDNSResolver

type FakeDNSResolver struct {
	LookupHostErr error
	// contains filtered or unexported fields
}

func (*FakeDNSResolver) LookupHost

func (res *FakeDNSResolver) LookupHost(dnsServers []string, host string) (string, error)

func (*FakeDNSResolver) RegisterRecord

func (res *FakeDNSResolver) RegisterRecord(record FakeDNSRecord)

type FakeMetadataService

type FakeMetadataService struct {
	LoadErr error

	PublicKey       string
	GetPublicKeyErr error

	InstanceID       string
	GetInstanceIDErr error

	ServerName       string
	GetServerNameErr error

	RegistryEndpoint       string
	GetRegistryEndpointErr error

	Networks    boshsettings.Networks
	NetworksErr error

	Available bool
}

func (FakeMetadataService) GetInstanceID

func (ms FakeMetadataService) GetInstanceID() (string, error)

func (FakeMetadataService) GetNetworks

func (ms FakeMetadataService) GetNetworks() (boshsettings.Networks, error)

func (FakeMetadataService) GetPublicKey

func (ms FakeMetadataService) GetPublicKey() (string, error)

func (FakeMetadataService) GetRegistryEndpoint

func (ms FakeMetadataService) GetRegistryEndpoint() (string, error)

func (FakeMetadataService) GetServerName

func (ms FakeMetadataService) GetServerName() (string, error)

func (FakeMetadataService) IsAvailable

func (ms FakeMetadataService) IsAvailable() bool

func (FakeMetadataService) Load

func (ms FakeMetadataService) Load() error

type FakeRegistry

type FakeRegistry struct {
	Settings       boshsettings.Settings
	GetSettingsErr error
}

func (*FakeRegistry) GetSettings

func (r *FakeRegistry) GetSettings() (boshsettings.Settings, error)

type FakeRegistryProvider

type FakeRegistryProvider struct {
	GetRegistryRegistry boshinf.Registry
	GetRegistryErr      error
}

func (*FakeRegistryProvider) GetRegistry

func (p *FakeRegistryProvider) GetRegistry() (boshinf.Registry, error)

type FakeSettingsSource

type FakeSettingsSource struct {
	PublicKey    string
	PublicKeyErr error

	SettingsValue boshsettings.Settings
	SettingsErr   error
}

func (FakeSettingsSource) PublicSSHKeyForUsername

func (s FakeSettingsSource) PublicSSHKeyForUsername(string) (string, error)

func (FakeSettingsSource) Settings

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL