Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalSSDSizeProvider ¶
type LocalSSDSizeProvider interface { // Computes local ssd disk size in GiB based on machine type name SSDSizeInGiB(string) uint64 }
LocalSSDSizeProvider contains methods to calculate local ssd disk size for GCE based on some input parameters (e.g. machine type name)
func NewSimpleLocalSSDProvider ¶
func NewSimpleLocalSSDProvider() LocalSSDSizeProvider
NewSimpleLocalSSDProvider creates an instance of SimpleLocalSSDProvider with `LocalSSDDiskSizeInGiB` as the disk size and returns a pointer to it
type SimpleLocalSSDProvider ¶
type SimpleLocalSSDProvider struct {
// contains filtered or unexported fields
}
SimpleLocalSSDProvider implements LocalSSDSizeProvider It always returns a constant size
func (*SimpleLocalSSDProvider) SSDSizeInGiB ¶
func (lsp *SimpleLocalSSDProvider) SSDSizeInGiB(_ string) uint64
SSDSizeInGiB Returns a constant disk size in GiB First parameter is not used and added to conform to the interface `LocalSSDSizeProvider`
Click to show internal directories.
Click to hide internal directories.