Documentation
¶
Index ¶
- func InternalIPAddress(containerName, networkName string) (string, error)
- func NetworkName(networkName string) (string, error)
- type Hypervisor
- type HypervisorSet
- func (hypervisorSet *HypervisorSet) Create() error
- func (hypervisorSet *HypervisorSet) Destroy() error
- func (hypervisorSet *HypervisorSet) Export() []*infrav1alpha1.Hypervisor
- func (hypervisorSet *HypervisorSet) Specs() string
- func (hypervisorSet *HypervisorSet) StartRemoteCRIEndpoints() error
- func (hypervisorSet *HypervisorSet) Wait() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InternalIPAddress ¶
InternalIPAddress returns the internal IP address for the given container name and network name
func NetworkName ¶
NetworkName returns a defaulted network, or the provided if exists
Types ¶
type Hypervisor ¶
type Hypervisor struct { Name string Public bool HypervisorSet *HypervisorSet CRIEndpoint string ExposedPortRangeLow int ExposedPortRangeHigh int CACertificate *certificates.Certificate ClientCACertificate *certificates.Certificate }
Hypervisor represents a local hypervisor
func (*Hypervisor) Create ¶
func (hypervisor *Hypervisor) Create() error
Create creates the local hypervisor
func (*Hypervisor) Destroy ¶
func (hypervisor *Hypervisor) Destroy() error
Destroy destroys the current hypervisor
func (*Hypervisor) Export ¶
func (hypervisor *Hypervisor) Export() *infrav1alpha1.Hypervisor
Export exports the local hypervisor to a versioned hypervisor
func (*Hypervisor) StartRemoteCRIEndpoint ¶
func (hypervisor *Hypervisor) StartRemoteCRIEndpoint() error
StartRemoteCRIEndpoint initializes the remote CRI endpoint on this hypervisor, using the local endpoint (UNIX socket) in order to set up the required components and perform the required configuration
func (*Hypervisor) Wait ¶
func (hypervisor *Hypervisor) Wait() error
Wait waits for the local hypervisor to be created
type HypervisorSet ¶
type HypervisorSet struct { Name string NodeImage string Remote bool NetworkName string Hypervisors []*Hypervisor }
HypervisorSet represents a set of local hypervisors
func LoadHypervisorSet ¶
func LoadHypervisorSet(name string) (*HypervisorSet, error)
LoadHypervisorSet loads an hypervisor set with name from disk
func NewHypervisorSet ¶
func NewHypervisorSet(name, kubernetesVersion string, privateHypervisorSetSize, publicHypervisorSetSize int, remote bool, networkName string) *HypervisorSet
NewHypervisorSet creates a new set of local hypervisors
func (*HypervisorSet) Create ¶
func (hypervisorSet *HypervisorSet) Create() error
Create creates the local hypervisor set
func (*HypervisorSet) Destroy ¶
func (hypervisorSet *HypervisorSet) Destroy() error
Destroy destroys the local hypervisor set
func (*HypervisorSet) Export ¶
func (hypervisorSet *HypervisorSet) Export() []*infrav1alpha1.Hypervisor
Export exports the local hypervisor set to a list of versioned hypervisors
func (*HypervisorSet) Specs ¶
func (hypervisorSet *HypervisorSet) Specs() string
Specs returns the versioned specs for the local hypervisor set
func (*HypervisorSet) StartRemoteCRIEndpoints ¶
func (hypervisorSet *HypervisorSet) StartRemoteCRIEndpoints() error
StartRemoteCRIEndpoints initializes the CRI endpoint on all hypervisors
func (*HypervisorSet) Wait ¶
func (hypervisorSet *HypervisorSet) Wait() error
Wait waits for the local hypervisor set to be created