remote

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEVPATH = "/sys/devices"

	UEventMagicNumber = 0xFEEDCAFE
)
View Source
const (
	KObject_Add     KObjectAction = "add"
	KObject_Remove                = "remove"
	KObject_Change                = "change"
	KObject_Move                  = "move"
	KObject_Online                = "online"
	KObject_Offline               = "offline"
	KObject_Bind                  = "bind"
	KObject_Unbind                = "unbind"
)

Variables

This section is empty.

Functions

func NewDefaultServerStorageService

func NewDefaultServerStorageService(opts *Options) nnf.StorageServiceApi

func RunController

func RunController() error

Types

type FileShare

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

func (*FileShare) OdataId

func (sh *FileShare) OdataId() string

type FileSystem

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

func (*FileSystem) OdataId

func (fs *FileSystem) OdataId() string

func (*FileSystem) OdataIdRef

func (fs *FileSystem) OdataIdRef(ref string) sf.OdataV4IdRef

type KObjectAction

type KObjectAction string

KObject Action defines an Actions for a kernel object https://elixir.bootlin.com/linux/v5.12-rc8/source/include/linux/kobject.h

func ParseKObjectAction

func ParseKObjectAction(action string) KObjectAction

type Options

type Options struct{}

func BindFlags

func BindFlags(fs *flag.FlagSet) *Options

type RemoteServer

type RemoteServer struct {
}

func (*RemoteServer) Run

func (s *RemoteServer) Run() error

type ServerStorageService

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

func (*ServerStorageService) Close

func (s *ServerStorageService) Close() error

func (*ServerStorageService) Id

func (s *ServerStorageService) Id() string

func (*ServerStorageService) Initialize

func (*ServerStorageService) NewStorage

func (s *ServerStorageService) NewStorage(storage *server.Storage)

func (*ServerStorageService) OdataId

func (s *ServerStorageService) OdataId() string

func (*ServerStorageService) OdataIdRef

func (s *ServerStorageService) OdataIdRef(ref string) sf.OdataV4IdRef

func (*ServerStorageService) StorageServiceIdCapacitySourceGet

func (s *ServerStorageService) StorageServiceIdCapacitySourceGet(storageServiceId string, model *sf.CapacityCapacitySource) error

func (*ServerStorageService) StorageServiceIdEndpointIdGet

func (*ServerStorageService) StorageServiceIdEndpointIdGet(storageServiceId, endpointId string, model *sf.EndpointV150Endpoint) error

func (*ServerStorageService) StorageServiceIdEndpointsGet

func (*ServerStorageService) StorageServiceIdEndpointsGet(storageServiceId string, model *sf.EndpointCollectionEndpointCollection) error

func (*ServerStorageService) StorageServiceIdFileSystemIdDelete

func (s *ServerStorageService) StorageServiceIdFileSystemIdDelete(storageServiceId, fileSystemId string) error

func (*ServerStorageService) StorageServiceIdFileSystemIdExportedShareIdDelete

func (s *ServerStorageService) StorageServiceIdFileSystemIdExportedShareIdDelete(storageServiceId, fileSystemId, exportedShareId string) error

func (*ServerStorageService) StorageServiceIdFileSystemIdExportedShareIdGet

func (s *ServerStorageService) StorageServiceIdFileSystemIdExportedShareIdGet(storageServiceId, fileSystemId, exportedShareId string, model *sf.FileShareV120FileShare) error

func (*ServerStorageService) StorageServiceIdFileSystemIdExportedShareIdPut

func (s *ServerStorageService) StorageServiceIdFileSystemIdExportedShareIdPut(storageServiceId, fileSystemId, exportedShareId string, model *sf.FileShareV120FileShare) error

func (*ServerStorageService) StorageServiceIdFileSystemIdExportedSharesGet

func (s *ServerStorageService) StorageServiceIdFileSystemIdExportedSharesGet(storageServiceId, fileSystemId string, model *sf.FileShareCollectionFileShareCollection) error

func (*ServerStorageService) StorageServiceIdFileSystemIdExportedSharesPost

func (s *ServerStorageService) StorageServiceIdFileSystemIdExportedSharesPost(storageServiceId, fileSystemId string, model *sf.FileShareV120FileShare) error

func (*ServerStorageService) StorageServiceIdFileSystemIdGet

func (s *ServerStorageService) StorageServiceIdFileSystemIdGet(storageServiceId, fileSystemId string, model *sf.FileSystemV122FileSystem) error

func (*ServerStorageService) StorageServiceIdFileSystemIdPut

func (s *ServerStorageService) StorageServiceIdFileSystemIdPut(storageServiceId, fileSystemId string, model *sf.FileSystemV122FileSystem) error

func (*ServerStorageService) StorageServiceIdFileSystemsGet

func (s *ServerStorageService) StorageServiceIdFileSystemsGet(storageServiceId string, model *sf.FileSystemCollectionFileSystemCollection) error

func (*ServerStorageService) StorageServiceIdFileSystemsPost

func (s *ServerStorageService) StorageServiceIdFileSystemsPost(storageServiceId string, model *sf.FileSystemV122FileSystem) error

func (*ServerStorageService) StorageServiceIdGet

