bundle

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL