Documentation ¶
Index ¶
Constants ¶
View Source
const ( // KubernetesHostNameLabel is the kubernetes hostname label KubernetesHostNameLabel = kubernetesLabelPrefix + blockdevice.HostName // BlockDeviceTagLabel is the label used to tag a blockdevice for // a particular use case. // BlockDevices having this label can only be claimed by BDCs which // have a matching label selector. BlockDeviceTagLabel = openebsLabelPrefix + blockDeviceTag )
View Source
const (
// NamespaceENV is the name of environment variable to get the namespace
NamespaceENV = "NAMESPACE"
)
Variables ¶
This section is empty.
Functions ¶
func GenerateLabelFilter ¶ added in v0.5.0
GenerateLabelFilter is used to generate a label filter that can be used while listing resources
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the wrapper over the k8s client that will be used by NDM to interface with etcd
func (*Client) InitClient ¶ added in v0.5.0
InitClient sets the client using the config
func (*Client) ListBlockDevice ¶
func (cl *Client) ListBlockDevice(filters ...string) ([]blockdevice.BlockDevice, error)
ListBlockDevice lists the block device from etcd based on the filters used
func (*Client) RegisterAPI ¶
RegisterAPI registers the API scheme in the client using the manager. This function needs to be called only once a client object
Click to show internal directories.
Click to hide internal directories.