fakes

package
v1.3.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindingResolver

type BindingResolver struct {
	ResolveCall struct {
		CallCount int
		Receives  struct {
			Typ         string
			Provider    string
			PlatformDir string
		}
		Returns struct {
			BindingSlice []servicebindings.Binding
			Error        error
		}
		Stub func(string, string, string) ([]servicebindings.Binding, error)
		// contains filtered or unexported fields
	}
}

func (*BindingResolver) Resolve

func (f *BindingResolver) Resolve(param1 string, param2 string, param3 string) ([]servicebindings.Binding, error)

type BuildManager

type BuildManager struct {
	ResolveCall struct {
		CallCount int
		Receives  struct {
			WorkingDir string
		}
		Returns struct {
			BuildProcess npminstall.BuildProcess
			Bool         bool
			Error        error
		}
		Stub func(string) (npminstall.BuildProcess, bool, error)
		// contains filtered or unexported fields
	}
}

func (*BuildManager) Resolve

func (f *BuildManager) Resolve(param1 string) (npminstall.BuildProcess, bool, error)

type BuildProcess

type BuildProcess struct {
	RunCall struct {
		CallCount int
		Receives  struct {
			ModulesDir string
			CacheDir   string
			WorkingDir string
			NpmrcPath  string
			Launch     bool
		}
		Returns struct {
			Error error
		}
		Stub func(string, string, string, string, bool) error
		// contains filtered or unexported fields
	}
	ShouldRunCall struct {
		CallCount int
		Receives  struct {
			WorkingDir string
			Metadata   map[string]interface {
			}
			NpmrcPath string
		}
		Returns struct {
			Run bool
			Sha string
			Err error
		}
		Stub func(string, map[string]interface {
		}, string) (bool, string, error)
		// contains filtered or unexported fields
	}
}

func (*BuildProcess) Run

func (f *BuildProcess) Run(param1 string, param2 string, param3 string, param4 string, param5 bool) error

func (*BuildProcess) ShouldRun

func (f *BuildProcess) ShouldRun(param1 string, param2 map[string]interface {
}, param3 string) (bool, string, error)

type ConfigurationManager

type ConfigurationManager struct {
	DeterminePathCall struct {
		CallCount int
		Receives  struct {
			Typ         string
			PlatformDir string
			Entry       string
		}
		Returns struct {
			Path string
			Err  error
		}
		Stub func(string, string, string) (string, error)
		// contains filtered or unexported fields
	}
}

func (*ConfigurationManager) DeterminePath

func (f *ConfigurationManager) DeterminePath(param1 string, param2 string, param3 string) (string, error)

type EntryResolver

type EntryResolver struct {
	MergeLayerTypesCall struct {
		CallCount int
		Receives  struct {
			String                  string
			BuildpackPlanEntrySlice []packit.BuildpackPlanEntry
		}
		Returns struct {
			Launch bool
			Build  bool
		}
		Stub func(string, []packit.BuildpackPlanEntry) (bool, bool)
		// contains filtered or unexported fields
	}
}

func (*EntryResolver) MergeLayerTypes

func (f *EntryResolver) MergeLayerTypes(param1 string, param2 []packit.BuildpackPlanEntry) (bool, bool)

type EnvironmentConfig

type EnvironmentConfig struct {
	LookupCall struct {
		CallCount int
		Receives  struct {
			Key string
		}
		Returns struct {
			Value string
			Found bool
		}
		Stub func(string) (string, bool)
		// contains filtered or unexported fields
	}
	LookupBoolCall struct {
		CallCount int
		Receives  struct {
			Key string
		}
		Returns struct {
			Bool  bool
			Error error
		}
		Stub func(string) (bool, error)
		// contains filtered or unexported fields
	}
}

func (*EnvironmentConfig) Lookup

func (f *EnvironmentConfig) Lookup(param1 string) (string, bool)

func (*EnvironmentConfig) LookupBool

