leftovers: github.com/genevievelesperance/leftovers/gcp/storage/fakes Index | Files

package fakes

import "github.com/genevievelesperance/leftovers/gcp/storage/fakes"

Index

Package Files

buckets_client.go logger.go

type BucketsClient Uses

type BucketsClient struct {
    DeleteBucketCall struct {
        sync.Mutex
        CallCount int
        Receives  struct {
            Bucket string
        }
        Returns struct {
            Error error
        }
        Stub func(string) error
    }
    DeleteObjectCall struct {
        sync.Mutex
        CallCount int
        Receives  struct {
            Bucket     string
            Object     string
            Generation int64
        }
        Returns struct {
            Error error
        }
        Stub func(string, string, int64) error
    }
    ListBucketsCall struct {
        sync.Mutex
        CallCount int
        Returns   struct {
            Buckets *gcpstorage.Buckets
            Error   error
        }
        Stub func() (*gcpstorage.Buckets, error)
    }
    ListObjectsCall struct {
        sync.Mutex
        CallCount int
        Receives  struct {
            Bucket string
        }
        Returns struct {
            Objects *gcpstorage.Objects
            Error   error
        }
        Stub func(string) (*gcpstorage.Objects, error)
    }
}

func (*BucketsClient) DeleteBucket Uses

func (f *BucketsClient) DeleteBucket(param1 string) error

func (*BucketsClient) DeleteObject Uses

func (f *BucketsClient) DeleteObject(param1 string, param2 string, param3 int64) error

func (*BucketsClient) ListBuckets Uses

func (f *BucketsClient) ListBuckets() (*gcpstorage.Buckets, error)

func (*BucketsClient) ListObjects Uses

func (f *BucketsClient) ListObjects(param1 string) (*gcpstorage.Objects, error)

type Logger Uses

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

func (*Logger) Debugln Uses

func (f *Logger) Debugln(param1 string)

func (*Logger) Printf Uses

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

func (*Logger) PromptWithDetails Uses

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

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