Documentation ¶
Index ¶
- Variables
- func NewRecipeFile(recipeFileString string) (*types.OpenInstallationRecipe, error)
- type LocalRecipeFetcher
- type MockProcessFilterer
- type MockRecipeFetcher
- type MockRecipeFileFetcher
- type NerdGraphClient
- type ProcessMatchFinder
- type ProcessMatchRecipeFilterer
- type RecipeFetcher
- type RecipeFileFetcher
- type RecipeFilterRunner
- type RecipeFilterer
- type RecipeRepository
- type RegexProcessMatchFinder
- type ScriptEvaluationRecipeFilterer
- type ServiceRecipeFetcher
- type SkipFilterer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRecipeNotFound = errors.New("recipe not found")
ErrRecipeNotFound is used when a recipe is requested by name, but does not exist for the given constraint.
Functions ¶
func NewRecipeFile ¶
func NewRecipeFile(recipeFileString string) (*types.OpenInstallationRecipe, error)
Types ¶
type LocalRecipeFetcher ¶ added in v0.24.0
type LocalRecipeFetcher struct {
Path string
}
func (*LocalRecipeFetcher) FetchRecipes ¶ added in v0.24.0
func (f *LocalRecipeFetcher) FetchRecipes(ctx context.Context) ([]types.OpenInstallationRecipe, error)
type MockProcessFilterer ¶ added in v0.28.0
type MockProcessFilterer struct { FilterVal []types.MatchedProcess FilterCallCount int }
func NewMockProcessFilterer ¶ added in v0.28.0
func NewMockProcessFilterer() *MockProcessFilterer
func (*MockProcessFilterer) Filter ¶ added in v0.28.0
func (f *MockProcessFilterer) Filter(context.Context, []types.GenericProcess, []types.OpenInstallationRecipe) []types.MatchedProcess
type MockRecipeFetcher ¶
type MockRecipeFetcher struct { FetchRecipesErr error FetchRecipesCallCount int FetchRecipesVal []types.OpenInstallationRecipe }
func NewMockRecipeFetcher ¶
func NewMockRecipeFetcher() *MockRecipeFetcher
func (*MockRecipeFetcher) FetchRecipes ¶
func (f *MockRecipeFetcher) FetchRecipes(ctx context.Context) ([]types.OpenInstallationRecipe, error)
type MockRecipeFileFetcher ¶
type MockRecipeFileFetcher struct { FetchRecipeFileFunc func(*url.URL) (*types.OpenInstallationRecipe, error) LoadRecipeFileFunc func(string) (*types.OpenInstallationRecipe, error) }
func NewMockRecipeFileFetcher ¶
func NewMockRecipeFileFetcher() *MockRecipeFileFetcher
func (*MockRecipeFileFetcher) FetchRecipeFile ¶
func (f *MockRecipeFileFetcher) FetchRecipeFile(url *url.URL) (*types.OpenInstallationRecipe, error)
func (*MockRecipeFileFetcher) LoadRecipeFile ¶
func (f *MockRecipeFileFetcher) LoadRecipeFile(filename string) (*types.OpenInstallationRecipe, error)
type NerdGraphClient ¶
type ProcessMatchFinder ¶ added in v0.28.0
type ProcessMatchFinder interface { FindMatchesMultiple(context.Context, []types.GenericProcess, []types.OpenInstallationRecipe) ([]types.MatchedProcess, error) FindMatches(context.Context, []types.GenericProcess, types.OpenInstallationRecipe) ([]types.MatchedProcess, error) }
type ProcessMatchRecipeFilterer ¶ added in v0.28.0
type ProcessMatchRecipeFilterer struct {
// contains filtered or unexported fields
}
func NewProcessMatchRecipeFilterer ¶ added in v0.28.0
func NewProcessMatchRecipeFilterer() *ProcessMatchRecipeFilterer
func (*ProcessMatchRecipeFilterer) Filter ¶ added in v0.28.0
func (f *ProcessMatchRecipeFilterer) Filter(ctx context.Context, r *types.OpenInstallationRecipe, m *types.DiscoveryManifest) bool
type RecipeFetcher ¶
type RecipeFetcher interface {
FetchRecipes(context.Context) ([]types.OpenInstallationRecipe, error)
}
RecipeFetcher is responsible for retrieving recipe information.
func NewServiceRecipeFetcher ¶
func NewServiceRecipeFetcher(client NerdGraphClient) RecipeFetcher
NewServiceRecipeFetcher returns a new instance of ServiceRecipeFetcher.
type RecipeFileFetcher ¶
type RecipeFileFetcher struct { HTTPGetFunc func(string) (*http.Response, error) // contains filtered or unexported fields }
func NewRecipeFileFetcher ¶
func NewRecipeFileFetcher() *RecipeFileFetcher
func (*RecipeFileFetcher) FetchRecipeFile ¶
func (f *RecipeFileFetcher) FetchRecipeFile(recipeURL *url.URL) (*types.OpenInstallationRecipe, error)
func (*RecipeFileFetcher) LoadRecipeFile ¶
func (f *RecipeFileFetcher) LoadRecipeFile(filename string) (*types.OpenInstallationRecipe, error)
type RecipeFilterRunner ¶ added in v0.28.0
type RecipeFilterRunner struct {
// contains filtered or unexported fields
}
func NewRecipeFilterRunner ¶ added in v0.28.0
func NewRecipeFilterRunner(ic types.InstallerContext, s *execution.InstallStatus) *RecipeFilterRunner
func (*RecipeFilterRunner) RunFilter ¶ added in v0.28.0
func (rf *RecipeFilterRunner) RunFilter(ctx context.Context, r *types.OpenInstallationRecipe, m *types.DiscoveryManifest) bool
func (*RecipeFilterRunner) RunFilterMultiple ¶ added in v0.28.0
func (rf *RecipeFilterRunner) RunFilterMultiple(ctx context.Context, r []types.OpenInstallationRecipe, m *types.DiscoveryManifest) []types.OpenInstallationRecipe
type RecipeFilterer ¶ added in v0.28.0
type RecipeFilterer interface {
Filter(context.Context, *types.OpenInstallationRecipe, *types.DiscoveryManifest) bool
}
type RecipeRepository ¶ added in v0.28.0
type RecipeRepository struct { RecipeLoaderFunc func() ([]types.OpenInstallationRecipe, error) // contains filtered or unexported fields }
func NewRecipeRepository ¶ added in v0.28.0
func NewRecipeRepository(loaderFunc func() ([]types.OpenInstallationRecipe, error)) *RecipeRepository
NewRecipeRepository returns a new instance of types.RecipeRepository.
func (*RecipeRepository) FindAll ¶ added in v0.28.0
func (rf *RecipeRepository) FindAll(m types.DiscoveryManifest) ([]types.OpenInstallationRecipe, error)
type RegexProcessMatchFinder ¶ added in v0.28.0
type RegexProcessMatchFinder struct{}
func NewRegexProcessMatchFinder ¶ added in v0.28.0
func NewRegexProcessMatchFinder() *RegexProcessMatchFinder
func (*RegexProcessMatchFinder) FindMatches ¶ added in v0.28.0
func (f *RegexProcessMatchFinder) FindMatches(ctx context.Context, processes []types.GenericProcess, recipe types.OpenInstallationRecipe) ([]types.MatchedProcess, error)
func (*RegexProcessMatchFinder) FindMatchesMultiple ¶ added in v0.28.0
func (f *RegexProcessMatchFinder) FindMatchesMultiple(ctx context.Context, processes []types.GenericProcess, recipes []types.OpenInstallationRecipe) ([]types.MatchedProcess, error)
type ScriptEvaluationRecipeFilterer ¶ added in v0.28.0
type ScriptEvaluationRecipeFilterer struct {
// contains filtered or unexported fields
}
func NewScriptEvaluationRecipeFilterer ¶ added in v0.28.0
func NewScriptEvaluationRecipeFilterer() *ScriptEvaluationRecipeFilterer
func (*ScriptEvaluationRecipeFilterer) Filter ¶ added in v0.28.0
func (f *ScriptEvaluationRecipeFilterer) Filter(ctx context.Context, r *types.OpenInstallationRecipe, m *types.DiscoveryManifest) bool
type ServiceRecipeFetcher ¶
type ServiceRecipeFetcher struct {
// contains filtered or unexported fields
}
ServiceRecipeFetcher is an implementation of the recipeFetcher interface that relies on the Neerdgraph-stitched recipe service to source its results.
func (*ServiceRecipeFetcher) FetchRecipes ¶
func (f *ServiceRecipeFetcher) FetchRecipes(ctx context.Context) ([]types.OpenInstallationRecipe, error)
FetchRecipes fetches all available recipes from the recipe service.
type SkipFilterer ¶ added in v0.28.0
type SkipFilterer struct { *execution.InstallStatus // contains filtered or unexported fields }
func NewSkipFilterer ¶ added in v0.28.0
func NewSkipFilterer(s *execution.InstallStatus) *SkipFilterer
func (*SkipFilterer) Filter ¶ added in v0.28.0
func (f *SkipFilterer) Filter(ctx context.Context, r *types.OpenInstallationRecipe, m *types.DiscoveryManifest) bool
func (*SkipFilterer) OnlyNames ¶ added in v0.28.0
func (f *SkipFilterer) OnlyNames(names ...string)
func (*SkipFilterer) SkipKeywords ¶ added in v0.28.0
func (f *SkipFilterer) SkipKeywords(keywords ...string)
func (*SkipFilterer) SkipNames ¶ added in v0.28.0
func (f *SkipFilterer) SkipNames(names ...string)
func (*SkipFilterer) SkipTypes ¶ added in v0.28.0
func (f *SkipFilterer) SkipTypes(types ...string)
Source Files ¶
- errors.go
- local_recipe_fetcher.go
- mock_nerdgraph_client.go
- mock_process.go
- mock_process_filterer.go
- mock_recipe_fetcher.go
- mock_recipe_file_fetcher.go
- nerdgraph_client.go
- process_match_finder.go
- recipe_fetcher.go
- recipe_file.go
- recipe_filter_runner.go
- recipe_repository.go
- regex_process_match_finder.go
- service_recipe_fetcher.go
Click to show internal directories.
Click to hide internal directories.