func (f *EnvironmentConfig) LookupBool(param1 string) (bool, error)

type Executable

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

func (*Executable) Execute

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

type PruneProcess

type PruneProcess struct {
	RunCall struct {
		CallCount int
		Receives  struct {
			ModulesDir string
			CacheDir   string
			WorkingDir string
			NpmrcPath  string
			Launch     bool
		}
		Returns struct {
			Error error
		}
		Stub func(string, string, string, string, bool) error
		// contains filtered or unexported fields
	}
	ShouldRunCall struct {
		CallCount int
		Receives  struct {
			WorkingDir string
			Metadata   map[string]interface {
			}
			NpmrcPath string
		}
		Returns struct {
			Run bool
			Sha string
			Err error
		}
		Stub func(string, map[string]interface {
		}, string) (bool, string, error)
		// contains filtered or unexported fields
	}
}

func (*PruneProcess) Run

func (f *PruneProcess) Run(param1 string, param2 string, param3 string, param4 string, param5 bool) error

func (*PruneProcess) ShouldRun

func (f *PruneProcess) ShouldRun(param1 string, param2 map[string]interface {
}, param3 string) (bool, string, error)

type SBOMGenerator

type SBOMGenerator struct {
	GenerateCall struct {
		CallCount int
		Receives  struct {
			Dir string
		}
		Returns struct {
			SBOM  sbom.SBOM
			Error error
		}
		Stub func(string) (sbom.SBOM, error)
		// contains filtered or unexported fields
	}
}

func (*SBOMGenerator) Generate

func (f *SBOMGenerator) Generate(param1 string) (sbom.SBOM, error)

type Summer

type Summer struct {
	SumCall struct {
		CallCount int
		Receives  struct {
			Paths []string
		}
		Returns struct {
			String string
			Error  error
		}
		Stub func(...string) (string, error)
		// contains filtered or unexported fields
	}
}

func (*Summer) Sum

func (f *Summer) Sum(param1 ...string) (string, error)

type SymlinkResolver

type SymlinkResolver struct {
	CopyCall struct {
		CallCount int
		Receives  struct {
			LockfilePath    string
			SourceLayerPath string
			TargetLayerPath string
		}
		Returns struct {
			Error error
		}
		Stub func(string, string, string) error
		// contains filtered or unexported fields
	}
	ParseLockfileCall struct {
		CallCount int
		Receives  struct {
			LockfilePath string
		}
		Returns struct {
			Lockfile npminstall.Lockfile
			Error    error
		}
		Stub func(string) (npminstall.Lockfile, error)
		// contains filtered or unexported fields
	}
	ResolveCall struct {
		CallCount int
		Receives  struct {
			LockfilePath string
			LayerPath    string
		}
		Returns struct {
			Error error
		}
		Stub func(string, string) error
		// contains filtered or unexported fields
	}
}

func (*SymlinkResolver) Copy

func (f *SymlinkResolver) Copy(param1 string, param2 string, param3 string) error

func (*SymlinkResolver) ParseLockfile

func (f *SymlinkResolver) ParseLockfile(param1 string) (npminstall.Lockfile, error)

func (*SymlinkResolver) Resolve

func (f *SymlinkResolver) Resolve(param1 string, param2 string) error

type Symlinker

type Symlinker struct {
	LinkCall struct {
		CallCount int
		Receives  struct {
			Source string
			Target string
		}
		Returns struct {
			Error error
		}
		Stub func(string, string) error
		// contains filtered or unexported fields
	}
	WithPathCall struct {
		CallCount int
		Receives  struct {
			Path string
		}
		Returns struct {
			Symlinker npminstall.Symlinker
		}
		Stub func(string) npminstall.Symlinker
		// contains filtered or unexported fields
	}
}
func (f *Symlinker) Link(param1 string, param2 string) error

func (*Symlinker) WithPath

func (f *Symlinker) WithPath(param1 string) npminstall.Symlinker

Jump to

Keyboard shortcuts

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