Documentation
¶
Index ¶
- Constants
- Variables
- func CleanupRunInfoFile() error
- func DevstackEnvFile() string
- func DevstackGetShouldPrintInfo() bool
- func DevstackSetShouldPrintInfo()
- func GetAPIHost() string
- func GetAPIPort() *uint16
- func GetConfigPath() string
- func GetDownloadURLRequestRetries() int
- func GetDownloadURLRequestTimeout() time.Duration
- func GetEventTracerPath() string
- func GetLibp2pTracerPath() string
- func GetPrivateKey(keyName string) (crypto.PrivKey, error)
- func GetRunInfoFilePath() string
- func GetStoragePath() string
- func GetVolumeSizeRequestTimeout(ctx context.Context) time.Duration
- func PreferredAddress() string
- func SetVolumeSizeRequestTimeout(ctx context.Context, value time.Duration) context.Context
- func ShouldKeepStack() bool
- func WriteRunInfoFile(ctx context.Context, summaryShellVariablesString string) error
- type DockerCredentials
Constants ¶
const ( DefaultRunInfoFilename = "bacalhau.run" RunInfoFilePermissions = 0400 )
const BitsForKeyPair = 2048
Variables ¶
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 ¶
how long do we wait for a URL to download
func GetEventTracerPath ¶
func GetEventTracerPath() string
func GetLibp2pTracerPath ¶
func GetLibp2pTracerPath() string
func GetRunInfoFilePath ¶ added in v1.0.2
func GetRunInfoFilePath() string
func GetStoragePath ¶
func GetStoragePath() string
func GetVolumeSizeRequestTimeout ¶
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 ShouldKeepStack ¶
func ShouldKeepStack() bool
Types ¶
type DockerCredentials ¶ added in v0.3.26
func GetDockerCredentials ¶ added in v0.3.26
func GetDockerCredentials() DockerCredentials
func (*DockerCredentials) IsValid ¶ added in v0.3.26
func (d *DockerCredentials) IsValid() bool