Documentation ¶
Index ¶
- Constants
- func CreateAllowedExecutablesDiffs(executablesDiffs map[string]*api.ExecutablesDiffs) map[string]*AllowedExecutablesDiffs
- func NewLoopbackDirStream(name string) (fs.DirStream, syscall.Errno)
- func NewVolumeControlFile(fd int, path string, rootData *volumeControlRoot) fs.FileHandle
- type AllowedExecutables
- type AllowedExecutablesDiffs
- type ContainerRoot
- type ContainerRootString
- type ContainerRoots
- type FuseOptions
- type FuseVolumeController
- func (fvc *FuseVolumeController) AddAllowedExecutables(mountNamespace string, rootPath string, executables AllowedExecutables) error
- func (fvc *FuseVolumeController) AddMessageQueueUpdatePublisher(messageQueue *api.MessageQueue, volumeRootPath string, ...) error
- func (fvc *FuseVolumeController) DeleteAllowedExecutables(mountNamespace string, executablePaths []string) error
- func (fvc *FuseVolumeController) DeleteMessageQueueUpdatePublisher(mountNamespaces []string) error
- func (fvc *FuseVolumeController) GetContainerRootString(mountNamespace string) ContainerRootString
- func (fvc *FuseVolumeController) GetContainerRootsNamespaces() map[string]struct{}
- func (fvc *FuseVolumeController) Unmount() error
- func (fvc *FuseVolumeController) UpdateAllowedExecutables(mountNamespace string, executables AllowedExecutables) error
- func (fvc *FuseVolumeController) Wait()
- type PublishingContainers
Constants ¶
View Source
const ( AllowedExecutableChecksumKey = "checksum" AllowedExecutableWritableKey = "writable" )
Variables ¶
This section is empty.
Functions ¶
func CreateAllowedExecutablesDiffs ¶
func CreateAllowedExecutablesDiffs( executablesDiffs map[string]*api.ExecutablesDiffs) map[string]*AllowedExecutablesDiffs
func NewLoopbackDirStream ¶
NewLoopbackDirStream open a directory for reading as a DirStream
func NewVolumeControlFile ¶
func NewVolumeControlFile( fd int, path string, rootData *volumeControlRoot) fs.FileHandle
Types ¶
type AllowedExecutables ¶
type AllowedExecutables map[string]*allowedExecutable
key: executable path
func CreateAllowedExecutables ¶
func CreateAllowedExecutables( lifetimeExecutables map[string]*api.Executable) AllowedExecutables
func CreateAllowedExecutablesForExternalAllowedExecutables ¶
func CreateAllowedExecutablesForExternalAllowedExecutables( executables []*api.ExternalAllowedExecutable) AllowedExecutables
type AllowedExecutablesDiffs ¶
type AllowedExecutablesDiffs struct { AddedAndUpdated AllowedExecutables DeletedPaths []string }
type ContainerRoot ¶
type ContainerRoot struct {
// contains filtered or unexported fields
}
type ContainerRootString ¶
type ContainerRoots ¶
type ContainerRoots map[string]*ContainerRoot
key: mount namespace, [TODO] update
type FuseOptions ¶
type FuseOptions struct { MountPointsHostRootDirectory string Debug bool ChecksumCalculationAlways bool }
func NewFuseOptions ¶
func NewFuseOptions() *FuseOptions
func (*FuseOptions) AddFlags ¶
func (fo *FuseOptions) AddFlags(flagSet *pflag.FlagSet)
type FuseVolumeController ¶
type FuseVolumeController struct {
// contains filtered or unexported fields
}
func NewFuseController ¶
func (*FuseVolumeController) AddAllowedExecutables ¶
func (fvc *FuseVolumeController) AddAllowedExecutables( mountNamespace string, rootPath string, executables AllowedExecutables) error
func (*FuseVolumeController) AddMessageQueueUpdatePublisher ¶
func (fvc *FuseVolumeController) AddMessageQueueUpdatePublisher( messageQueue *api.MessageQueue, volumeRootPath string, mountNamespaces []string) error
func (*FuseVolumeController) DeleteAllowedExecutables ¶
func (fvc *FuseVolumeController) DeleteAllowedExecutables( mountNamespace string, executablePaths []string) error
func (*FuseVolumeController) DeleteMessageQueueUpdatePublisher ¶
func (fvc *FuseVolumeController) DeleteMessageQueueUpdatePublisher( mountNamespaces []string) error
func (*FuseVolumeController) GetContainerRootString ¶
func (fvc *FuseVolumeController) GetContainerRootString( mountNamespace string) ContainerRootString
used by only test cases in <pkg/controller/volumecontrol/volume_controller_test.go>
func (*FuseVolumeController) GetContainerRootsNamespaces ¶
func (fvc *FuseVolumeController) GetContainerRootsNamespaces() map[string]struct{}
func (*FuseVolumeController) Unmount ¶
func (fvc *FuseVolumeController) Unmount() error
func (*FuseVolumeController) UpdateAllowedExecutables ¶
func (fvc *FuseVolumeController) UpdateAllowedExecutables( mountNamespace string, executables AllowedExecutables) error
func (*FuseVolumeController) Wait ¶
func (fvc *FuseVolumeController) Wait()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.