vsphere

package
v1.37.9 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetZonesDatastores() (*Output, error)
}

func NewClient

func NewClient(config *ProviderClusterConfiguration) (Client, error)

type ClientMock

type ClientMock struct {
	GetZonesDatastoresMock mClientMockGetZonesDatastores
	// contains filtered or unexported fields
}

ClientMock implements Client

func NewClientMock

func NewClientMock(t minimock.Tester) *ClientMock

NewClientMock returns a mock for Client

func (*ClientMock) GetZonesDatastores

func (mmGetZonesDatastores *ClientMock) GetZonesDatastores() (op1 *Output, err error)

GetZonesDatastores implements Client

func (*ClientMock) GetZonesDatastoresAfterCounter

func (mmGetZonesDatastores *ClientMock) GetZonesDatastoresAfterCounter() uint64

GetZonesDatastoresAfterCounter returns a count of finished ClientMock.GetZonesDatastores invocations

func (*ClientMock) GetZonesDatastoresBeforeCounter

func (mmGetZonesDatastores *ClientMock) GetZonesDatastoresBeforeCounter() uint64

GetZonesDatastoresBeforeCounter returns a count of ClientMock.GetZonesDatastores invocations

func (*ClientMock) MinimockFinish

func (m *ClientMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*ClientMock) MinimockGetZonesDatastoresDone

func (m *ClientMock) MinimockGetZonesDatastoresDone() bool

MinimockGetZonesDatastoresDone returns true if the count of the GetZonesDatastores invocations corresponds the number of defined expectations

func (*ClientMock) MinimockGetZonesDatastoresInspect

func (m *ClientMock) MinimockGetZonesDatastoresInspect()

MinimockGetZonesDatastoresInspect logs each unmet expectation

func (*ClientMock) MinimockWait

func (m *ClientMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

type ClientMockGetZonesDatastoresExpectation

type ClientMockGetZonesDatastoresExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ClientMockGetZonesDatastoresExpectation specifies expectation struct of the Client.GetZonesDatastores

type ClientMockGetZonesDatastoresResults

type ClientMockGetZonesDatastoresResults struct {
	// contains filtered or unexported fields
}

ClientMockGetZonesDatastoresResults contains results of the Client.GetZonesDatastores

type Output

type Output struct {
	Datacenter      string           `json:"datacenter"`
	Zones           []string         `json:"zones"`
	ZonedDataStores []ZonedDataStore `json:"datastores"`
}

type Provider

type Provider struct {
	Server   string `json:"server"`
	Username string `json:"username"`
	Password string `json:"password"`
	Insecure bool   `json:"insecure"`
}

type ProviderClusterConfiguration

type ProviderClusterConfiguration struct {
	Provider          Provider `json:"provider"`
	Region            string   `json:"region"`
	RegionTagCategory string   `json:"regionTagCategory"`
	ZoneTagCategory   string   `json:"zoneTagCategory"`
}

type ZonedDataStore

type ZonedDataStore struct {
	Zones         []string `json:"zones"`
	InventoryPath string   `json:"path"`
	Name          string   `json:"name"`
	DatastoreType string   `json:"datastoreType"`
	DatastoreURL  string   `json:"datastoreURL"`
}

Jump to

Keyboard shortcuts

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