Documentation ¶
Index ¶
- type Builder
- func (b *Builder) AppendErrorToBuilder(err error) *Builder
- func (b *Builder) Build() (*PS, error)
- func (b *Builder) WithCacheFilePath(cacheFile string) *Builder
- func (b *Builder) WithCompression(compressionType string) *Builder
- func (b *Builder) WithDefaultRaidGroupType(cacheFile string) *Builder
- func (b *Builder) WithNodeSelector(nodeSelector map[string]string) *Builder
- func (b *Builder) WithOverProvisioning() *Builder
- func (b *Builder) WithRaidGroupBuilder(raidGroupBuilder *raidgroup.Builder) *Builder
- type PS
- type PSList
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 (*Builder) AppendErrorToBuilder ¶
AppendErrorToBuilder appends error to the builder object
func (*Builder) WithCacheFilePath ¶
WithCacheFilePath sets the cacheFile field of pool spec with provided value.
func (*Builder) WithCompression ¶
WithCompression sets the Compression field of pool spec with provided value.
func (*Builder) WithDefaultRaidGroupType ¶
WithDefaultRaidGroupType sets the cacheFile field of pool spec with provided value.
func (*Builder) WithNodeSelector ¶
WithNodeSelector sets the node selector with provided value.
func (*Builder) WithOverProvisioning ¶
WithOverProvisioning flags OverProvisioning field of the pool spec.
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.