github.com/LukasHeimann/cloudfoundrycli/v8@v8.4.4/resources/manifest_diff_resource.go (about)

     1  package resources
     2  
     3  type DiffOperation string
     4  
     5  const AddOperation DiffOperation = "add"
     6  const ReplaceOperation DiffOperation = "replace"
     7  const RemoveOperation DiffOperation = "remove"
     8  
     9  type Diff struct {
    10  	Op    DiffOperation `json:"op"`
    11  	Path  string        `json:"path"`
    12  	Was   interface{}   `json:"was"`
    13  	Value interface{}   `json:"value"`
    14  }
    15  
    16  type ManifestDiff struct {
    17  	Diffs []Diff `json:"diff"`
    18  }