config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRunInfoFilename = "bacalhau.run"
	RunInfoFilePermissions = 0400
)
View Source
const BitsForKeyPair = 2048

Variables

View Source
var RunInfoFilePath = ""

Functions

func CleanupRunInfoFile added in v1.0.2

func CleanupRunInfoFile() error

func DevstackEnvFile

func DevstackEnvFile() string

func DevstackGetShouldPrintInfo

func DevstackGetShouldPrintInfo() bool

func DevstackSetShouldPrintInfo

func DevstackSetShouldPrintInfo()

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 GetRunInfoFilePath added in v1.0.2

func GetRunInfoFilePath() string

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 PreferredAddress added in v1.0.2

func PreferredAddress() string

PreferredAddress will allow for the specificying of the preferred address to listen on for cases where it is not clear, or where the address does not appear when using 0.0.0.0

func SetVolumeSizeRequestTimeout

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

func ShouldKeepStack

func ShouldKeepStack() bool

func WriteRunInfoFile added in v1.0.2

func WriteRunInfoFile(ctx context.Context, summaryShellVariablesString string) error

WriteRunInfoFile writes the ShellVariables to a file that can be imported. It writes bacalhauServe.run to TempDir().

Types

type DockerCredentials added in v0.3.26

type DockerCredentials struct {
	Username string
	Password string
}

func GetDockerCredentials added in v0.3.26

func GetDockerCredentials() DockerCredentials

func (*DockerCredentials) IsValid added in v0.3.26

func (d *DockerCredentials) IsValid() bool

Jump to

Keyboard shortcuts

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