Documentation ¶
Index ¶
- func CalculateBundleSha256Sum(bundlePath string) (string, error)
- func Download(preset preset.Preset) error
- 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() preset.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) GetOpenshiftVersion() string
- func (bundle *CrcBundleInfo) GetPodmanPath() string
- func (bundle *CrcBundleInfo) GetPodmanVersion() string
- func (bundle *CrcBundleInfo) GetSSHKeyPath() string
- func (bundle *CrcBundleInfo) IsOpenShift() bool
- type DiskImage
- type DriverInfo
- type File
- type FileListItem
- type FileType
- type Node
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateBundleSha256Sum ¶ added in v1.99.2
func GetBundleNameWithoutExtension ¶ added in v1.26.0
func GetCustomBundleName ¶ added in v1.26.0
Types ¶
type ClusterInfo ¶ added in v1.20.0
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 ¶ added in v1.26.0
type Copier struct {
// contains filtered or unexported fields
}
func NewCopier ¶ added in v1.26.0
func NewCopier(srcBundle *CrcBundleInfo, basePath string, customBundleName string) (*Copier, error)
func (*Copier) CachedPath ¶ added in v1.26.0
func (*Copier) CopyFilesFromFileList ¶ added in v1.26.0
func (*Copier) CopyKubeConfig ¶ added in v1.26.0
func (*Copier) CopyPrivateSSHKey ¶ added in v1.26.0
func (*Copier) GenerateBundle ¶ added in v1.26.0
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 ¶ added in v1.24.0
func Get(bundleName string) (*CrcBundleInfo, error)
func List ¶ added in v1.28.0
func List() ([]CrcBundleInfo, error)
func Use ¶ added in v1.24.0
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 ¶ added in v1.24.0
func (bundle *CrcBundleInfo) GetBundleName() string
func (*CrcBundleInfo) GetBundleNameWithoutExtension ¶ added in v1.26.0
func (bundle *CrcBundleInfo) GetBundleNameWithoutExtension() string
func (*CrcBundleInfo) GetBundleType ¶ added in v1.99.2
func (bundle *CrcBundleInfo) GetBundleType() preset.Preset
func (*CrcBundleInfo) GetDiskImageFormat ¶ added in v1.26.0
func (bundle *CrcBundleInfo) GetDiskImageFormat() string
func (*CrcBundleInfo) GetDiskImagePath ¶
func (bundle *CrcBundleInfo) GetDiskImagePath() string
func (*CrcBundleInfo) GetInitramfsPath ¶
func (bundle *CrcBundleInfo) GetInitramfsPath() string
func (*CrcBundleInfo) GetKernelCommandLine ¶ added in v1.26.0
func (bundle *CrcBundleInfo) GetKernelCommandLine() string
func (*CrcBundleInfo) GetKernelPath ¶
func (bundle *CrcBundleInfo) GetKernelPath() string
func (*CrcBundleInfo) GetKubeConfigPath ¶
func (bundle *CrcBundleInfo) GetKubeConfigPath() string
func (*CrcBundleInfo) GetOcPath ¶ added in v1.25.0
func (bundle *CrcBundleInfo) GetOcPath() string
func (*CrcBundleInfo) GetOpenshiftVersion ¶
func (bundle *CrcBundleInfo) GetOpenshiftVersion() string
func (*CrcBundleInfo) GetPodmanPath ¶ added in v1.26.0
func (bundle *CrcBundleInfo) GetPodmanPath() string
func (*CrcBundleInfo) GetPodmanVersion ¶ added in v1.99.2
func (bundle *CrcBundleInfo) GetPodmanVersion() string
func (*CrcBundleInfo) GetSSHKeyPath ¶
func (bundle *CrcBundleInfo) GetSSHKeyPath() string
func (*CrcBundleInfo) IsOpenShift ¶ added in v1.99.2
func (bundle *CrcBundleInfo) IsOpenShift() bool
type DriverInfo ¶ added in v1.20.0
type DriverInfo struct {
Name string `json:"name"`
}
type FileListItem ¶ added in v1.25.0
type Node ¶ added in v1.20.0
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 Repository ¶ added in v1.20.0
func (*Repository) CalculateBundleSha256Sum ¶ added in v1.99.2
func (repo *Repository) CalculateBundleSha256Sum(bundlePath string) (string, error)
func (*Repository) Extract ¶ added in v1.20.0
func (repo *Repository) Extract(path string) error
func (*Repository) Get ¶ added in v1.20.0
func (repo *Repository) Get(bundleName string) (*CrcBundleInfo, error)
func (*Repository) List ¶ added in v1.28.0
func (repo *Repository) List() ([]CrcBundleInfo, error)
func (*Repository) Use ¶ added in v1.20.0
func (repo *Repository) Use(bundleName string) (*CrcBundleInfo, error)
type Storage ¶ added in v1.20.0
type Storage struct { DiskImages []DiskImage `json:"diskImages"` Files []FileListItem `json:"fileList"` }
Click to show internal directories.
Click to hide internal directories.