Documentation ¶
Index ¶
- func CalculateBundleSha256Sum(bundlePath string) (string, error)
- func Download(preset crcPreset.Preset, bundleURI string, enableBundleQuayFallback bool) (string, error)
- func GetBundleNameFromURI(bundleURI string) string
- func GetBundleNameWithExtension(bundleName string) string
- func GetBundleNameWithoutExtension(bundleName string) string
- func GetCustomBundleName(bundleFilename string) string
- type BuildInfo
- type ClusterInfo
- type Copier
- func (copier *Copier) CachedPath() string
- func (copier *Copier) Cleanup() error
- func (copier *Copier) CopyFilesFromFileList() error
- func (copier *Copier) CopyKubeConfig() error
- func (copier *Copier) CopyPrivateSSHKey(srcPath string) error
- func (copier *Copier) GenerateBundle(bundleName string) error
- func (copier *Copier) SetDiskImage(path string, format string) error
- type CrcBundleInfo
- func (bundle *CrcBundleInfo) GetAPIHostname() string
- func (bundle *CrcBundleInfo) GetAppHostname(appName string) string
- func (bundle *CrcBundleInfo) GetBundleBuildTime() (time.Time, error)
- func (bundle *CrcBundleInfo) GetBundleName() string
- func (bundle *CrcBundleInfo) GetBundleNameWithoutExtension() string
- func (bundle *CrcBundleInfo) GetBundleType() crcPreset.Preset
- func (bundle *CrcBundleInfo) GetDiskImageFormat() string
- func (bundle *CrcBundleInfo) GetDiskImagePath() string
- func (bundle *CrcBundleInfo) GetInitramfsPath() string
- func (bundle *CrcBundleInfo) GetKernelCommandLine() string
- func (bundle *CrcBundleInfo) GetKernelPath() string
- func (bundle *CrcBundleInfo) GetKubeConfigPath() string
- func (bundle *CrcBundleInfo) GetOcPath() string
- func (bundle *CrcBundleInfo) GetPodmanPath() string
- func (bundle *CrcBundleInfo) GetPodmanVersion() string
- func (bundle *CrcBundleInfo) GetSSHKeyPath() string
- func (bundle *CrcBundleInfo) GetVersion() string
- func (bundle *CrcBundleInfo) IsMicroshift() bool
- func (bundle *CrcBundleInfo) IsOpenShift() bool
- func (bundle *CrcBundleInfo) IsPodman() bool
- type DiskImage
- type DriverInfo
- type File
- type FileListItem
- type FileType
- type Node
- type ReleaseInfo
- type Repository
- func (repo *Repository) CalculateBundleSha256Sum(bundlePath string) (string, error)
- func (repo *Repository) Extract(path string) error
- func (repo *Repository) Get(bundleName string) (*CrcBundleInfo, error)
- func (repo *Repository) List() ([]CrcBundleInfo, error)
- func (repo *Repository) Use(bundleName string) (*CrcBundleInfo, error)
- type Storage
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBundleNameFromURI ¶
func GetCustomBundleName ¶
Types ¶
type ClusterInfo ¶
type ClusterInfo struct { OpenShiftVersion *semver.Version `json:"openshiftVersion"` ClusterName string `json:"clusterName"` BaseDomain string `json:"baseDomain"` AppsDomain string `json:"appsDomain"` SSHPrivateKeyFile string `json:"sshPrivateKeyFile"` KubeConfig string `json:"kubeConfig"` OpenshiftPullSecret string `json:"openshiftPullSecret,omitempty"` }
type Copier ¶
type Copier struct {
// contains filtered or unexported fields
}
func NewCopier ¶
func NewCopier(srcBundle *CrcBundleInfo, basePath string, customBundleName string) (*Copier, error)
func (*Copier) CachedPath ¶
func (*Copier) CopyFilesFromFileList ¶
func (*Copier) CopyKubeConfig ¶
func (*Copier) CopyPrivateSSHKey ¶
func (*Copier) GenerateBundle ¶
type CrcBundleInfo ¶
type CrcBundleInfo struct { Version string `json:"version"` Type string `json:"type"` Name string `json:"name"` BuildInfo BuildInfo `json:"buildInfo"` ClusterInfo ClusterInfo `json:"clusterInfo"` Nodes []Node `json:"nodes"` Storage Storage `json:"storage"` DriverInfo DriverInfo `json:"driverInfo"` // contains filtered or unexported fields }
func Extract ¶
func Extract(path string) (*CrcBundleInfo, error)
func Get ¶
func Get(bundleName string) (*CrcBundleInfo, error)
func List ¶
func List() ([]CrcBundleInfo, error)
func Use ¶
func Use(bundleName string) (*CrcBundleInfo, error)
func (*CrcBundleInfo) GetAPIHostname ¶
func (bundle *CrcBundleInfo) GetAPIHostname() string
func (*CrcBundleInfo) GetAppHostname ¶
func (bundle *CrcBundleInfo) GetAppHostname(appName string) string
func (*CrcBundleInfo) GetBundleBuildTime ¶
func (bundle *CrcBundleInfo) GetBundleBuildTime() (time.Time, error)
func (*CrcBundleInfo) GetBundleName ¶
func (bundle *CrcBundleInfo) GetBundleName() string
func (*CrcBundleInfo) GetBundleNameWithoutExtension ¶
func (bundle *CrcBundleInfo) GetBundleNameWithoutExtension() string
func (*CrcBundleInfo) GetBundleType ¶
func (bundle *CrcBundleInfo) GetBundleType() crcPreset.Preset
func (*CrcBundleInfo) GetDiskImageFormat ¶
func (bundle *CrcBundleInfo) GetDiskImageFormat() string
func (*CrcBundleInfo) GetDiskImagePath ¶
func (bundle *CrcBundleInfo) GetDiskImagePath() string
func (*CrcBundleInfo) GetInitramfsPath ¶
func (bundle *CrcBundleInfo) GetInitramfsPath() string
func (*CrcBundleInfo) GetKernelCommandLine ¶
func (bundle *CrcBundleInfo) GetKernelCommandLine() string
func (*CrcBundleInfo) GetKernelPath ¶
func (bundle *CrcBundleInfo) GetKernelPath() string
func (*CrcBundleInfo) GetKubeConfigPath ¶
func (bundle *CrcBundleInfo) GetKubeConfigPath() string
func (*CrcBundleInfo) GetOcPath ¶
func (bundle *CrcBundleInfo) GetOcPath() string
func (*CrcBundleInfo) GetPodmanPath ¶
func (bundle *CrcBundleInfo) GetPodmanPath() string
func (*CrcBundleInfo) GetPodmanVersion ¶
func (bundle *CrcBundleInfo) GetPodmanVersion() string
func (*CrcBundleInfo) GetSSHKeyPath ¶
func (bundle *CrcBundleInfo) GetSSHKeyPath() string
func (*CrcBundleInfo) GetVersion ¶
func (bundle *CrcBundleInfo) GetVersion() string
func (*CrcBundleInfo) IsMicroshift ¶
func (bundle *CrcBundleInfo) IsMicroshift() bool
func (*CrcBundleInfo) IsOpenShift ¶
func (bundle *CrcBundleInfo) IsOpenShift() bool
func (*CrcBundleInfo) IsPodman ¶
func (bundle *CrcBundleInfo) IsPodman() bool
type DriverInfo ¶
type DriverInfo struct {
Name string `json:"name"`
}
type FileListItem ¶
type Node ¶
type Node struct { Kind []string `json:"kind"` Hostname string `json:"hostname"` DiskImage string `json:"diskImage"` KernelCmdLine string `json:"kernelCmdLine,omitempty"` Initramfs string `json:"initramfs,omitempty"` Kernel string `json:"kernel,omitempty"` InternalIP string `json:"internalIP"` PodmanVersion string `json:"podmanVersion,omitempty"` }
type ReleaseInfo ¶
func FetchLatestReleaseInfo ¶
func FetchLatestReleaseInfo() (*ReleaseInfo, error)
type Repository ¶
func (*Repository) CalculateBundleSha256Sum ¶
func (repo *Repository) CalculateBundleSha256Sum(bundlePath string) (string, error)
func (*Repository) Extract ¶
func (repo *Repository) Extract(path string) error
func (*Repository) Get ¶
func (repo *Repository) Get(bundleName string) (*CrcBundleInfo, error)
func (*Repository) List ¶
func (repo *Repository) List() ([]CrcBundleInfo, error)
func (*Repository) Use ¶
func (repo *Repository) Use(bundleName string) (*CrcBundleInfo, error)
type Storage ¶
type Storage struct { DiskImages []DiskImage `json:"diskImages"` Files []FileListItem `json:"fileList"` }
Click to show internal directories.
Click to hide internal directories.