util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataFormFile

func GetDataFormFile(provider string) (*v1.CloudProvider, error)

getting provider data from cloud.yaml file data contained in [path to pharmer]/data/files/[provider]/cloud.yaml

func MBToGB

func MBToGB(in int64) (float64, error)

func QuantityP

func QuantityP(q resource.Quantity) *resource.Quantity

func ReadFile

func ReadFile(name string) ([]byte, error)

func Sanitize

func Sanitize(s string) string

func SortCloudProvider

func SortCloudProvider(data *v1.CloudProvider) *v1.CloudProvider

func WriteFile

func WriteFile(filename string, bytes []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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