proc

package
v0.0.0-...-4bf4b70 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: Apache-2.0, MIT Imports: 32 Imported by: 0

Documentation

Overview

Package proc implements a partial in-memory file system for procfs.

Index

Constants

View Source
const (
	// Name is the default filesystem name.
	Name = "proc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesystemType

type FilesystemType struct{}

FilesystemType is the factory class for procfs.

+stateify savable

func (FilesystemType) GetFilesystem

func (ft FilesystemType) GetFilesystem(ctx context.Context, vfsObj *vfs.VirtualFilesystem, creds *auth.Credentials, source string, opts vfs.GetFilesystemOptions) (*vfs.Filesystem, *vfs.Dentry, error)

GetFilesystem implements vfs.FilesystemType.GetFilesystem.

func (FilesystemType) Name

func (FilesystemType) Name() string

Name implements vfs.FilesystemType.Name.

func (FilesystemType) Release

func (FilesystemType) Release(ctx context.Context)

Release implements vfs.FilesystemType.Release.

func (*FilesystemType) StateFields

func (ft *FilesystemType) StateFields() []string

func (*FilesystemType) StateLoad

func (ft *FilesystemType) StateLoad(stateSourceObject state.Source)

func (*FilesystemType) StateSave

func (ft *FilesystemType) StateSave(stateSinkObject state.Sink)

func (*FilesystemType) StateTypeName

func (ft *FilesystemType) StateTypeName() string

type InternalData

type InternalData struct {
	Cgroups map[string]string
}

InternalData contains internal data passed in to the procfs mount via vfs.GetFilesystemOptions.InternalData.

+stateify savable

func (*InternalData) StateFields

func (i *InternalData) StateFields() []string

func (*InternalData) StateLoad

func (i *InternalData) StateLoad(stateSourceObject state.Source)

func (*InternalData) StateSave

func (i *InternalData) StateSave(stateSinkObject state.Sink)

func (*InternalData) StateTypeName

func (i *InternalData) StateTypeName() string

Jump to

Keyboard shortcuts

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