storage

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CasDescribeList added in v0.3.0

func CasDescribeList() []func(*client.K8sClient, string) error

CasDescribeList returns a list of functions which describe a Storage i.e. a zfspool/volume-group

func CasDescribeMap

func CasDescribeMap() map[string]func(*client.K8sClient, string) error

CasDescribeMap returns a map cas-types to functions for Storage describing

func CasList

CasList has a list of method implementations for different cas-types

func CasListMap

func CasListMap() map[string]func(*client.K8sClient, []string) ([]metav1.TableColumnDefinition, []metav1.TableRow, error)

CasListMap returns a map cas-types to functions for Storage listing

func Describe

func Describe(storages []string, openebsNs, casType string) error

Describe manages various implementations of Storage Describing

func DescribeLVMvg added in v0.3.0

func DescribeLVMvg(c *client.K8sClient, vg string) error

DescribeLVMvg describes an LVM volume group

func DescribeZFSNode added in v0.3.0

func DescribeZFSNode(c *client.K8sClient, sName string) error

DescribeZFSNode describes a ZFS node & the zfspools present in it

func Get

func Get(pools []string, openebsNS string, casType string) error

Get manages various implementations of Storage listing

func GetVolumeGroups

func GetVolumeGroups(c *client.K8sClient, vgs []string) ([]metav1.TableColumnDefinition, []metav1.TableRow, error)

GetVolumeGroups lists all volume groups by node

func GetZFSPools

func GetZFSPools(c *client.K8sClient, zfsnodes []string) ([]metav1.TableColumnDefinition, []metav1.TableRow, error)

GetZFSPools lists all zfspools by zfsnodes

Types

type LVMvgDesc added in v0.3.0

type LVMvgDesc struct {
	HostName            string
	Namespace           string
	NumberOfPools       int
	Size                string
	TotalFree           string
	TotalLogicalVolumes int32
	TotalPVs            int32
}

LVMvgDesc describes an LVM Volume group & the vgs present in it

type ZfsNodeDesc added in v0.3.0

type ZfsNodeDesc struct {
	HostName      string
	Namespace     string
	NumberOfPools int
	TotalFree     string
}

ZfsNodeDesc describes a zfsnode

Jump to

Keyboard shortcuts

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