containerd build clean on Solaris (#203)
* containerd build clean on Solaris Signed-off-by: Amit Krishnan <krish.amit@gmail.com> * Vendor golang.org/x/sys Signed-off-by: Amit Krishnan <krish.amit@gmail.com>
This commit is contained in:
parent
b5981e004f
commit
62e1370f91
207 changed files with 108211 additions and 234 deletions
8
supervisor/create_solaris.go
Normal file
8
supervisor/create_solaris.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package supervisor
|
||||
|
||||
type platformStartTask struct {
|
||||
}
|
||||
|
||||
// Checkpoint not supported on Solaris
|
||||
func (task *startTask) setTaskCheckpoint(t *StartTask) {
|
||||
}
|
|
@ -1,3 +1,5 @@
|
|||
// +build !solaris
|
||||
|
||||
package supervisor
|
||||
|
||||
import "github.com/cloudfoundry/gosigar"
|
||||
|
|
15
supervisor/machine_solaris.go
Normal file
15
supervisor/machine_solaris.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package supervisor
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
type Machine struct {
|
||||
Cpus int
|
||||
Memory int64
|
||||
}
|
||||
|
||||
func CollectMachineInformation() (Machine, error) {
|
||||
m := Machine{}
|
||||
return m, errors.New("supervisor CollectMachineInformation not implemented on Solaris")
|
||||
}
|
38
supervisor/monitor_solaris.go
Normal file
38
supervisor/monitor_solaris.go
Normal file
|
@ -0,0 +1,38 @@
|
|||
package supervisor
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/docker/containerd/runtime"
|
||||
)
|
||||
|
||||
func NewMonitor() (*Monitor, error) {
|
||||
return &Monitor{}, errors.New("Monitor NewMonitor() not implemented on Solaris")
|
||||
}
|
||||
|
||||
type Monitor struct {
|
||||
ooms chan string
|
||||
}
|
||||
|
||||
func (m *Monitor) Exits() chan runtime.Process {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Monitor) OOMs() chan string {
|
||||
return m.ooms
|
||||
}
|
||||
|
||||
func (m *Monitor) Monitor(p runtime.Process) error {
|
||||
return errors.New("Monitor Monitor() not implemented on Solaris")
|
||||
}
|
||||
|
||||
func (m *Monitor) MonitorOOM(c runtime.Container) error {
|
||||
return errors.New("Monitor MonitorOOM() not implemented on Solaris")
|
||||
}
|
||||
|
||||
func (m *Monitor) Close() error {
|
||||
return errors.New("Monitor Close() not implemented on Solaris")
|
||||
}
|
||||
|
||||
func (m *Monitor) start() {
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue