Documentation ¶
Index ¶
- 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 MockManifestValidator
- type MockOsValidator
- type OsValidator
- type OsVersionValidator
- type PSUtilDiscoverer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 Error error }
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 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 {
Error error
}
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)
Click to show internal directories.
Click to hide internal directories.