sidecarmounter

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GCSFuseAppName = "gke-gcs-fuse-csi"

Variables

This section is empty.

Functions

func NewErrorWriter

func NewErrorWriter(errorFile string) io.Writer

Types

type MountConfig

type MountConfig struct {
	FileDescriptor int       `json:"-"`
	VolumeName     string    `json:"volumeName,omitempty"`
	BucketName     string    `json:"bucketName,omitempty"`
	BufferDir      string    `json:"-"`
	ConfigFile     string    `json:"-"`
	Options        []string  `json:"options,omitempty"`
	ErrWriter      io.Writer `json:"-"`
}

MountConfig contains the information gcsfuse needs.

type Mounter

type Mounter struct {
	// contains filtered or unexported fields
}

Mounter will be used in the sidecar container to invoke gcsfuse.

func New

func New(mounterPath string) *Mounter

New returns a Mounter for the current system. It provides an option to specify the path to gcsfuse binary.

func (*Mounter) GetCmds

func (m *Mounter) GetCmds() []*exec.Cmd

func (*Mounter) Mount

func (m *Mounter) Mount(mc *MountConfig) (*exec.Cmd, error)

Jump to

Keyboard shortcuts

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