internal

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterControllerMode

func RegisterControllerMode(f ControllerInitFunc)

Types

type ControllerConfig

type ControllerConfig struct {
	// cluster info
	Region    string
	ClusterID string

	// subpath configs
	SkipSubpathCreation    bool
	EnableSubpathFinalizer bool

	// clients for kubernetes
	KubeClient kubernetes.Interface
	CNFSGetter cnfsv1beta1.CNFSGetter

	// clients for alibaba cloud
	NasClientFactory *cloud.NasClientFactory
}

func GetControllerConfig

func GetControllerConfig(meta *metadata.Metadata) (*ControllerConfig, error)

type ControllerFactory

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

func NewControllerFactory

func NewControllerFactory(config *ControllerConfig, defaultVolumeAs string) (*ControllerFactory, error)

func (*ControllerFactory) VolumeAs

func (fac *ControllerFactory) VolumeAs(what string) (Controller, error)

type ControllerInitFunc

type ControllerInitFunc func(*ControllerConfig) (Controller, error)

type NodeConfig

type NodeConfig struct {
	NodeName          string
	NodeIP            string
	EnableEFCCache    bool
	EnableMixRuntime  bool
	EnablePortCheck   bool
	EnableLosetup     bool
	EnableVolumeStats bool

	// clients for kubernetes
	KubeClient kubernetes.Interface
	CNFSGetter cnfsv1beta1.CNFSGetter
}

func GetNodeConfig

func GetNodeConfig() (*NodeConfig, error)

Jump to

Keyboard shortcuts

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