Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Client client.Client
ClaimSpec *v1alpha1.DeviceClaimSpec
ManualSelection bool
}
Config stores the configuration for selecting a block device from a block device claim. It contains the claim spec, selection type and client to interface with etcd
func NewConfig ¶
func NewConfig(claimSpec *v1alpha1.DeviceClaimSpec, client client.Client) *Config
NewConfig creates a new Config struct for the block device claim
func (*Config) FilterFrom ¶
func (c *Config) FilterFrom(bdList *apis.BlockDeviceList) (*apis.BlockDevice, error)
FilterFrom selects a single block device from a list of block devices
Click to show internal directories.
Click to hide internal directories.