client_solaris.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package libcontainerd
  2. type client struct {
  3. clientCommon
  4. // Platform specific properties below here.
  5. }
  6. func (clnt *client) AddProcess(containerID, processFriendlyName string, specp Process) error {
  7. return nil
  8. }
  9. func (clnt *client) Create(containerID string, spec Spec, options ...CreateOption) (err error) {
  10. return nil
  11. }
  12. func (clnt *client) Signal(containerID string, sig int) error {
  13. return nil
  14. }
  15. func (clnt *client) Resize(containerID, processFriendlyName string, width, height int) error {
  16. return nil
  17. }
  18. func (clnt *client) Pause(containerID string) error {
  19. return nil
  20. }
  21. func (clnt *client) Resume(containerID string) error {
  22. return nil
  23. }
  24. func (clnt *client) Stats(containerID string) (*Stats, error) {
  25. return nil, nil
  26. }
  27. // Restore is the handler for restoring a container
  28. func (clnt *client) Restore(containerID string, unusedOnWindows ...CreateOption) error {
  29. return nil
  30. }
  31. func (clnt *client) GetPidsForContainer(containerID string) ([]int, error) {
  32. return nil, nil
  33. }
  34. // Summary returns a summary of the processes running in a container.
  35. func (clnt *client) Summary(containerID string) ([]Summary, error) {
  36. return nil, nil
  37. }
  38. // UpdateResources updates resources for a running container.
  39. func (clnt *client) UpdateResources(containerID string, resources Resources) error {
  40. // Updating resource isn't supported on Solaris
  41. // but we should return nil for enabling updating container
  42. return nil
  43. }