leftovers: github.com/genevievelesperance/leftovers/openstack/fakes Index | Files

package fakes

import "github.com/genevievelesperance/leftovers/openstack/fakes"

Index

Package Files

compute_client.go compute_instance_api.go image_api.go image_service_client.go logger.go page.go volumes_api.go volumes_client.go

type ComputeClient Uses

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 Uses

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

func (*ComputeClient) List Uses

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

type ComputeInstanceAPI Uses

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 Uses

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

func (*ComputeInstanceAPI) GetComputeInstancePager Uses

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

func (*ComputeInstanceAPI) PageToServers Uses

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

func (*ComputeInstanceAPI) PagerToPage Uses

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

type ImageAPI Uses

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 Uses

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

func (*ImageAPI) GetImagesPager Uses

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

func (*ImageAPI) PageToImages Uses

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

func (*ImageAPI) PagerToPage Uses

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

type ImageServiceClient Uses

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 Uses

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

func (*ImageServiceClient) List Uses

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

type Logger Uses

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 Uses

func (f *Logger) Debugln(param1 string)

func (*Logger) NoConfirm Uses

func (f *Logger) NoConfirm()

func (*Logger) Printf Uses

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

func (*Logger) Println Uses

func (f *Logger) Println(param1 string)

func (*Logger) PromptWithDetails Uses

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

type Page Uses

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 Uses

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

func (*Page) IsEmpty Uses

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

func (*Page) NextPageURL Uses

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

type VolumesAPI Uses

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 Uses

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

func (*VolumesAPI) GetVolumesPager Uses

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

func (*VolumesAPI) PageToVolumes Uses

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

func (*VolumesAPI) PagerToPage Uses

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

type VolumesClient Uses

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 Uses

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

func (*VolumesClient) List Uses

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

Package fakes imports 5 packages (graph). Updated 2019-11-19. Refresh now. Tools for package owners.