...

Source file src/github.com/redhat-developer/odo/pkg/apiserver-impl/devstate/quantity.go

Documentation: github.com/redhat-developer/odo/pkg/apiserver-impl/devstate

     1  package devstate
     2  
     3  import "k8s.io/apimachinery/pkg/api/resource"
     4  
     5  func IsQuantityValid(quantity string) bool {
     6  	_, err := resource.ParseQuantity(quantity)
     7  	return err == nil
     8  }
     9  

View as plain text