store

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagerInterface

type ManagerInterface interface {
	ClearPCIAddressFolder() error
	SaveLastPfAppliedStatus(PfInfo *sriovnetworkv1.Interface) error
	RemovePfAppliedStatus(pciAddress string) error
	LoadPfsStatus(pciAddress string) (*sriovnetworkv1.Interface, bool, error)

	GetCheckPointNodeState() (*sriovnetworkv1.SriovNetworkNodeState, error)
	WriteCheckpointFile(*sriovnetworkv1.SriovNetworkNodeState) error
}

Contains all the file storing on the host

func NewManager

func NewManager() (ManagerInterface, error)

NewManager: create the initial folders needed to store the info about the PF and return a manager struct that implements the ManagerInterface interface

Directories

Path Synopsis
Package mock_store is a generated GoMock package.
Package mock_store is a generated GoMock package.

Jump to

Keyboard shortcuts

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