github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/pkg/model/v1beta1/nodeinfo_string.go (about)

     1  // Code generated by "stringer -type=NodeType --trimprefix=NodeType --output nodeinfo_string.go"; DO NOT EDIT.
     2  
     3  package v1beta1
     4  
     5  import "strconv"
     6  
     7  func _() {
     8  	// An "invalid array index" compiler error signifies that the constant values have changed.
     9  	// Re-run the stringer command to generate them again.
    10  	var x [1]struct{}
    11  	_ = x[nodeTypeUnknown-0]
    12  	_ = x[NodeTypeCompute-1]
    13  }
    14  
    15  const _NodeType_name = "nodeTypeUnknownCompute"
    16  
    17  var _NodeType_index = [...]uint8{0, 15, 22}
    18  
    19  func (i NodeType) String() string {
    20  	if i < 0 || i >= NodeType(len(_NodeType_index)-1) {
    21  		return "NodeType(" + strconv.FormatInt(int64(i), 10) + ")"
    22  	}
    23  	return _NodeType_name[_NodeType_index[i]:_NodeType_index[i+1]]
    24  }