bundle

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfo added in v1.20.0

type BuildInfo struct {
	BuildTime                 string `json:"buildTime"`
	OpenshiftInstallerVersion string `json:"openshiftInstallerVersion"`
	SncVersion                string `json:"sncVersion"`
}

type ClusterInfo added in v1.20.0

type 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"`
	OpenshiftPullSecret   string `json:"openshiftPullSecret,omitempty"`
}

type CrcBundleInfo

type CrcBundleInfo struct {
	Version     string      `json:"version"`
	Type        string      `json:"type"`
	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 GetCachedBundleInfo

func GetCachedBundleInfo(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) GetDiskImagePath

func (bundle *CrcBundleInfo) GetDiskImagePath() string

func (*CrcBundleInfo) GetInitramfsPath

func (bundle *CrcBundleInfo) GetInitramfsPath() 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

func (*CrcBundleInfo) Verify added in v1.20.0

func (bundle *CrcBundleInfo) Verify() error

type DiskImage added in v1.20.0

type DiskImage struct {
	Name     string `json:"name"`
	Format   string `json:"format"`
	Size     string `json:"size"`
	Checksum string `json:"sha256sum"`
}

type DriverInfo added in v1.20.0

type DriverInfo struct {
	Name string `json:"name"`
}

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"`
}

type Repository added in v1.20.0

type Repository struct {
	CacheDir string
	OcBinDir string
}

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) 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"`
}

Jump to

Keyboard shortcuts

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