client_solaris.go 1.4 KB

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