localhypervisorset

package
v0.0.0-...-9516177 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InternalIPAddress

func InternalIPAddress(containerName, networkName string) (string, error)

InternalIPAddress returns the internal IP address for the given container name and network name

func NetworkName

func NetworkName(networkName string) (string, error)

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

Jump to

Keyboard shortcuts

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