Versions in this module Expand all Collapse all v1 v1.1.0 Dec 19, 2022 v1.0.2 Jan 13, 2022 v1.0.1 Nov 18, 2021 v1.0.0 Jul 16, 2021 Changes in this version + type Bus struct + DeviceName_ string + Dimms_ []ndctl.Dimm + Provider_ string + Regions_ []ndctl.Region + func (b *Bus) ActiveRegions() []ndctl.Region + func (b *Bus) AllRegions() []ndctl.Region + func (b *Bus) DeviceName() string + func (b *Bus) Dimms() []ndctl.Dimm + func (b *Bus) GetRegionByPhysicalAddress(address uint64) ndctl.Region + func (b *Bus) Provider() string + type Context struct + Buses []ndctl.Bus + func NewContext(ctx *Context) *Context + func (ctx *Context) Free() + func (ctx *Context) GetBuses() []ndctl.Bus + type Dimm struct + Active_ bool + DeviceName_ string + Enabled_ bool + Handle_ int16 + ID_ string + PhysicalID_ int + func (d *Dimm) Active() bool + func (d *Dimm) DeviceName() string + func (d *Dimm) Enabled() bool + func (d *Dimm) Handle() int16 + func (d *Dimm) ID() string + func (d *Dimm) PhysicalID() int + type Mapping struct + Dimm_ ndctl.Dimm + Length_ uint64 + Offset_ uint64 + Position_ int + Region_ ndctl.Region + func (m *Mapping) Dimm() ndctl.Dimm + func (m *Mapping) Length() uint64 + func (m *Mapping) Offset() uint64 + func (m *Mapping) Position() int + func (m *Mapping) Region() ndctl.Region + type Namespace struct + Active_ bool + BlockDeviceName_ string + DeviceName_ string + Enabled_ bool + ID_ uint + Location_ ndctl.MapLocation + Mode_ ndctl.NamespaceMode + Name_ string + Overhead_ uint64 + Region_ ndctl.Region + Size_ uint64 + Type_ ndctl.NamespaceType + UUID_ uuid.UUID + func (ns *Namespace) Active() bool + func (ns *Namespace) BlockDeviceName() string + func (ns *Namespace) DeviceName() string + func (ns *Namespace) Disable() error + func (ns *Namespace) Enable() error + func (ns *Namespace) Enabled() bool + func (ns *Namespace) ID() uint + func (ns *Namespace) Location() ndctl.MapLocation + func (ns *Namespace) Mode() ndctl.NamespaceMode + func (ns *Namespace) Name() string + func (ns *Namespace) RawSize() uint64 + func (ns *Namespace) Region() ndctl.Region + func (ns *Namespace) SetAltName(name string) error + func (ns *Namespace) SetEnforceMode(mode ndctl.NamespaceMode) error + func (ns *Namespace) SetPfnSeed(loc ndctl.MapLocation, align uint64) error + func (ns *Namespace) SetRawMode(raw bool) error + func (ns *Namespace) SetSectorSize(sectorSize uint64) error + func (ns *Namespace) SetSize(size uint64) error + func (ns *Namespace) SetUUID(uid uuid.UUID) error + func (ns *Namespace) Size() uint64 + func (ns *Namespace) Type() ndctl.NamespaceType + func (ns *Namespace) UUID() uuid.UUID + type Region struct + AvailableSize_ uint64 + Bus_ ndctl.Bus + DeviceName_ string + Enabled_ bool + ID_ uint + InterleaveWays_ uint64 + Mappings_ []ndctl.Mapping + MaxAvailableExtent_ uint64 + Namespaces_ []ndctl.Namespace + Readonly_ bool + RegionAlign_ uint64 + Size_ uint64 + TypeName_ string + Type_ ndctl.RegionType + func (r *Region) ActiveNamespaces() []ndctl.Namespace + func (r *Region) AllNamespaces() []ndctl.Namespace + func (r *Region) AvailableSize() uint64 + func (r *Region) Bus() ndctl.Bus + func (r *Region) CreateNamespace(ctx context.Context, opts ndctl.CreateNamespaceOpts) (ndctl.Namespace, error) + func (r *Region) DestroyNamespace(ns ndctl.Namespace, force bool) error + func (r *Region) DeviceName() string + func (r *Region) Enabled() bool + func (r *Region) FsdaxAlignment() uint64 + func (r *Region) GetAlign() uint64 + func (r *Region) ID() uint + func (r *Region) InterleaveWays() uint64 + func (r *Region) Mappings() []ndctl.Mapping + func (r *Region) MaxAvailableExtent() uint64 + func (r *Region) Readonly() bool + func (r *Region) SeedNamespace() ndctl.Namespace + func (r *Region) Size() uint64 + func (r *Region) Type() ndctl.RegionType + func (r *Region) TypeName() string