github.com/OpsMx/go-app-base@v0.0.24/birger/updater.go (about) 1 // Copyright 2022 OpsMx, Inc 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 birger 16 17 // ServiceUpdate contains an update message sent when a new service type is 18 // discovered or is no longer present in the controller. 19 // 20 // Operation is either 'update' or 'delete'. For both, 21 // Name, Type, and AgentName will be set. For update only, the 22 // URL and Token will also be included. 23 type ServiceUpdate struct { 24 Operation string // delete, update (implies add) 25 Name string 26 Type string 27 AgentName string 28 Annotations map[string]string // Only set for update 29 Token string // Only set for update 30 URL string // Only set for update 31 }