utils

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkManager

type NetworkManager struct {
	// contains filtered or unexported fields
}

func NewNetworkManager

func NewNetworkManager(pod *corev1.Pod, client client.Client) *NetworkManager

func (*NetworkManager) GetNetworkConfig

func (nm *NetworkManager) GetNetworkConfig() []v1alpha1.NetworkConfParams

func (*NetworkManager) GetNetworkDisabled

func (nm *NetworkManager) GetNetworkDisabled() bool

func (*NetworkManager) GetNetworkStatus

func (nm *NetworkManager) GetNetworkStatus() (*v1alpha1.NetworkStatus, error)

func (*NetworkManager) GetNetworkType

func (nm *NetworkManager) GetNetworkType() string

func (*NetworkManager) SetNetworkState

func (nm *NetworkManager) SetNetworkState(disabled bool) error

func (*NetworkManager) UpdateNetworkStatus

func (nm *NetworkManager) UpdateNetworkStatus(networkStatus v1alpha1.NetworkStatus, pod *corev1.Pod) (*corev1.Pod, error)

Jump to

Keyboard shortcuts

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