blockdevice

package
v0.4.0-RC1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: Apache-2.0 Imports: 7 Imported by: 1

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

Jump to

Keyboard shortcuts

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