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

package fakes

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

Index

Package Files

instances_client.go logger.go

type InstancesClient Uses

type InstancesClient struct {
    DeleteInstanceCall struct {
        sync.Mutex
        CallCount int
        Receives  struct {
            User string
        }
        Returns struct {
            Error error
        }
        Stub func(string) error
    }
    ListInstancesCall struct {
        sync.Mutex
        CallCount int
        Returns   struct {
            InstancesListResponse *gcpsql.InstancesListResponse
            Error                 error
        }
        Stub func() (*gcpsql.InstancesListResponse, error)
    }
}

func (*InstancesClient) DeleteInstance Uses

func (f *InstancesClient) DeleteInstance(param1 string) error

func (*InstancesClient) ListInstances Uses

func (f *InstancesClient) ListInstances() (*gcpsql.InstancesListResponse, 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-17. Refresh now. Tools for package owners.