Documentation ¶
Index ¶
- Constants
- type DirServer
- func (s *DirServer) Create(ctx context.Context, x Handle, name string, data []byte) (*Handle, error)
- func (s *DirServer) Ensure(ctx context.Context, x Handle, p Path, data []byte) (OID, error)
- func (s *DirServer) Get(ctx context.Context, x Handle, p Path) (OID, []byte, error)
- func (s *DirServer) List(ctx context.Context, x Handle) ([]Entry, error)
- func (s *DirServer) Open(ctx context.Context, x Handle, p Path) (*Handle, error)
- func (s *DirServer) Remove(ctx context.Context, h Handle, name string) (OID, error)
- func (s *DirServer) Resolve(ctx context.Context, x Handle, p Path) (OID, error)
- func (s *DirServer) Root() Handle
- type Entry
- type Handle
- type OID
- type Path
Constants ¶
View Source
const ( NullOID = 0 RootOID = math.MaxUint64 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirServer ¶
type DirServer struct {
// contains filtered or unexported fields
}
func (*DirServer) Create ¶
func (s *DirServer) Create(ctx context.Context, x Handle, name string, data []byte) (*Handle, error)
Create a node in the directory tree, with optionally associated data. Associating data with a node prevents creating children beneath it.
func (*DirServer) Remove ¶
Remove removes an entry from a directory, and returns the ID of the deleted object.
Click to show internal directories.
Click to hide internal directories.