Documentation
¶
Index ¶
- Constants
- func NewDefaultServerStorageService(opts *Options) nnf.StorageServiceApi
- func RunController() error
- type FileShare
- type FileSystem
- type KObjectAction
- type Options
- type RemoteServer
- type ServerStorageService
- func (s *ServerStorageService) Close() error
- func (s *ServerStorageService) Id() string
- func (s *ServerStorageService) Initialize(ec.Logger, nnf.NnfControllerInterface) error
- func (s *ServerStorageService) NewStorage(storage *server.Storage)
- func (s *ServerStorageService) OdataId() string
- func (s *ServerStorageService) OdataIdRef(ref string) sf.OdataV4IdRef
- func (s *ServerStorageService) StorageServiceIdCapacitySourceGet(storageServiceId string, model *sf.CapacityCapacitySource) error
- func (*ServerStorageService) StorageServiceIdEndpointIdGet(storageServiceId, endpointId string, model *sf.EndpointV150Endpoint) error
- func (*ServerStorageService) StorageServiceIdEndpointsGet(storageServiceId string, model *sf.EndpointCollectionEndpointCollection) error
- func (s *ServerStorageService) StorageServiceIdFileSystemIdDelete(storageServiceId, fileSystemId string) error
- func (s *ServerStorageService) StorageServiceIdFileSystemIdExportedShareIdDelete(storageServiceId, fileSystemId, exportedShareId string) error
- func (s *ServerStorageService) StorageServiceIdFileSystemIdExportedShareIdGet(storageServiceId, fileSystemId, exportedShareId string, ...) error
- func (s *ServerStorageService) StorageServiceIdFileSystemIdExportedShareIdPut(storageServiceId, fileSystemId, exportedShareId string, ...) error
- func (s *ServerStorageService) StorageServiceIdFileSystemIdExportedSharesGet(storageServiceId, fileSystemId string, ...) error
- func (s *ServerStorageService) StorageServiceIdFileSystemIdExportedSharesPost(storageServiceId, fileSystemId string, model *sf.FileShareV120FileShare) error
- func (s *ServerStorageService) StorageServiceIdFileSystemIdGet(storageServiceId, fileSystemId string, model *sf.FileSystemV122FileSystem) error
- func (s *ServerStorageService) StorageServiceIdFileSystemIdPut(storageServiceId, fileSystemId string, model *sf.FileSystemV122FileSystem) error
- func (s *ServerStorageService) StorageServiceIdFileSystemsGet(storageServiceId string, model *sf.FileSystemCollectionFileSystemCollection) error
- func (s *ServerStorageService) StorageServiceIdFileSystemsPost(storageServiceId string, model *sf.FileSystemV122FileSystem) error
- func (s *ServerStorageService) StorageServiceIdGet(storageServiceId string, model *sf.StorageServiceV150StorageService) error
- func (s *ServerStorageService) StorageServiceIdStorageGroupIdDelete(storageServiceId, storageGroupId string) error
- func (*ServerStorageService) StorageServiceIdStorageGroupIdGet(storageServiceId, storageGroupId string, ...) error
- func (*ServerStorageService) StorageServiceIdStorageGroupIdPut(storageServiceId, storageGroupId string, ...) error
- func (*ServerStorageService) StorageServiceIdStorageGroupPost(storageServiceId string, model *sf.StorageGroupV150StorageGroup) error
- func (*ServerStorageService) StorageServiceIdStorageGroupsGet(storageServiceId string, ...) error
- func (*ServerStorageService) StorageServiceIdStoragePoolIdAllocatedVolumeIdGet(storageServiceId, storagePoolId, volumeId string, model *sf.VolumeV161Volume) error
- func (*ServerStorageService) StorageServiceIdStoragePoolIdAllocatedVolumesGet(storageServiceId, storagePoolId string, ...) error
- func (*ServerStorageService) StorageServiceIdStoragePoolIdCapacitySourceIdGet(storageServiceId, storagePoolId, capacitySourceId string, ...) error
- func (*ServerStorageService) StorageServiceIdStoragePoolIdCapacitySourceIdProvidingVolumesGet(storageServiceId, storagePoolId, capacitySourceId string, ...) error
- func (*ServerStorageService) StorageServiceIdStoragePoolIdCapacitySourcesGet(storageServiceId, storagePoolId string, ...) error
- func (s *ServerStorageService) StorageServiceIdStoragePoolIdDelete(storageServiceId, storagePoolId string) error
- func (s *ServerStorageService) StorageServiceIdStoragePoolIdGet(storageServiceId, storagePoolId string, model *sf.StoragePoolV150StoragePool) error
- func (s *ServerStorageService) StorageServiceIdStoragePoolIdPut(storageServiceId, storagePoolId string, model *sf.StoragePoolV150StoragePool) error
- func (s *ServerStorageService) StorageServiceIdStoragePoolsGet(storageServiceId string, model *sf.StoragePoolCollectionStoragePoolCollection) error
- func (s *ServerStorageService) StorageServiceIdStoragePoolsPost(storageServiceId string, model *sf.StoragePoolV150StoragePool) error
- func (s *ServerStorageService) StorageServicesGet(model *sf.StorageServiceCollectionStorageServiceCollection) error
- type StoragePool
- type UDevMonitor
- type UDevMonitorNetlinkGroup
- type UEvent
- type Volume
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 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 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 (s *ServerStorageService) Initialize(ec.Logger, nnf.NnfControllerInterface) error
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) StorageServiceIdStoragePoolIdAllocatedVolumesGet ¶ added in v0.1.1
func (*ServerStorageService) StorageServiceIdStoragePoolIdAllocatedVolumesGet(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 ¶
func (s *ServerStorageService) StorageServicesGet(model *sf.StorageServiceCollectionStorageServiceCollection) error
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 NewUEventFromPath ¶
func (*UEvent) IsNvmeEvent ¶
Click to show internal directories.
Click to hide internal directories.