Documentation

Overview

    The server component main package for Varasto

    Index

    Constants

    View Source
    const FIXMEsystemUserId = ""

      current middlewares has this empty too

      Variables

      This section is empty.

      Functions

      func Entrypoint

      func Entrypoint() *cobra.Command

      Types

      type ReconciliationCompletionReport

      type ReconciliationCompletionReport struct {
      	Timestamp                         time.Time // of report start (because that's what the tx sees)
      	TotalCollections                  int
      	EmptyCollectionIds                []string
      	EmptyDirectoryIds                 []string
      	CollectionsWithNonCompliantPolicy []collectionToReconcile
      }

      func NewReconciliationCompletionReport

      func NewReconciliationCompletionReport() *ReconciliationCompletionReport

      type ServerConfig

      type ServerConfig struct {
      	File                   ServerConfigFile
      	SelfNodeId             string
      	SelfNodeSmartBackend   stoservertypes.SmartBackend
      	ClusterWideMounts      map[int]stotypes.VolumeMount
      	DiskAccess             *stodiskaccess.Controller // only for mounts on self node
      	ClientsAuthTokens      map[string]bool
      	LogTail                *logtee.StringTail
      	ReplicationControllers map[int]*storeplication.Controller
      	Scheduler              *scheduler.Controller
      	MediaScanner           *subsystem
      	FuseProjector          *subsystem
      	TlsCertificate         wrappedKeypair
      	KeyStore               *stokeystore.Store
      	FailedMountNames       []string
      	Metrics                *metricsController
      }

      type ServerConfigFile

      type ServerConfigFile struct {
      	DbLocation                   string `json:"db_location"`
      	DisableReplicationController bool   `json:"disable_replication_controller"`
      	DisableMediaScanner          bool   `json:"disable_media_scanner"`
      }

      Directories

      Path Synopsis
      Encapsulates access to the metadata database
      Encapsulates access to the metadata database
      logic for importing/exporting the metadata database into a file
      logic for importing/exporting the metadata database into a file
      diskaccess ties together DB metadata read/write in addition to writing to disk
      diskaccess ties together DB metadata read/write in addition to writing to disk
      Health checks for Varasto server
      Health checks for Varasto server
      Responsible for integrity of your data by periodically scanning your volumes to detect bit rot and hardware failures.
      Responsible for integrity of your data by periodically scanning your volumes to detect bit rot and hardware failures.
      Controls replication of data between volumes
      Controls replication of data between volumes