github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/apiserver/params/annotations.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package params 5 6 // AnnotationsGetResult holds entity annotations or retrieval error. 7 type AnnotationsGetResult struct { 8 EntityTag string 9 Annotations map[string]string 10 Error ErrorResult 11 } 12 13 // AnnotationsGetResults holds annotations associated with entities. 14 type AnnotationsGetResults struct { 15 Results []AnnotationsGetResult 16 } 17 18 // AnnotationsSet stores parameters for making Set call on Annotations client. 19 type AnnotationsSet struct { 20 Annotations []EntityAnnotations 21 } 22 23 // EntityAnnotations stores annotations for an entity. 24 type EntityAnnotations struct { 25 EntityTag string 26 Annotations map[string]string 27 }