Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapLogger ¶
func BootstrapLogger()
func DefaultConfigDir ¶
func DefaultConfigDir() string
func GenHostName ¶
func GenHostName() string
Types ¶
type ApiServerConfig ¶
type ApiServerConfig struct { // API listen addr. Defaults to ":10246". ListenAddr string // Install debug handlers if enabled. EnableDebug bool Certs []*x509.Certificate CertsFile string Key crypto.PrivateKey KeyFile string ClientCACert *x509.Certificate ClientCACertFile string `toml:"client_ca_cert_file"` WebUIRootPath string `toml:"webui_root_path"` CORSAllowedOrigins []string `toml:"cors_allowed_origins"` }
type Config ¶
type Config struct { PasswordFile string ProjectName string BucketName string UseSeparateBucketForMetadata bool CredentialsFilePath string CacheDir string // Cache size high watermark: discard cache when cache dir usage reach here. CacheHighWatermarkInBytes int64 CacheHighWatermark string // Cache size low watermark: when discarding cache, try to reduce cache dir usage under here. CacheLowWatermarkInBytes int64 CacheLowWatermark string ReadOnly bool LocalDebug bool Password string // If non-empty, perform fuse mount. FuseMountPoint string // Run GC every "GCPeriod" seconds. GCPeriod int64 `toml:"gc_period"` Logger *zap.Logger ApiServer ApiServerConfig }
type Otaru ¶
type Otaru struct { ReadOnly bool C *btncrypt.Cipher S *scheduler.Scheduler R *scheduler.RepetitiveJobRunner Tsrc oauth2.TokenSource DSCfg *datastore.Config GL *datastore.GlobalLocker MetadataBS blobstore.BlobStore DefaultBS blobstore.BlobStore BackendBS blobstore.BlobStore CacheTgtBS *blobstore.FileBlobStore CBS *cachedblobstore.CachedBlobStore AutoReduceCacheJob scheduler.ID SaveStateJob scheduler.ID SSLoc blobstoredbstatesnapshotio.SSLocator SIO *blobstoredbstatesnapshotio.DBStateSnapshotIO TxIO inodedb.DBTransactionLogIO CTxIO inodedb.DBTransactionLogIO TxIOSyncJob scheduler.ID IDBBE *inodedb.DB IDBS *inodedb.DBService IDBSyncJob scheduler.ID FS *filesystem.FileSystem AutoBlobstoreGCJob scheduler.ID AutoINodeDBTxLogGCJob scheduler.ID AutoINodeDBSSGCJob scheduler.ID }
Click to show internal directories.
Click to hide internal directories.