Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ConfigPathEnvKey is environment key stores config path ConfigPathEnvKey = "PICO_CFG_PATH" // CfgTokenEnvKey is environment key stores operator's access token CfgTokenEnvKey = "PICO_CFG_TOKEN" )
View Source
const ( // GrpcKeepalivePeriod is interval of QUIC keepalive messages GrpcKeepalivePeriod = 5 * time.Second // GrpcKeepaliveCount is count of QUIC keepalive mesages before connection marked as dead GrpcKeepaliveCount = 3 // GrpcMaxConcurrentStreams is maximum number of concurrent streams. On limit reach new RPC calls // will be queue until capacity is available GrpcMaxConcurrentStreams = 500 // GrpcTlsMinVersion is minimum TLS version for GRPC servers GrpcTlsMinVersion = tls.VersionTLS12 // GrpcOperatorHealthCheckTimeout timeout to send health checks for operator GrpcOperatorHealthCheckTimeout = 10 * time.Second )
View Source
const ( // ECLength is eleptic curve length for private key generation ECLength = 384 // CertValidTime is certificate's TTL (in years) CertValidTime = 10 )
View Source
const ( // LetterBytes is string with bytes for random string generation LetterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" LetterIdxBits = 6 LetterIdxMask = 1<<LetterIdxBits - 1 LetterIdxMax = 63 / LetterIdxBits )
View Source
const ( // MaxObjectChunks is maximum number of objects in chunk. // Used for partition data from DB on sub-arrays MaxObjectChunks int = 10000 )
View Source
const ( // TempTaskOutputPrefix is prefix for files to hold temporary output of task. // Temporariy files used to reduce load on DB in case of a lot of parts in task's output TempTaskOutputPrefix = "temp_task_output_" )
View Source
const ( // WyhashSeed is seed used for initialization of wyhash algorithm. // In case of changing this value on dirty DB (with data) - blobber // will create new instance of blobs in DB, so change it only on clean DB // to preserve space. WyhashSeed = 0x8d19a91 )
Variables ¶
View Source
var ( // GrpcTlsCiphers is list of supported TLS ciphers for GRPC servers GrpcTlsCiphers = []uint16{ tls.TLS_AES_256_GCM_SHA384, tls.TLS_CHACHA20_POLY1305_SHA256, tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.