fakes

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketsClient

type BucketsClient struct {
	ListBucketsCall struct {
		CallCount int
		Returns   struct {
			Output *gcpstorage.Buckets
			Error  error
		}
	}

	DeleteBucketCall struct {
		CallCount int
		Receives  struct {
			Bucket string
		}
		Returns struct {
			Error error
		}
	}

	ListObjectsCall struct {
		CallCount int
		Receives  struct {
			Bucket string
		}
		Returns struct {
			Objects *gcpstorage.Objects
			Error   error
		}
	}

	DeleteObjectCall struct {
		CallCount int
		Receives  struct {
			Bucket     string
			Object     string
			Generation int64
		}
		Returns struct {
			Error error
		}
	}
}

func (*BucketsClient) DeleteBucket

func (u *BucketsClient) DeleteBucket(bucket string) error

func (*BucketsClient) DeleteObject added in v0.32.0

func (b *BucketsClient) DeleteObject(bucket, object string, generation int64) error

func (*BucketsClient) ListBuckets

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

func (*BucketsClient) ListObjects added in v0.32.0

func (b *BucketsClient) ListObjects(bucket string) (*gcpstorage.Objects, error)

type Logger

type Logger struct {
	PrintfCall struct {
		Receives struct {
			Message   string
			Arguments []interface{}
		}
		Messages []string
	}

	PromptWithDetailsCall struct {
		CallCount int
		Receives  struct {
			Type string
			Name string
		}
		Returns struct {
			Proceed bool
		}
	}
}

func (*Logger) Printf

func (l *Logger) Printf(message string, a ...interface{})

func (*Logger) PromptWithDetails

func (l *Logger) PromptWithDetails(resourceType, resourceName string) bool

Jump to

Keyboard shortcuts

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