From ebe614f6e1b8177450bbc2baeb862220a8b573cf Mon Sep 17 00:00:00 2001 From: shirou Date: Thu, 22 Mar 2018 00:28:00 +0900 Subject: [PATCH] [solaris] host: add PlatformInformation() which is missing. --- host/host_solaris.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/host/host_solaris.go b/host/host_solaris.go index 2560c06..d5657db 100644 --- a/host/host_solaris.go +++ b/host/host_solaris.go @@ -231,3 +231,18 @@ func KernelVersionWithContext(ctx context.Context) (string, error) { } return "", fmt.Errorf("could not get kernel version") } + +func PlatformInformation() (platform string, family string, version string, err error) { + return PlatformInformationWithContext(context.Background()) +} + +func PlatformInformationWithContext(ctx context.Context) (platform string, family string, version string, err error) { + /* This is not finished yet at all. Please contribute! */ + + version, err = KernelVersion() + if err != nil { + return "", "", "", err + } + + return "solaris", "solaris", version, nil +}