github.com/google/osv-scalibr@v0.4.1/veles/secret.go (about) 1 // Copyright 2025 Google LLC 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 veles 16 17 // Secret is a secret that can be found by a Detector and validated by a 18 // Validator. 19 // 20 // Detectors return slices of Secret and validators accept concrete types. That 21 // allows them to be used independently with maximum flexibility. 22 // 23 // While the interface is empty, each Secret should be convertible to and from 24 // the Veles protocol buffer message format; see the velesproto package. 25 // In order to not have the library explicitly depend on protocol buffers, we 26 // did not make that requirement part of the interface. 27 type Secret any