raidgroups

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder is the builder object for RG

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns new instance of Builder

func (*Builder) Build

func (b *Builder) Build() (*RG, error)

Build returns the raid group

func (*Builder) WithCSPCBlockDeviceList

func (b *Builder) WithCSPCBlockDeviceList(cspcBDList []*apisv1alpha1.CStorPoolClusterBlockDevice) *Builder

WithCSPCBlockDeviceList sets the blockdevices field with provided value

func (*Builder) WithReadCache

func (b *Builder) WithReadCache() *Builder

WithReadCache flags the IsReadCache field of raid group.

func (*Builder) WithSpare

func (b *Builder) WithSpare() *Builder

WithSpare flags IsSpare field of raid group.

func (*Builder) WithType

func (b *Builder) WithType(poolType string) *Builder

WithType sets the type field of raid group with provided value.

func (*Builder) WithWriteCache

func (b *Builder) WithWriteCache(cacheFile string) *Builder

WithWriteCache flags the IsWriteCache field of raid group.

type RG

type RG struct {
	// contains filtered or unexported fields
}

RG is a wrapper over raidgroup api object. It provides build, validations and other common logic to be used by various feature specific callers.

func (*RG) ToAPI

func (rg *RG) ToAPI() *apisv1alpha1.RaidGroup

ToAPI returns raid group api object from the Raid Group object.

type RGList

type RGList struct {
	// contains filtered or unexported fields
}

RGList is a wrapper over raidgroup api object. It provides build, validations and other common logic to be used by various feature specific callers.

func (*RGList) Len

func (c *RGList) Len() int

Len returns the number of items present in the PSList

Jump to

Keyboard shortcuts

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