Documentation
¶
Index ¶
- Constants
- Variables
- func BundleEmbedded() bool
- func EnsureBaseDirExists() error
- func GetCrcTrayDownloadURL() string
- func GetDefaultBundle() string
- func GetDefaultBundleForOs(os string) string
- func GetHomeDir() string
- func GetOcUrl() string
- func GetOcUrlForOs(os string) string
- func GetPodmanUrl() string
- func GetPodmanUrlForOs(os string) string
- func GetPrivateKeyPath() string
- func GetPublicKeyPath() string
Constants ¶
View Source
const ( DefaultName = "crc" DefaultCPUs = 4 DefaultMemory = 9216 DefaultSSHPort = 22 DefaultSSHUser = "core" CrcEnvPrefix = "CRC" DefaultWebConsoleURL = "https://console-openshift-console.apps-crc.testing" DefaultAPIURL = "https://api.crc.testing:6443" DefaultDiskImage = "crc.disk" DefaultLogLevel = "info" ConfigFile = "crc.json" LogFile = "crc.log" DaemonLogFile = "crcd.log" GlobalStateFile = "globalstate.json" CrcLandingPageURL = "https://cloud.redhat.com/openshift/install/crc/installer-provisioned" // #nosec G101 PullSecretFile = "pullsecret.json" DefaultOcUrlBase = "https://mirror.openshift.com/pub/openshift-v4/clients/oc/latest" DefaultPodmanUrlBase = "https://storage.googleapis.com/libpod-master-releases" CrcTrayDownloadURL = "https://github.com/code-ready/tray-macos/releases/download/v%s/crc-tray-macos.tar.gz" DefaultContext = "admin" )
View Source
const ( OcBinaryName = "oc" PodmanBinaryName = "podman" )
Variables ¶
View Source
var ( CrcBaseDir = filepath.Join(GetHomeDir(), ".crc") CrcBinDir = filepath.Join(CrcBaseDir, "bin") ConfigPath = filepath.Join(CrcBaseDir, ConfigFile) LogFilePath = filepath.Join(CrcBaseDir, LogFile) DaemonLogFilePath = filepath.Join(CrcBaseDir, DaemonLogFile) MachineBaseDir = CrcBaseDir MachineCertsDir = filepath.Join(MachineBaseDir, "certs") MachineCacheDir = filepath.Join(MachineBaseDir, "cache") MachineInstanceDir = filepath.Join(MachineBaseDir, "machines") GlobalStatePath = filepath.Join(CrcBaseDir, GlobalStateFile) DefaultBundlePath = filepath.Join(MachineCacheDir, GetDefaultBundle()) DaemonSocketPath = filepath.Join(CrcBaseDir, "crc.sock") )
Functions ¶
func BundleEmbedded ¶
func BundleEmbedded() bool
IsBundleEmbedded returns true if the binary was compiled to contain the bundle
func EnsureBaseDirExists ¶
func EnsureBaseDirExists() error
EnsureBaseDirExists create the ~/.crc dir if its not there
func GetCrcTrayDownloadURL ¶
func GetCrcTrayDownloadURL() string
func GetDefaultBundle ¶
func GetDefaultBundle() string
func GetDefaultBundleForOs ¶
func GetHomeDir ¶
func GetHomeDir() string
GetHomeDir returns the home directory for the current user
func GetOcUrlForOs ¶
func GetPodmanUrl ¶
func GetPodmanUrl() string
func GetPodmanUrlForOs ¶
func GetPrivateKeyPath ¶
func GetPrivateKeyPath() string
func GetPublicKeyPath ¶
func GetPublicKeyPath() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.