driver

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CSIDriverName = "k8s.csi.datadoghq.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DDVolumeRequest

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

DDVolumeRequest encapsulates the properties of a request for datadog CSI volume

type DatadogCSIDriver

type DatadogCSIDriver struct {
	csi.UnimplementedNodeServer
	csi.UnimplementedIdentityServer
	// contains filtered or unexported fields
}

DatadogCSIDriver is datadog CSI driver implementing CSI Node and Identity Server

func NewDatadogCSIDriver

func NewDatadogCSIDriver(name, apmHostSocketPath, dsdHostSocketPath, version string) (*DatadogCSIDriver, error)

NewDatadogCSIDriver builds and returns a new Datadog CSI driver

func (*DatadogCSIDriver) DDVolumeRequest

func (d *DatadogCSIDriver) DDVolumeRequest(req *csi.NodePublishVolumeRequest) (*DDVolumeRequest, error)

NewDDVolumeRequest builds a DDVolumeRequest object based on csi node publish volume request

func (*DatadogCSIDriver) GetPluginCapabilities

func (*DatadogCSIDriver) GetPluginInfo

func (*DatadogCSIDriver) NodeGetCapabilities

func (*DatadogCSIDriver) NodeGetInfo

func (*DatadogCSIDriver) NodePublishVolume

func (*DatadogCSIDriver) NodeUnpublishVolume

func (*DatadogCSIDriver) Probe

func (*DatadogCSIDriver) Version

func (driver *DatadogCSIDriver) Version() string

Version returns the CSI driver version

type Mode

type Mode string
const (
	// ModeSocket is the socket mode, equivalent to Socket hostpath volumes
	ModeSocket Mode = "socket"
	// ModeLocal is the local mode, equivalent to Directory hostpath volumes
	ModeLocal = "local"
)

type VolumeType

type VolumeType string
const (
	// APMSocket mounts the apm socket file after verifying the existence of the file
	APMSocket VolumeType = "APMSocket"

	// APMSocketDirectory mounts the parent directory of the apm socket
	APMSocketDirectory VolumeType = "APMSocketDirectory"

	// DSDSocket mounts the dogstatsd socket file after verifying the existence of the file
	DSDSocket VolumeType = "DSDSocket"

	// DSDSocketDirectory mounts the parent directory of the dogstatsd socket
	DSDSocketDirectory VolumeType = "DSDSocketDirectory"
)

Directories

Path Synopsis
Package publishers contains the logic for publishing datadog CSI volumes depending on the volume mode.
Package publishers contains the logic for publishing datadog CSI volumes depending on the volume mode.

Jump to

Keyboard shortcuts

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