Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config holds all configuration for the provider.
func (*Config) DatasetDir ¶
DatasetDir returns the directory in which datasets are stored on nodes.
func (*Config) LoadConfig ¶
LoadConfig loads and validates the config data.
func (*Config) NodeCoordinatorPort ¶
NodeCoordinatorPort returns the port that node coordinators are running on.
type ConfigData ¶
type ConfigData struct { provider.ConfigData DatasetDir string `json:"dataset_dir"` NodeCoordinatorPort uint `json:"node_coordinator_port"` }
ConfigData defines the structure of the config data (e.g. in the config file)
type DatasetImportArgs ¶
type DatasetImportArgs struct { NFS bool `json:"nfs"` Quota uint64 `json:"quota"` ReadOnly bool `json:"readOnly"` Redundancy uint64 `json:"redundancy"` }
DatasetImportArgs are arguments for configuring an imported dataset.
type DatasetImportResult ¶
type DatasetImportResult struct { Dataset clusterconf.Dataset `json:"dataset"` NodeID string `json:"nodeID"` }
DatasetImportResult is the result of a dataset import.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is a provider of data import and export functionality.
func (*Provider) DatasetImport ¶
DatasetImport imports a dataset into the cluster and tracks it in the cluster configuration.
func (*Provider) RegisterTasks ¶
RegisterTasks registers all of the provider task handlers with the server.