portworx

package
v0.20.4-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 35 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// PortworxStorage portworx storage name
	PortworxStorage torpedovolume.StorageProvisionerType = "portworx"
	// PortworxCsi csi storage name
	PortworxCsi torpedovolume.StorageProvisionerType = "csi"
)
View Source
const (
	// DriverName is the name of the portworx driver implementation
	DriverName = "pxd"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DiagRequestConfig

type DiagRequestConfig struct {
	// OutputFile for the diags.tgz
	OutputFile string
	// DockerHost config
	DockerHost string
	// ContainerName for PX
	ContainerName string
	// ExecPath of the program making this request (pxctl)
	ExecPath string
	// Profile when set diags command only dumps the go profile
	Profile bool
	// Live gets live diagnostics
	Live bool
	// Upload uploads the diags.tgz to s3
	Upload bool
	// All gets all possible diagnostics from PX
	All bool
	// Force overwrite of existing diags file.
	Force bool
	// OnHost indicates whether diags is being run on the host
	// or inside the container
	OnHost bool
	// Token for security authentication (if enabled)of the program making this request (pxctl)
	Token string
	// Extra indicates whether diags should attempt to collect extra information
	Extra bool
}

DiagRequestConfig is a request object which provides all the configuration details to PX for running diagnostics on a node. This object can also be passed over the wire through an API server for remote diag requests.

type ErrFailedToDecommissionNode

type ErrFailedToDecommissionNode struct {
	// Node is the node on which PX failed to remove from cluster
	Node string
	// Cause is the underlying cause of the error
	Cause string
}

ErrFailedToDecommissionNode error type for failed to remove from cluster

func (*ErrFailedToDecommissionNode) Error

type ErrFailedToDeleteVolume

type ErrFailedToDeleteVolume struct {
	// ID is the ID/name of the volume that failed to delete
	ID string
	// Cause is the underlying cause of the error
	Cause string
}

ErrFailedToDeleteVolume error type for failing to delete a volume

func (*ErrFailedToDeleteVolume) Error

func (e *ErrFailedToDeleteVolume) Error() string

type ErrFailedToGetAggregationLevel

type ErrFailedToGetAggregationLevel struct {
	// ID is the ID/name of the volume for which we could not get the aggregation level
	ID string
	// Cause is the underlying cause of the error
	Cause string
}

ErrFailedToGetAggregationLevel error type for failing to get/query the aggregation level

func (*ErrFailedToGetAggregationLevel) Error

type ErrFailedToGetNodeStatus

type ErrFailedToGetNodeStatus struct {
	// Node where the service is not starting
	Node string
	// Cause is the underlying cause of the error
	Cause string
}

ErrFailedToGetNodeStatus error type when fail to get node status

func (*ErrFailedToGetNodeStatus) Error

func (e *ErrFailedToGetNodeStatus) Error() string

type ErrFailedToGetReplicationFactor

type ErrFailedToGetReplicationFactor struct {
	// ID is the ID/name of the volume for which we could not get the replication factor
	ID string
	// Cause is the underlying cause of the error
	Cause string
}

ErrFailedToGetReplicationFactor error type for failing to get/query the current replication factor

func (*ErrFailedToGetReplicationFactor) Error

type ErrFailedToInspectVolume

type ErrFailedToInspectVolume struct {
	// ID is the ID/name of the volume that failed to inspect
	ID string
	// Cause is the underlying cause of the error
	Cause string
}

ErrFailedToInspectVolume error type for failing to inspect a volume

func (*ErrFailedToInspectVolume) Error

func (e *ErrFailedToInspectVolume) Error() string

type ErrFailedToRecoverDriver

type ErrFailedToRecoverDriver struct {
	// Node is the node on which PX failed to recover on
	Node node.Node
	// Cause is the underlying cause of the error
	Cause string
}

ErrFailedToRecoverDriver error type for failing to recover PX on a node

func (*ErrFailedToRecoverDriver) Error

func (e *ErrFailedToRecoverDriver) Error() string

type ErrFailedToRejoinNode

type ErrFailedToRejoinNode struct {
	// Node is the node on which PX failed to remove from cluster
	Node string
	// Cause is the underlying cause of the error
	Cause string
}

ErrFailedToRejoinNode error type for failed to remove from cluster

func (*ErrFailedToRejoinNode) Error

func (e *ErrFailedToRejoinNode) Error() string

type ErrFailedToSetReplicationFactor

type ErrFailedToSetReplicationFactor struct {
	// ID is the ID/name of the volume for which we could not set the replication factor
	ID string
	// Cause is the underlying cause of the error
	Cause string
}

ErrFailedToSetReplicationFactor error type for failing to set replication factor to given value

func (*ErrFailedToSetReplicationFactor) Error

type ErrFailedToUpgradeVolumeDriver

type ErrFailedToUpgradeVolumeDriver struct {
	// Version is the new image used to upgrade the volume driver
	Version string
	// Cause is the underlying cause of the error
	Cause string
}

ErrFailedToUpgradeVolumeDriver error type for failed volume driver upgrade

func (*ErrFailedToUpgradeVolumeDriver) Error

type ErrFailedToValidateAttachment

type ErrFailedToValidateAttachment struct {
	// ID is the ID/name of the volume that failed to validate attachment
	ID string
	// Cause is the underlying cause of the error
	Cause string
}

ErrFailedToValidateAttachment error type for failing to validate attachment of a volume

func (*ErrFailedToValidateAttachment) Error

type ErrFailedToWaitForPx

type ErrFailedToWaitForPx struct {
	// Node is the node on which PX was waited upon
	Node node.Node
	// Cause is the underlying cause of the error
	Cause string
}

ErrFailedToWaitForPx error type for failing to wait for PX to be up on a node

func (*ErrFailedToWaitForPx) Error

func (e *ErrFailedToWaitForPx) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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