Documentation ¶
Index ¶
- type GlobFileFilterer
- type ManifestValidator
- type MockDiscoverer
- func (d *MockDiscoverer) Discover(context.Context) (*types.DiscoveryManifest, error)
- func (d *MockDiscoverer) GetManifest() *types.DiscoveryManifest
- func (d *MockDiscoverer) SetKernelArch(arch string)
- func (d *MockDiscoverer) SetOs(os string)
- func (d *MockDiscoverer) SetPlatform(p string)
- func (d *MockDiscoverer) SetPlatformVersion(pf string)
- type MockFileFilterer
- type MockManifestValidator
- type MockOsValidator
- type OsValidator
- type OsVersionValidator
- type PSUtilDiscoverer
- type PSUtilProcess
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobFileFilterer ¶
type GlobFileFilterer struct{}
GlobFileFilterer is an implementation of the FileFilterer interface that uses glob-based filesystem searches to locate the existence of files.
func NewGlobFileFilterer ¶
func NewGlobFileFilterer() *GlobFileFilterer
NewGlobFileFilterer returns a new instance of GlobFileFilterer.
func (*GlobFileFilterer) Filter ¶
func (f *GlobFileFilterer) Filter(ctx context.Context, recipes []types.OpenInstallationRecipe) ([]types.OpenInstallationLogMatch, error)
Filter uses the patterns provided in the passed recipe to return matches based on which files exist in the underlying file system.
type ManifestValidator ¶ added in v0.22.0
type ManifestValidator struct {
// contains filtered or unexported fields
}
func NewEmptyManifestValidator ¶ added in v0.22.0
func NewEmptyManifestValidator() *ManifestValidator
func NewManifestValidator ¶ added in v0.22.0
func NewManifestValidator() *ManifestValidator
NewManifestValidator returns a new instance of ManifestValidator.
func NewMockManifestValidator ¶ added in v0.36.10
func NewMockManifestValidator(mockValidator validator) *ManifestValidator
func (*ManifestValidator) FindAllValidationErrors ¶ added in v0.22.0
func (mv *ManifestValidator) FindAllValidationErrors(m *types.DiscoveryManifest) []error
func (*ManifestValidator) Validate ¶ added in v0.28.0
func (mv *ManifestValidator) Validate(m *types.DiscoveryManifest) error
type MockDiscoverer ¶
type MockDiscoverer struct {
DiscoveryManifest *types.DiscoveryManifest
}
func NewMockDiscoverer ¶
func NewMockDiscoverer() *MockDiscoverer
func (*MockDiscoverer) Discover ¶
func (d *MockDiscoverer) Discover(context.Context) (*types.DiscoveryManifest, error)
func (*MockDiscoverer) GetManifest ¶ added in v0.22.0
func (d *MockDiscoverer) GetManifest() *types.DiscoveryManifest
func (*MockDiscoverer) SetKernelArch ¶ added in v0.28.11
func (d *MockDiscoverer) SetKernelArch(arch string)
func (*MockDiscoverer) SetOs ¶ added in v0.22.0
func (d *MockDiscoverer) SetOs(os string)
func (*MockDiscoverer) SetPlatform ¶ added in v0.26.1
func (d *MockDiscoverer) SetPlatform(p string)
func (*MockDiscoverer) SetPlatformVersion ¶ added in v0.22.0
func (d *MockDiscoverer) SetPlatformVersion(pf string)
type MockFileFilterer ¶
type MockFileFilterer struct { FilterCallCount int FilterErr error FilterVal []types.OpenInstallationLogMatch }
MockFileFilterer is a mock implementation of the FileFilterer interface that provides method spies for testing scenarios.
func NewMockFileFilterer ¶
func NewMockFileFilterer() *MockFileFilterer
NewMockFileFilterer creates a new instance of MockFileFilterer.
func (*MockFileFilterer) Filter ¶
func (m *MockFileFilterer) Filter(ctx context.Context, recipes []types.OpenInstallationRecipe) ([]types.OpenInstallationLogMatch, error)
type MockManifestValidator ¶ added in v0.36.10
type MockManifestValidator struct {
// contains filtered or unexported fields
}
func (*MockManifestValidator) FindAllValidationErrors ¶ added in v0.36.10
func (mv *MockManifestValidator) FindAllValidationErrors(m *types.DiscoveryManifest) []error
func (*MockManifestValidator) Validate ¶ added in v0.36.10
func (mv *MockManifestValidator) Validate(m *types.DiscoveryManifest) error
type MockOsValidator ¶ added in v0.36.10
type MockOsValidator struct{}
func NewMockOsValidator ¶ added in v0.36.10
func NewMockOsValidator() *MockOsValidator
func (*MockOsValidator) Validate ¶ added in v0.36.10
func (v *MockOsValidator) Validate(m *types.DiscoveryManifest) error
type OsValidator ¶ added in v0.22.0
type OsValidator struct{}
func NewOsValidator ¶ added in v0.22.0
func NewOsValidator() *OsValidator
func (*OsValidator) Validate ¶ added in v0.28.0
func (v *OsValidator) Validate(m *types.DiscoveryManifest) error
type OsVersionValidator ¶ added in v0.26.1
type OsVersionValidator struct {
// contains filtered or unexported fields
}
func NewOsVersionValidator ¶ added in v0.26.1
func NewOsVersionValidator(os string, platform string, minMajor int, minMinor int) *OsVersionValidator
func (*OsVersionValidator) Validate ¶ added in v0.28.0
func (v *OsVersionValidator) Validate(m *types.DiscoveryManifest) error
type PSUtilDiscoverer ¶
type PSUtilDiscoverer struct{}
func NewPSUtilDiscoverer ¶
func NewPSUtilDiscoverer() *PSUtilDiscoverer
func (*PSUtilDiscoverer) Discover ¶
func (p *PSUtilDiscoverer) Discover(ctx context.Context) (*types.DiscoveryManifest, error)
type PSUtilProcess ¶
type PSUtilProcess struct {
// contains filtered or unexported fields
}
func NewPSUtilProcess ¶ added in v0.30.3
func NewPSUtilProcess(p *process.Process) PSUtilProcess
func (PSUtilProcess) Cmd ¶ added in v0.28.0
func (p PSUtilProcess) Cmd() (string, error)
func (PSUtilProcess) Name ¶
func (p PSUtilProcess) Name() (string, error)
func (PSUtilProcess) PID ¶
func (p PSUtilProcess) PID() int32
Click to show internal directories.
Click to hide internal directories.