github.com/spirius/terraform@v0.10.0-beta2.0.20170714185654-87b2c0cf8fea/terraform/graphtype_string.go (about)

     1  // Code generated by "stringer -type=GraphType context_graph_type.go"; DO NOT EDIT.
     2  
     3  package terraform
     4  
     5  import "fmt"
     6  
     7  const _GraphType_name = "GraphTypeInvalidGraphTypeLegacyGraphTypeRefreshGraphTypePlanGraphTypePlanDestroyGraphTypeApplyGraphTypeInputGraphTypeValidate"
     8  
     9  var _GraphType_index = [...]uint8{0, 16, 31, 47, 60, 80, 94, 108, 125}
    10  
    11  func (i GraphType) String() string {
    12  	if i >= GraphType(len(_GraphType_index)-1) {
    13  		return fmt.Sprintf("GraphType(%d)", i)
    14  	}
    15  	return _GraphType_name[_GraphType_index[i]:_GraphType_index[i+1]]
    16  }