Discover Packages
github.com/kubevirt/vm-import-operator
pkg
pods
package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Aug 9, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types type Manager NewManager(client) (m) CreateFor(pod, vmiCrName) (m) DeleteFor(vmiCrName) (m) FindFor(vmiCrName)
Documentation
¶
Manager provides operations on Pods
func NewManager (client client.Client) Manager
NewManager creates new Pod manager
func (m *Manager) CreateFor(pod *corev1.Pod, vmiCrName types.NamespacedName) error
CreateFor creates given Pod, overriding given Name with a generated one. The Pod will be associated with vmiCrName.
func (m *Manager) DeleteFor(vmiCrName types.NamespacedName) error
DeleteFor removes the Pod created for vmiCrName
func (m *Manager) FindFor(vmiCrName types.NamespacedName) (*corev1.Pod, error )
FindFor retrieves a Pod matching given labels. If none can be found, both error and pointer will be nil. When there is more than 1 matching Pod, error will be returned.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.