config

package
v0.0.0-...-d88ec87 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// S3 represents s3 compiliant storages
	S3 string = "S3"
	// GCS represents Google Cloud Storage compiliant storages
	GCS = "GCS"
	// Passthrough does not re-sign requests
	Passthrough = "passthrough"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Shard

type Shard struct {
	Storages Storages `yaml:"Storages"`
}

Shard defines shard storages configuration

type ShardsMap

type ShardsMap map[string]Shard

ShardsMap is map of Cluster

type Storage

type Storage struct {
	Backend      types.YAMLUrl     `yaml:"Backend"`
	Type         string            `yaml:"Type"`
	Maintenance  bool              `yaml:"Maintenance"`
	Properties   map[string]string `yaml:"Properties"`
	BucketPrefix string            `yaml:"BucketPrefix"`
}

Storage defines backend

type StorageBreakerProperties

type StorageBreakerProperties struct {
	Name                           string           `yaml:"Name"`
	BreakerProbeSize               int              `yaml:"BreakerProbeSize"`
	BreakerErrorRate               float64          `yaml:"BreakerErrorRate"`
	BreakerCallTimeLimit           metrics.Interval `yaml:"BreakerCallTimeLimit"`
	BreakerCallTimeLimitPercentile float64          `yaml:"BreakerCallTimeLimitPercentile"`
	BreakerBasicCutOutDuration     metrics.Interval `yaml:"BreakerBasicCutOutDuration"`
	BreakerMaxCutOutDuration       metrics.Interval `yaml:"BreakerMaxCutOutDuration"`
	Priority                       int              `yaml:"Priority"`
	MeterResolution                metrics.Interval `yaml:"MeterResolution"`
	MeterRetention                 metrics.Interval `yaml:"MeterRetention"`
}

StorageBreakerProperties describes storage usage requirements

type Storages

type Storages []StorageBreakerProperties

Storages is lists of storages

type StoragesMap

type StoragesMap map[string]Storage

StoragesMap is map of Backend

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL