Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build() (*RG, error)
- func (b *Builder) WithCSPCBlockDeviceList(cspcBDList []*apisv1alpha1.CStorPoolClusterBlockDevice) *Builder
- func (b *Builder) WithReadCache() *Builder
- func (b *Builder) WithSpare() *Builder
- func (b *Builder) WithType(poolType string) *Builder
- func (b *Builder) WithWriteCache(cacheFile string) *Builder
- type RG
- type RGList
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 (*Builder) WithCSPCBlockDeviceList ¶
func (b *Builder) WithCSPCBlockDeviceList(cspcBDList []*apisv1alpha1.CStorPoolClusterBlockDevice) *Builder
WithCSPCBlockDeviceList sets the blockdevices field with provided value
func (*Builder) WithReadCache ¶
WithReadCache flags the IsReadCache field of raid group.
func (*Builder) WithWriteCache ¶
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.
Click to show internal directories.
Click to hide internal directories.