Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for UnmarshalText (0.16 sec)

  1. internal/config/storageclass/storage-class.go

    // storage class kind supported.
    func IsValid(sc string) bool {
    	return sc == RRS || sc == STANDARD
    }
    
    // UnmarshalText unmarshals storage class from its textual form into
    // storageClass structure.
    func (sc *StorageClass) UnmarshalText(b []byte) error {
    	scStr := string(b)
    	if scStr == "" {
    		return nil
    	}
    	s, err := parseStorageClass(scStr)
    	if err != nil {
    		return err
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.8K bytes
    - Viewed (0)
Back to top