localssdsize

package
v0.0.0-...-7df4f84 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

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`

Jump to

Keyboard shortcuts

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