github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/api/types/container/change_types.go (about)

     1  package container
     2  
     3  const (
     4  	// ChangeModify represents the modify operation.
     5  	ChangeModify ChangeType = 0
     6  	// ChangeAdd represents the add operation.
     7  	ChangeAdd ChangeType = 1
     8  	// ChangeDelete represents the delete operation.
     9  	ChangeDelete ChangeType = 2
    10  )
    11  
    12  func (ct ChangeType) String() string {
    13  	switch ct {
    14  	case ChangeModify:
    15  		return "C"
    16  	case ChangeAdd:
    17  		return "A"
    18  	case ChangeDelete:
    19  		return "D"
    20  	default:
    21  		return ""
    22  	}
    23  }