fakes

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComputeClient added in v0.57.0

type ComputeClient struct {
	DeleteCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			InstanceID string
		}
		Returns struct {
			Error error
		}
		Stub func(string) error
	}
	ListCall struct {
		sync.Mutex
		CallCount int
		Returns   struct {
			ServerSlice []servers.Server
			Error       error
		}
		Stub func() ([]servers.Server, error)
	}
}

func (*ComputeClient) Delete added in v0.57.0

func (f *ComputeClient) Delete(param1 string) error

func (*ComputeClient) List added in v0.57.0

func (f *ComputeClient) List() ([]servers.Server, error)

type ComputeInstanceAPI

type ComputeInstanceAPI struct {
	DeleteCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			InstanceID string
		}
		Returns struct {
			Error error
		}
		Stub func(string) error
	}
	GetComputeInstancePagerCall struct {
		sync.Mutex
		CallCount int
		Returns   struct {
			Pager pagination.Pager
		}
		Stub func() pagination.Pager
	}
	PageToServersCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Page pagination.Page
		}
		Returns struct {
			ServerSlice []servers.Server
			Error       error
		}
		Stub func(pagination.Page) ([]servers.Server, error)
	}
	PagerToPageCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Pager pagination.Pager
		}
		Returns struct {
			Page  pagination.Page
			Error error
		}
		Stub func(pagination.Pager) (pagination.Page, error)
	}
}

func (*ComputeInstanceAPI) Delete

func (f *ComputeInstanceAPI) Delete(param1 string) error

func (*ComputeInstanceAPI) GetComputeInstancePager

func (f *ComputeInstanceAPI) GetComputeInstancePager() pagination.Pager

func (*ComputeInstanceAPI) PageToServers

func (f *ComputeInstanceAPI) PageToServers(param1 pagination.Page) ([]servers.Server, error)

func (*ComputeInstanceAPI) PagerToPage

func (f *ComputeInstanceAPI) PagerToPage(param1 pagination.Pager) (pagination.Page, error)

type ImageAPI

type ImageAPI struct {
	DeleteCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			ImageID string
		}
		Returns struct {
			Error error
		}
		Stub func(string) error
	}
	GetImagesPagerCall struct {
		sync.Mutex
		CallCount int
		Returns   struct {
			Pager pagination.Pager
		}
		Stub func() pagination.Pager
	}
	PageToImagesCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Page pagination.Page
		}
		Returns struct {
			ImageSlice []images.Image
			Error      error
		}
		Stub func(pagination.Page) ([]images.Image, error)
	}
	PagerToPageCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Pager pagination.Pager
		}
		Returns struct {
			Page  pagination.Page
			Error error
		}
		Stub func(pagination.Pager) (pagination.Page, error)
	}
}

func (*ImageAPI) Delete

func (f *ImageAPI) Delete(param1 string) error

func (*ImageAPI) GetImagesPager

func (f *ImageAPI) GetImagesPager() pagination.Pager

func (*ImageAPI) PageToImages

func (f *ImageAPI) PageToImages(param1 pagination.Page) ([]images.Image, error)

func (*ImageAPI) PagerToPage

func (f *ImageAPI) PagerToPage(param1 pagination.Pager) (pagination.Page, error)

type ImageServiceClient added in v0.57.0

type ImageServiceClient struct {
	DeleteCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Id string
		}
		Returns struct {
			Error error
		}
		Stub func(string) error
	}
	ListCall struct {
		sync.Mutex
		CallCount int
		Returns   struct {
			ImageSlice []images.Image
			Error      error
		}
		Stub func() ([]images.Image, error)
	}
}

func (*ImageServiceClient) Delete added in v0.57.0

func (f *ImageServiceClient) Delete(param1 string) error

func (*ImageServiceClient) List added in v0.57.0

func (f *ImageServiceClient) List() ([]images.Image, error)

type Logger

type Logger struct {
	DebuglnCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Message string
		}
		Stub func(string)
	}
	NoConfirmCall struct {
		sync.Mutex
		CallCount int
		Stub      func()
	}
	PrintfCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Message string
			A       []interface {
			}
		}
		Stub func(string, ...interface {
		})
	}
	PrintlnCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Message string
		}
		Stub func(string)
	}
	PromptWithDetailsCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			ResourceType string
			ResourceName string
		}
		Returns struct {
			Bool bool
		}
		Stub func(string, string) bool
	}
}

func (*Logger) Debugln added in v0.57.0

func (f *Logger) Debugln(param1 string)

func (*Logger) NoConfirm

func (f *Logger) NoConfirm()

func (*Logger) Printf

func (f *Logger) Printf(param1 string, param2 ...interface {
})

func (*Logger) Println

func (f *Logger) Println(param1 string)

func (*Logger) PromptWithDetails

func (f *Logger) PromptWithDetails(param1 string, param2 string) bool

type Page

type Page struct {
	GetBodyCall struct {
		sync.Mutex
		CallCount int
		Returns   struct {
			Interface interface {
			}
		}
		Stub func() interface {
		}
	}
	IsEmptyCall struct {
		sync.Mutex
		CallCount int
		Returns   struct {
			Bool  bool
			Error error
		}
		Stub func() (bool, error)
	}
	NextPageURLCall struct {
		sync.Mutex
		CallCount int
		Returns   struct {
			String string
			Error  error
		}
		Stub func() (string, error)
	}
}

func (*Page) GetBody

func (f *Page) GetBody() interface {
}

func (*Page) IsEmpty

func (f *Page) IsEmpty() (bool, error)

func (*Page) NextPageURL

func (f *Page) NextPageURL() (string, error)

type VolumesAPI

type VolumesAPI struct {
	DeleteVolumeCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Id string
		}
		Returns struct {
			Error error
		}
		Stub func(string) error
	}
	GetVolumesPagerCall struct {
		sync.Mutex
		CallCount int
		Returns   struct {
			Pager pagination.Pager
		}
		Stub func() pagination.Pager
	}
	PageToVolumesCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Page pagination.Page
		}
		Returns struct {
			VolumeSlice []volumes.Volume
			Error       error
		}
		Stub func(pagination.Page) ([]volumes.Volume, error)
	}
	PagerToPageCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Pager pagination.Pager
		}
		Returns struct {
			Page  pagination.Page
			Error error
		}
		Stub func(pagination.Pager) (pagination.Page, error)
	}
}

func (*VolumesAPI) DeleteVolume

func (f *VolumesAPI) DeleteVolume(param1 string) error

func (*VolumesAPI) GetVolumesPager

func (f *VolumesAPI) GetVolumesPager() pagination.Pager

func (*VolumesAPI) PageToVolumes

func (f *VolumesAPI) PageToVolumes(param1 pagination.Page) ([]volumes.Volume, error)

func (*VolumesAPI) PagerToPage

func (f *VolumesAPI) PagerToPage(param1 pagination.Pager) (pagination.Page, error)

type VolumesClient

type VolumesClient struct {
	DeleteCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			VolumeID string
		}
		Returns struct {
			Error error
		}
		Stub func(string) error
	}
	ListCall struct {
		sync.Mutex
		CallCount int
		Returns   struct {
			VolumeSlice []volumes.Volume
			Error       error
		}
		Stub func() ([]volumes.Volume, error)
	}
}

func (*VolumesClient) Delete

func (f *VolumesClient) Delete(param1 string) error

func (*VolumesClient) List

func (f *VolumesClient) List() ([]volumes.Volume, error)

Jump to

Keyboard shortcuts

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