config

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const BitsForKeyPair = 2048

Variables

This section is empty.

Functions

func DevstackEnvFile

func DevstackEnvFile() string

func DevstackGetShouldPrintInfo

func DevstackGetShouldPrintInfo() bool

func DevstackSetShouldPrintInfo

func DevstackSetShouldPrintInfo()

func DevstackShouldWriteEnvFile

func DevstackShouldWriteEnvFile() bool

func GetAPIHost

func GetAPIHost() string

func GetAPIPort

func GetAPIPort() *uint16

func GetConfigPath

func GetConfigPath() string

func GetDownloadURLRequestRetries

func GetDownloadURLRequestRetries() int

how long do we wait for a URL to download

func GetDownloadURLRequestTimeout

func GetDownloadURLRequestTimeout() time.Duration

how long do we wait for a URL to download

func GetEventTracerPath

func GetEventTracerPath() string

func GetLibp2pTracerPath

func GetLibp2pTracerPath() string

func GetPrivateKey

func GetPrivateKey(keyName string) (crypto.PrivKey, error)

func GetStoragePath

func GetStoragePath() string

func GetVolumeSizeRequestTimeout

func GetVolumeSizeRequestTimeout(ctx context.Context) time.Duration

how long do we wait for a volume size request to timeout if a non-existing cid is asked for - the dockerIPFS.IPFSClient.GetCidSize(ctx, volume.Cid) function will hang for a long time - so we wrap that call in a timeout for tests - we only want to wait for 2 seconds because everything is on a local network in prod - we want to wait longer because we might be running a job that is using non-local CIDs the tests are expected to call SetVolumeSizeRequestTimeout to reduce this timeout

func SetVolumeSizeRequestTimeout

func SetVolumeSizeRequestTimeout(ctx context.Context, value time.Duration) context.Context

func ShouldKeepStack

func ShouldKeepStack() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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