func NewPauseCommand(client container.Client, names []string, pattern string, labels []string, intervalStr, durationStr string, limit int, dryRun bool) (chaos.Command, error) {
	interval, err := util.GetIntervalValue(intervalStr)
	if err != nil {
		return nil, err
	}
	duration, err := util.GetDurationValue(durationStr, interval)
	if err != nil {
		return nil, err
	}
	return &PauseCommand{client, names, pattern, labels, duration, limit, dryRun}, nil
}
NewPauseCommand create new Pause Command instance
package docker
import (
	"context"
	"time"
	"github.com/alexei-led/pumba/pkg/chaos"
	"github.com/alexei-led/pumba/pkg/container"
	"github.com/alexei-led/pumba/pkg/util"
	"github.com/pkg/errors"
	log "github.com/sirupsen/logrus"
)
type PauseCommand struct {
	client   container.Client
	names    []string
	pattern  string
	labels   []string
	duration time.Duration
	limit    int
	dryRun   bool
}