Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discoverer ¶
type Discoverer interface {
Discover(context.Context) (*types.DiscoveryManifest, error)
}
Discoverer is reesponsible for discovering informataion about the host system.
type FileFilterer ¶
FileFilterer determines the existence of files on the underlying filesystem.
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.
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 (*ManifestValidator) Execute ¶ added in v0.22.0
func (mv *ManifestValidator) Execute(m *types.DiscoveryManifest) error
func (*ManifestValidator) FindAllValidationErrors ¶ added in v0.22.0
func (mv *ManifestValidator) FindAllValidationErrors(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) SetOs ¶ added in v0.22.0
func (d *MockDiscoverer) SetOs(os string)
func (*MockDiscoverer) SetPlatformVersion ¶ added in v0.22.0
func (d *MockDiscoverer) SetPlatformVersion(pf string)
type MockFileFilterer ¶
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.
type OsValidator ¶ added in v0.22.0
type OsValidator struct{}
func NewOsValidator ¶ added in v0.22.0
func NewOsValidator() *OsValidator
func (*OsValidator) Execute ¶ added in v0.22.0
func (v *OsValidator) Execute(m *types.DiscoveryManifest) error
type OsWindowsValidator ¶ added in v0.22.0
type OsWindowsValidator struct{}
func NewOsWindowsValidator ¶ added in v0.22.0
func NewOsWindowsValidator() *OsWindowsValidator
func (*OsWindowsValidator) Execute ¶ added in v0.22.0
func (v *OsWindowsValidator) Execute(m *types.DiscoveryManifest) error
type PSUtilDiscoverer ¶
type PSUtilDiscoverer struct {
// contains filtered or unexported fields
}
func NewPSUtilDiscoverer ¶
func NewPSUtilDiscoverer(f ProcessFilterer) *PSUtilDiscoverer
func (*PSUtilDiscoverer) Discover ¶
func (p *PSUtilDiscoverer) Discover(ctx context.Context) (*types.DiscoveryManifest, error)
type PSUtilProcess ¶
func (PSUtilProcess) Cmdline ¶ added in v0.18.17
func (p PSUtilProcess) Cmdline() (string, error)
func (PSUtilProcess) Name ¶
func (p PSUtilProcess) Name() (string, error)
func (PSUtilProcess) PID ¶
func (p PSUtilProcess) PID() int32
type ProcessFilterer ¶
type ProcessFilterer interface {
// contains filtered or unexported methods
}
type RegexProcessFilterer ¶
type RegexProcessFilterer struct {
// contains filtered or unexported fields
}
func NewRegexProcessFilterer ¶
func NewRegexProcessFilterer(r recipes.RecipeFetcher) *RegexProcessFilterer
type Validator ¶ added in v0.22.0
type Validator interface {
Execute(m *types.DiscoveryManifest) error
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.