func (s *ServerStorageService) StorageServiceIdGet(storageServiceId string, model *sf.StorageServiceV150StorageService) error

func (*ServerStorageService) StorageServiceIdStorageGroupIdDelete

func (s *ServerStorageService) StorageServiceIdStorageGroupIdDelete(storageServiceId, storageGroupId string) error

func (*ServerStorageService) StorageServiceIdStorageGroupIdGet

func (*ServerStorageService) StorageServiceIdStorageGroupIdGet(storageServiceId, storageGroupId string, model *sf.StorageGroupV150StorageGroup) error

func (*ServerStorageService) StorageServiceIdStorageGroupIdPut

func (*ServerStorageService) StorageServiceIdStorageGroupIdPut(storageServiceId, storageGroupId string, model *sf.StorageGroupV150StorageGroup) error

func (*ServerStorageService) StorageServiceIdStorageGroupPost

func (*ServerStorageService) StorageServiceIdStorageGroupPost(storageServiceId string, model *sf.StorageGroupV150StorageGroup) error

func (*ServerStorageService) StorageServiceIdStorageGroupsGet

func (*ServerStorageService) StorageServiceIdStorageGroupsGet(storageServiceId string, model *sf.StorageGroupCollectionStorageGroupCollection) error

func (*ServerStorageService) StorageServiceIdStoragePoolIdAllocatedVolumeIdGet

func (*ServerStorageService) StorageServiceIdStoragePoolIdAllocatedVolumeIdGet(storageServiceId, storagePoolId, volumeId string, model *sf.VolumeV161Volume) error

func (*ServerStorageService) StorageServiceIdStoragePoolIdAlloctedVolumesGet

func (*ServerStorageService) StorageServiceIdStoragePoolIdAlloctedVolumesGet(storageServiceId, storagePoolId string, model *sf.VolumeCollectionVolumeCollection) error

func (*ServerStorageService) StorageServiceIdStoragePoolIdCapacitySourceIdGet

func (*ServerStorageService) StorageServiceIdStoragePoolIdCapacitySourceIdGet(storageServiceId, storagePoolId, capacitySourceId string, model *sf.CapacityCapacitySource) error

func (*ServerStorageService) StorageServiceIdStoragePoolIdCapacitySourceIdProvidingVolumesGet

func (*ServerStorageService) StorageServiceIdStoragePoolIdCapacitySourceIdProvidingVolumesGet(storageServiceId, storagePoolId, capacitySourceId string, model *sf.VolumeCollectionVolumeCollection) error

func (*ServerStorageService) StorageServiceIdStoragePoolIdCapacitySourcesGet

func (*ServerStorageService) StorageServiceIdStoragePoolIdCapacitySourcesGet(storageServiceId, storagePoolId string, model *sf.CapacitySourceCollectionCapacitySourceCollection) error

func (*ServerStorageService) StorageServiceIdStoragePoolIdDelete

func (s *ServerStorageService) StorageServiceIdStoragePoolIdDelete(storageServiceId, storagePoolId string) error

func (*ServerStorageService) StorageServiceIdStoragePoolIdGet

func (s *ServerStorageService) StorageServiceIdStoragePoolIdGet(storageServiceId, storagePoolId string, model *sf.StoragePoolV150StoragePool) error

func (*ServerStorageService) StorageServiceIdStoragePoolIdPut

func (s *ServerStorageService) StorageServiceIdStoragePoolIdPut(storageServiceId, storagePoolId string, model *sf.StoragePoolV150StoragePool) error

func (*ServerStorageService) StorageServiceIdStoragePoolsGet

func (s *ServerStorageService) StorageServiceIdStoragePoolsGet(storageServiceId string, model *sf.StoragePoolCollectionStoragePoolCollection) error

func (*ServerStorageService) StorageServiceIdStoragePoolsPost

func (s *ServerStorageService) StorageServiceIdStoragePoolsPost(storageServiceId string, model *sf.StoragePoolV150StoragePool) error

func (*ServerStorageService) StorageServicesGet

type StoragePool

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

func (*StoragePool) OdataId

func (p *StoragePool) OdataId() string

func (*StoragePool) OdataIdRef

func (p *StoragePool) OdataIdRef(ref string) sf.OdataV4IdRef

type UDevMonitor

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

func (*UDevMonitor) Close

func (m *UDevMonitor) Close() error

func (*UDevMonitor) Open

func (m *UDevMonitor) Open() error

func (*UDevMonitor) Run

func (m *UDevMonitor) Run() chan UEvent

type UDevMonitorNetlinkGroup

type UDevMonitorNetlinkGroup uint32
const (
	UDevMonitor_None UDevMonitorNetlinkGroup = iota
	UDevMonitor_Kernel
	UDevMonitor_UDev
)

type UEvent

type UEvent struct {
	Action KObjectAction
	Object string
	Env    map[string]string
}

func NewUEventFromBytes

func NewUEventFromBytes(buf []byte) (*UEvent, uint32, error)

func NewUEventFromPath

func NewUEventFromPath(path string) (*UEvent, error)

func (*UEvent) IsNvmeEvent

func (uevent *UEvent) IsNvmeEvent() bool

func (*UEvent) String

func (uevent *UEvent) String() string

type Volume

type Volume struct {
}

Jump to

Keyboard shortcuts

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