Documentation ¶
Index ¶
- Constants
- func NewCmdMount(streams genericclioptions.IOStreams) *cobra.Command
- func Readlink(fsys fs.FS, name string) (string, error)
- type Executor
- type LinuxStat_t
- type MountOptions
- type PodDirEntry
- type PodExecutor
- type PodFS
- type PodFile
- type PodFileInfo
- type PodFuseNode
- func (n *PodFuseNode) Getattr(ctx context.Context, f fusefs.FileHandle, out *fuse.AttrOut) syscall.Errno
- func (f *PodFuseNode) Link(ctx context.Context, target fusefs.InodeEmbedder, name string, ...) (node *fusefs.Inode, errno syscall.Errno)
- func (n *PodFuseNode) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*fusefs.Inode, syscall.Errno)
- func (f *PodFuseNode) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.EntryOut) (*fusefs.Inode, syscall.Errno)
- func (f *PodFuseNode) Mknod(ctx context.Context, name string, mode uint32, dev uint32, out *fuse.EntryOut) (*fusefs.Inode, syscall.Errno)
- func (f *PodFuseNode) Open(ctx context.Context, flags uint32) (fh fusefs.FileHandle, fuseFlags uint32, errno syscall.Errno)
- func (f *PodFuseNode) Read(ctx context.Context, h fusefs.FileHandle, dest []byte, off int64) (fuse.ReadResult, syscall.Errno)
- func (n *PodFuseNode) Readdir(ctx context.Context) (fusefs.DirStream, syscall.Errno)
- func (f *PodFuseNode) Readlink(ctx context.Context) ([]byte, syscall.Errno)
- func (f *PodFuseNode) Release(ctx context.Context, h fusefs.FileHandle) syscall.Errno
- func (n *PodFuseNode) Setattr(ctx context.Context, f fusefs.FileHandle, in *fuse.SetAttrIn, ...) syscall.Errno
- func (f *PodFuseNode) Symlink(ctx context.Context, target, name string, out *fuse.EntryOut) (node *fusefs.Inode, errno syscall.Errno)
- func (f *PodFuseNode) Unlink(ctx context.Context, name string) syscall.Errno
- type ReadlinkFS
- type RemoteCommandErr
Constants ¶
View Source
const ( // NOTE Assume that the remote pod run on linux S_IFBLK = 0x6000 S_IFCHR = 0x2000 S_IFDIR = 0x4000 S_IFIFO = 0x1000 S_IFLNK = 0xa000 S_IFMT = 0xf000 S_IFREG = 0x8000 S_IFSOCK = 0xc000 )
Variables ¶
This section is empty.
Functions ¶
func NewCmdMount ¶
func NewCmdMount(streams genericclioptions.IOStreams) *cobra.Command
NewCmdMount provides a cobra command wrapping MountOptions
Types ¶
type LinuxStat_t ¶
type MountOptions ¶
type MountOptions struct { User string PodName string RemoteDir string MountPoint string Namespace string ContainerName string Debug bool genericclioptions.IOStreams // contains filtered or unexported fields }
func NewMountOptions ¶
func NewMountOptions(streams genericclioptions.IOStreams) *MountOptions
type PodDirEntry ¶
type PodDirEntry struct {
// contains filtered or unexported fields
}
func (*PodDirEntry) IsDir ¶
func (e *PodDirEntry) IsDir() bool
func (*PodDirEntry) Name ¶
func (e *PodDirEntry) Name() string
func (*PodDirEntry) Type ¶
func (e *PodDirEntry) Type() fs.FileMode
type PodExecutor ¶
type PodExecutor struct { Namespace string PodName string ContainerName string Config *restclient.Config RestClient *restclient.RESTClient }
func (*PodExecutor) RunRead ¶
func (e *PodExecutor) RunRead(ctx context.Context, command []string) (io.ReadCloser, error)
type PodFileInfo ¶
type PodFileInfo struct {
// contains filtered or unexported fields
}
func (*PodFileInfo) IsDir ¶
func (i *PodFileInfo) IsDir() bool
func (*PodFileInfo) ModTime ¶
func (i *PodFileInfo) ModTime() time.Time
func (*PodFileInfo) Mode ¶
func (i *PodFileInfo) Mode() fs.FileMode
func (*PodFileInfo) Name ¶
func (i *PodFileInfo) Name() string
func (*PodFileInfo) Size ¶
func (i *PodFileInfo) Size() int64
func (*PodFileInfo) Sys ¶
func (i *PodFileInfo) Sys() interface{}
type PodFuseNode ¶
func (*PodFuseNode) Getattr ¶
func (n *PodFuseNode) Getattr(ctx context.Context, f fusefs.FileHandle, out *fuse.AttrOut) syscall.Errno
func (*PodFuseNode) Open ¶
func (f *PodFuseNode) Open(ctx context.Context, flags uint32) (fh fusefs.FileHandle, fuseFlags uint32, errno syscall.Errno)
func (*PodFuseNode) Read ¶
func (f *PodFuseNode) Read(ctx context.Context, h fusefs.FileHandle, dest []byte, off int64) (fuse.ReadResult, syscall.Errno)
func (*PodFuseNode) Release ¶
func (f *PodFuseNode) Release(ctx context.Context, h fusefs.FileHandle) syscall.Errno
type ReadlinkFS ¶
type RemoteCommandErr ¶
func (*RemoteCommandErr) Error ¶
func (e *RemoteCommandErr) Error() string
Click to show internal directories.
Click to hide internal directories.