fakes

package
v0.0.0-...-c0a5b86 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 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 Bucket

type Bucket struct {
	ObjectsCall struct {
		Returns struct {
			Objects []storage.Object
			Error   error
		}
	}
	DeleteCall struct {
		Returns struct {
			Error error
		}
	}
}

func (*Bucket) Delete

func (b *Bucket) Delete() error

func (*Bucket) GetAllObjects

func (b *Bucket) GetAllObjects() ([]storage.Object, error)

type CommandRunner

type CommandRunner struct {
	RunCall struct {
		CallCount int
		Receives  struct {
			Command string
			Args    []string
		}
		Returns struct {
			Error error
		}
	}
}

func (*CommandRunner) Run

func (c *CommandRunner) Run(command string, args []string) error

type Object

type Object struct {
	VersionCall struct {
		Returns struct {
			Version storage.Version
			Error   error
		}
	}

	NewReaderCall struct {
		CallCount int
		Returns   struct {
			ReadCloser io.ReadCloser
			Error      error
		}
	}

	NewWriterCall struct {
		CallCount int
		Returns   struct {
			WriteCloser io.WriteCloser
		}
	}
}

func (*Object) NewReader

func (g *Object) NewReader() (io.ReadCloser, error)

func (*Object) NewWriter

func (g *Object) NewWriter() io.WriteCloser

func (*Object) Version

func (g *Object) Version() (storage.Version, error)

type ReadCloser

type ReadCloser struct {
	ReadCall struct {
		Receives struct {
			Buffer []byte
		}
		Returns struct {
			BytesRead int
			Error     error
		}
	}

	CloseCall struct {
		CallCount int
		Returns   struct {
			Error error
		}
	}
}

func (*ReadCloser) Close

func (r *ReadCloser) Close() error

func (*ReadCloser) Read

func (r *ReadCloser) Read(p []byte) (n int, err error)

type StateDir

type StateDir struct {
	ReadCall struct {
		CallCount int
		Returns   struct {
			BblState outrunner.BblState
			Error    error
		}
	}

	JumpboxSSHKeyCall struct {
		CallCount int
		Returns   struct {
			Key   string
			Error error
		}
	}

	PathCall struct {
		CallCount int
		Returns   struct {
			Path string
		}
	}

	WriteInteropFilesCall struct {
		CallCount int
		Receives  struct {
			Config outrunner.BoshDeploymentResourceConfig
			Name   string
		}
		Returns struct {
			Error error
		}
	}

	ExpungeInteropFilesCall struct {
		CallCount int
		Returns   struct {
			Error error
		}
	}
}

func (*StateDir) ExpungeInteropFiles

func (s *StateDir) ExpungeInteropFiles() error

func (*StateDir) JumpboxSSHKey

func (s *StateDir) JumpboxSSHKey() (string, error)

func (*StateDir) Path

func (s *StateDir) Path() string

func (*StateDir) Read

func (s *StateDir) Read() (outrunner.BblState, error)

func (*StateDir) WriteInteropFiles

func (s *StateDir) WriteInteropFiles(name string, c outrunner.BoshDeploymentResourceConfig) error

type Tarrer

type Tarrer struct {
	ArchiveCall struct {
		CallCount int
		Receives  struct {
			Output io.Writer
			Files  []archiver.File
		}
		Returns struct {
			Error error
		}
	}

	ExtractCall struct {
		CallCount int
		Receives  struct {
			SourceArchive  io.Reader
			PathsInArchive []string
			HandleFile     archiver.FileHandler
		}
		Returns struct {
			Error error
		}
	}
}

func (*Tarrer) Archive

func (t *Tarrer) Archive(ctx context.Context, output io.Writer, files []archiver.File) error

func (*Tarrer) Extract

func (t *Tarrer) Extract(ctx context.Context, sourceArchive io.Reader, pathsInArchive []string, handleFile archiver.FileHandler) error

type WriteCloser

type WriteCloser struct {
	WriteCall struct {
		Receives struct {
			Contents []byte
		}
		Returns struct {
			BytesWritten int
			Error        error
		}
	}

	CloseCall struct {
		CallCount int
		Returns   struct {
			Error error
		}
	}
}

func (*WriteCloser) Close

func (r *WriteCloser) Close() error

func (*WriteCloser) Write

func (r *WriteCloser) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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