Documentation ¶
Index ¶
- type Client
- type Wrapper
- func (_m *Wrapper) InsertInstance(project string, zone string, instance *compute.Instance) (*compute.Operation, error)
- func (_m *Wrapper) ListInstanceTemplates(project string) (*compute.InstanceTemplateList, error)
- func (_m *Wrapper) ListMachineTypes(project string, zone string) (*compute.MachineTypeList, error)
- func (wpr *Wrapper) SetupMockInstanceTemplates()
- func (wpr *Wrapper) SetupMockMachineTypes()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func (*Client) SetupDefaultMockTemplates ¶
func (c *Client) SetupDefaultMockTemplates()
SetupDefaultMockTemplates is a helper which sets up the mocked Client.Templates()
func (*Client) SetupEmptyMockTemplates ¶
func (c *Client) SetupEmptyMockTemplates()
SetupEmptyMockTemplates sets the mock to return an empty slice from Client.Templates()
func (*Client) SetupMockTemplates ¶
SetupMockTemplates sets the template returned by Client.Templates(). The template will have the given resources.
type Wrapper ¶
Wrapper is an autogenerated mock type for the Wrapper type
func (*Wrapper) InsertInstance ¶
func (_m *Wrapper) InsertInstance(project string, zone string, instance *compute.Instance) (*compute.Operation, error)
InsertInstance provides a mock function with given fields: project, zone, instance
func (*Wrapper) ListInstanceTemplates ¶
func (_m *Wrapper) ListInstanceTemplates(project string) (*compute.InstanceTemplateList, error)
ListInstanceTemplates provides a mock function with given fields: project
func (*Wrapper) ListMachineTypes ¶
ListMachineTypes provides a mock function with given fields: project, zone
func (*Wrapper) SetupMockInstanceTemplates ¶
func (wpr *Wrapper) SetupMockInstanceTemplates()
SetupMockInstanceTemplates is a helper which helps set up the wrapper mock to return a common instance template list.
func (*Wrapper) SetupMockMachineTypes ¶
func (wpr *Wrapper) SetupMockMachineTypes()
SetupMockMachineTypes is a helper to set up the wrapper mock to return the a common machine type list from Wrapper.ListMachineTypes()