Documentation
¶
Index ¶
- type CrcBundleInfo
- func (bundle *CrcBundleInfo) CheckDiskImageSize() error
- func (bundle *CrcBundleInfo) GetAPIHostname() string
- func (bundle *CrcBundleInfo) GetAppHostname(appName string) string
- func (bundle *CrcBundleInfo) GetBundleBuildTime() (time.Time, error)
- func (bundle *CrcBundleInfo) GetDiskImagePath() string
- func (bundle *CrcBundleInfo) GetDiskSize() (int64, error)
- func (bundle *CrcBundleInfo) GetInitramfsPath() string
- func (bundle *CrcBundleInfo) GetInternalIP() string
- func (bundle *CrcBundleInfo) GetKernelPath() string
- func (bundle *CrcBundleInfo) GetKubeConfigPath() string
- func (bundle *CrcBundleInfo) GetKubeadminPassword() (string, error)
- func (bundle *CrcBundleInfo) GetOpenshiftVersion() string
- func (bundle *CrcBundleInfo) GetSSHKeyPath() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrcBundleInfo ¶
type CrcBundleInfo struct {
Version string `json:"version"`
Type string `json:"type"`
BuildInfo struct {
BuildTime string `json:"buildTime"`
OpenshiftInstallerVersion string `json:"openshiftInstallerVersion"`
SncVersion string `json:"sncVersion"`
} `json:"buildInfo"`
ClusterInfo struct {
OpenShiftVersion string `json:"openshiftVersion"`
ClusterName string `json:"clusterName"`
BaseDomain string `json:"baseDomain"`
AppsDomain string `json:"appsDomain"`
SSHPrivateKeyFile string `json:"sshPrivateKeyFile"`
KubeConfig string `json:"kubeConfig"`
KubeadminPasswordFile string `json:"kubeadminPasswordFile"`
} `json:"clusterInfo"`
Nodes []struct {
Kind []string `json:"kind"`
Hostname string `json:"hostname"`
DiskImage string `json:"diskImage"`
KernelCmdLine string `json:"kernelCmdLine"`
Initramfs string `json:"initramfs"`
Kernel string `json:"kernel"`
InternalIP string `json:"internalIP"`
} `json:"nodes"`
Storage struct {
DiskImages []struct {
Name string `json:"name"`
Format string `json:"format"`
Size string `json:"size"`
} `json:"diskImages"`
} `json:"storage"`
// contains filtered or unexported fields
}
func Extract ¶
func Extract(sourcepath string) (*CrcBundleInfo, error)
func GetCachedBundleInfo ¶
func GetCachedBundleInfo(bundleName string) (*CrcBundleInfo, error)
func (*CrcBundleInfo) CheckDiskImageSize ¶
func (bundle *CrcBundleInfo) CheckDiskImageSize() 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) GetDiskImagePath ¶
func (bundle *CrcBundleInfo) GetDiskImagePath() string
func (*CrcBundleInfo) GetDiskSize ¶
func (bundle *CrcBundleInfo) GetDiskSize() (int64, error)
func (*CrcBundleInfo) GetInitramfsPath ¶
func (bundle *CrcBundleInfo) GetInitramfsPath() string
func (*CrcBundleInfo) GetInternalIP ¶
func (bundle *CrcBundleInfo) GetInternalIP() string
func (*CrcBundleInfo) GetKernelPath ¶
func (bundle *CrcBundleInfo) GetKernelPath() string
func (*CrcBundleInfo) GetKubeConfigPath ¶
func (bundle *CrcBundleInfo) GetKubeConfigPath() string
func (*CrcBundleInfo) GetKubeadminPassword ¶
func (bundle *CrcBundleInfo) GetKubeadminPassword() (string, error)
func (*CrcBundleInfo) GetOpenshiftVersion ¶
func (bundle *CrcBundleInfo) GetOpenshiftVersion() string
func (*CrcBundleInfo) GetSSHKeyPath ¶
func (bundle *CrcBundleInfo) GetSSHKeyPath() string
Click to show internal directories.
Click to hide internal directories.