github.com/noisysockets/noisysockets@v0.21.2-0.20240515114641-7f467e651c90/config/types/types.go (about) 1 // SPDX-License-Identifier: MPL-2.0 2 /* 3 * Copyright (C) 2024 The Noisy Sockets Authors. 4 * 5 * This Source Code Form is subject to the terms of the Mozilla Public 6 * License, v. 2.0. If a copy of the MPL was not distributed with this 7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 8 */ 9 10 package types 11 12 type TypeMeta struct { 13 // APIVersion is the version of the API. 14 APIVersion string `yaml:"apiVersion" mapstructure:"apiVersion"` 15 // Kind is the kind of the resource. 16 Kind string `yaml:"kind" mapstructure:"kind"` 17 } 18 19 type Config interface { 20 GetAPIVersion() string 21 GetKind() string 22 PopulateTypeMeta() 23 }