cstorpoolspecs

package
v1.11.0-RC1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 3 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 PS

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns new instance of Builder

func (*Builder) AppendErrorToBuilder

func (b *Builder) AppendErrorToBuilder(err error) *Builder

AppendErrorToBuilder appends error to the builder object

func (*Builder) Build

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

Build returns the PoolSpec API instance

func (*Builder) WithCacheFilePath

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

WithCacheFilePath sets the cacheFile field of pool spec with provided value.

func (*Builder) WithCompression

func (b *Builder) WithCompression(compressionType string) *Builder

WithCompression sets the Compression field of pool spec with provided value.

func (*Builder) WithDefaultRaidGroupType

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

WithDefaultRaidGroupType sets the cacheFile field of pool spec with provided value.

func (*Builder) WithNodeSelector

func (b *Builder) WithNodeSelector(nodeSelector map[string]string) *Builder

WithNodeSelector sets the node selector with provided value.

func (*Builder) WithOverProvisioning

func (b *Builder) WithOverProvisioning() *Builder

WithOverProvisioning flags OverProvisioning field of the pool spec.

func (*Builder) WithRaidGroupBuilder

func (b *Builder) WithRaidGroupBuilder(raidGroupBuilder *raidgroup.Builder) *Builder

WithRaidGroupBuilder adds a raid group to this pool spec object.

NOTE:

raidGroup details are present in the provided raidGroup

builder object

type PS

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

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

func (*PS) ToAPI

func (ps *PS) ToAPI() *apisv1alpha1.PoolSpec

ToAPI returns the poolspec api object from the builder object.

type PSList

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

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

func (*PSList) Len

func (c *PSList) 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