//go:build !no_extra_providers

package rclone

import (
	"github.com/kopia/kopia/repo/blob/sharded"
	"github.com/kopia/kopia/repo/blob/throttling"
	"github.com/kopia/kopia/repo/jsonencoding"
)

// Options defines options for RClone storage.
type Options struct {
	RemotePath         string                `json:"remotePath"`                   // remote:path supported by RClone
	RCloneExe          string                `json:"rcloneExe,omitempty"`          // path to rclone executable
	RCloneArgs         []string              `json:"rcloneArgs,omitempty"`         // additional rclone arguments
	RCloneEnv          []string              `json:"rcloneEnv,omitempty"`          // additional rclone environment variables
	StartupTimeout     jsonencoding.Duration `json:"startupTimeout,omitempty"`     // time to wait for rclone to start
	Debug              bool                  `json:"debug,omitempty"`              // log rclone output
	NoWaitForTransfers bool                  `json:"noWaitForTransfers,omitempty"` // when set to true, don't wait for transfers to finish when closing
	EmbeddedConfig     string                `json:"embeddedConfig,omitempty"`
	AtomicWrites       bool                  `json:"atomicWrites"`

	sharded.Options
	throttling.Limits
}
