Documentation ¶
Index ¶
Constants ¶
View Source
const ( AVAILABILITY = " availability" ENSURE = "Ensure " OSFILEPATH = "/etc/os-release" KERNELFILEPATH = "/proc/sys/kernel/osrelease" LINUX_VERSION_CHECK = "Linux Version Check" KERNEL_VERSION_CHECK = "Kernel Version Check" UBUNTU = "Ubuntu" RED_HAT = "Red Hat" AMAZON_LINUX = "Amazon Linux" SUSE_LINUX = "SUSE Linux" RED_HAT_SUPPORTED_VERSION = 7 KERNEL_SUPPORTED_VERSION = "3.2" KERNEL_SUPPORTED_VERSION_AMAZON_LINUX = 5.10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISoftwareVersionService ¶
type ISoftwareVersionService interface {
GetSoftwareVersionDetails(string) (*models.SoftwareVersionDetails, error)
}
type MockSoftwareVersionService ¶
type MockSoftwareVersionService struct {
GetSoftwareDetailsFunc func(string) (*models.SoftwareVersionDetails, error)
}
func (*MockSoftwareVersionService) GetSoftwareVersionDetails ¶
func (msv *MockSoftwareVersionService) GetSoftwareVersionDetails(string) (*models.SoftwareVersionDetails, error)
type SoftwareVersionService ¶
type SoftwareVersionService struct { CheckPath func(cmd string) (string, error) // contains filtered or unexported fields }
func (*SoftwareVersionService) GetSoftwareVersionDetails ¶
func (sv *SoftwareVersionService) GetSoftwareVersionDetails(query string) (*models.SoftwareVersionDetails, error)
Click to show internal directories.
Click to hide internal directories.