fakes

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheManager added in v0.0.12

type CacheManager struct {
	CloseCall struct {
		CallCount int
		Returns   struct {
			Error error
		}
		Stub func() error
		// contains filtered or unexported fields
	}
	DirCall struct {
		CallCount int
		Returns   struct {
			String string
		}
		Stub func() string
		// contains filtered or unexported fields
	}
	GetCall struct {
		CallCount int
		Receives  struct {
			Key string
		}
		Returns struct {
			CacheEntry freezer.CacheEntry
			Bool       bool
			Error      error
		}
		Stub func(string) (freezer.CacheEntry, bool, error)
		// contains filtered or unexported fields
	}
	OpenCall struct {
		CallCount int
		Returns   struct {
			Error error
		}
		Stub func() error
		// contains filtered or unexported fields
	}
	SetCall struct {
		CallCount int
		Receives  struct {
			Key         string
			CachedEntry freezer.CacheEntry
		}
		Returns struct {
			Error error
		}
		Stub func(string, freezer.CacheEntry) error
		// contains filtered or unexported fields
	}
}

func (*CacheManager) Close added in v0.0.12

func (f *CacheManager) Close() error

func (*CacheManager) Dir added in v0.0.12

func (f *CacheManager) Dir() string

func (*CacheManager) Get added in v0.0.12

func (f *CacheManager) Get(param1 string) (freezer.CacheEntry, bool, error)

func (*CacheManager) Open added in v0.0.12

func (f *CacheManager) Open() error

func (*CacheManager) Set added in v0.0.12

func (f *CacheManager) Set(param1 string, param2 freezer.CacheEntry) error

type DockerDaemonClient added in v0.18.0

type DockerDaemonClient struct {
	ImageInspectWithRawCall struct {
		CallCount int
		Receives  struct {
			Context context.Context
			String  string
		}
		Returns struct {
			ImageInspect types.ImageInspect
			ByteSlice    []byte
			Error        error
		}
		Stub func(context.Context, string) (types.ImageInspect, []byte, error)
		// contains filtered or unexported fields
	}
	ImageLoadCall struct {
		CallCount int
		Receives  struct {
			Context context.Context
			Reader  io.Reader
			Bool    bool
		}
		Returns struct {
			ImageLoadResponse types.ImageLoadResponse
			Error             error
		}
		Stub func(context.Context, io.Reader, bool) (types.ImageLoadResponse, error)
		// contains filtered or unexported fields
	}
	ImageSaveCall struct {
		CallCount int
		Receives  struct {
			Context     context.Context
			StringSlice []string
		}
		Returns struct {
			ReadCloser io.ReadCloser
			Error      error
		}
		Stub func(context.Context, []string) (io.ReadCloser, error)
		// contains filtered or unexported fields
	}
	ImageTagCall struct {
		CallCount int
		Receives  struct {
			Context  context.Context
			String_1 string
			String_2 string
		}
		Returns struct {
			Error error
		}
		Stub func(context.Context, string, string) error
		// contains filtered or unexported fields
	}
	NegotiateAPIVersionCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
		}
		Stub func(context.Context)
		// contains filtered or unexported fields
	}
}

func (*DockerDaemonClient) ImageInspectWithRaw added in v0.18.0

func (f *DockerDaemonClient) ImageInspectWithRaw(param1 context.Context, param2 string) (types.ImageInspect, []byte, error)

func (*DockerDaemonClient) ImageLoad added in v0.18.0

func (f *DockerDaemonClient) ImageLoad(param1 context.Context, param2 io.Reader, param3 bool) (types.ImageLoadResponse, error)

func (*DockerDaemonClient) ImageSave added in v0.18.0

func (f *DockerDaemonClient) ImageSave(param1 context.Context, param2 []string) (io.ReadCloser, error)

func (*DockerDaemonClient) ImageTag added in v0.18.0

func (f *DockerDaemonClient) ImageTag(param1 context.Context, param2 string, param3 string) error

func (*DockerDaemonClient) NegotiateAPIVersion added in v0.18.0

func (f *DockerDaemonClient) NegotiateAPIVersion(param1 context.Context)

type DockerImageInspectClient

type DockerImageInspectClient struct {
	ExecuteCall struct {
		CallCount int
		Receives  struct {
			Ref string
		}
		Returns struct {
			Image occam.Image
			Error error
		}
		Stub func(string) (occam.Image, error)
		// contains filtered or unexported fields
	}
}

func (*DockerImageInspectClient) Execute

func (f *DockerImageInspectClient) Execute(param1 string) (occam.Image, error)

type Executable

type Executable struct {
	ExecuteCall struct {
		CallCount int
		Receives  struct {
			Execution pexec.Execution
		}
		Returns struct {
			Error error
		}
		Stub func(pexec.Execution) error
		// contains filtered or unexported fields
	}
}

func (*Executable) Execute

func (f *Executable) Execute(param1 pexec.Execution) error

type LocalFetcher added in v0.0.12

type LocalFetcher struct {
	GetCall struct {
		CallCount int
		Receives  struct {
			LocalBuildpack freezer.LocalBuildpack
		}
		Returns struct {
			String string
			Error  error
		}
		Stub func(freezer.LocalBuildpack) (string, error)
		// contains filtered or unexported fields
	}
	WithPackagerCall struct {
		CallCount int
		Receives  struct {
			Packager freezer.Packager
		}
		Returns struct {
			LocalFetcher freezer.LocalFetcher
		}
		Stub func(freezer.Packager) freezer.LocalFetcher
		// contains filtered or unexported fields
	}
}

func (*LocalFetcher) Get added in v0.0.12

func (f *LocalFetcher) Get(param1 freezer.LocalBuildpack) (string, error)

func (*LocalFetcher) WithPackager added in v0.2.0

func (f *LocalFetcher) WithPackager(param1 freezer.Packager) freezer.LocalFetcher

type RemoteFetcher added in v0.0.12

type RemoteFetcher struct {
	GetCall struct {
		CallCount int
		Receives  struct {
			RemoteBuildpack freezer.RemoteBuildpack
		}
		Returns struct {
			String string
			Error  error
		}
		Stub func(freezer.RemoteBuildpack) (string, error)
		// contains filtered or unexported fields
	}
	WithPackagerCall struct {
		CallCount int
		Receives  struct {
			Packager freezer.Packager
		}
		Returns struct {
			RemoteFetcher freezer.RemoteFetcher
		}
		Stub func(freezer.Packager) freezer.RemoteFetcher
		// contains filtered or unexported fields
	}
}

func (*RemoteFetcher) Get added in v0.0.12

func (f *RemoteFetcher) Get(param1 freezer.RemoteBuildpack) (string, error)

func (*RemoteFetcher) WithPackager added in v0.2.0

func (f *RemoteFetcher) WithPackager(param1 freezer.Packager) freezer.RemoteFetcher

Jump to

Keyboard shortcuts

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