github.com/ystia/yorc/v4@v4.3.0/storage/store/structs.go (about) 1 // Copyright 2019 Bull S.A.S. Atos Technologies - Bull, Rue Jean Jaures, B.P.68, 78340, Les Clayes-sous-Bois, France. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package store 16 17 // KeyValueIn describes a Key-Value representation Input for storing data 18 type KeyValueIn struct { 19 Key string 20 Value interface{} 21 } 22 23 // KeyValueOut describes a Key-Value representation Output for retrieving data 24 type KeyValueOut struct { 25 Key string 26 // Last modification index for the KeyValue 27 LastModifyIndex uint64 28 // Value in generic format map[string]interface{} which can be cast to struct with mapstructure.Decode by instance 29 Value map[string]interface{} 30 // RawValue is the raw value representation without decode 31 RawValue []byte 32 }