Documentation
¶
Index ¶
Constants ¶
View Source
const ( NDMKind = "Disk" NDMVersion = "openebs.io/v1alpha1" NDMPrefix = "disk-" NDMHostKey = "kubernetes.io/hostname" NDMActive = "Active" NDMInactive = "Inactive" )
Variables ¶
This section is empty.
Functions ¶
func DeviceList ¶
func DeviceList(kuberconfig string)
DeviceList sets up the controller and calls DevList, which queries all the disk resources for this host from etcd and prints them to the standard output
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is the controller implementation for do resources
func NewController ¶
func NewController( host string, kubeclientset kubernetes.Interface, clientset clientset.Interface) *Controller
NewController returns a new sample controller
func (*Controller) DevList ¶
func (c *Controller) DevList() error
DevList queries the etcd for the devices on the host and prints them to stdout
func (*Controller) Run ¶
func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error
Run will discover the local disks and push them to the etcd
Click to show internal directories.
Click to hide internal directories.