Move kv loader code to public package.

This commit is contained in:
Jeffrey Regan
2019-10-14 16:25:20 -07:00
parent 3a15f450a9
commit 4e9d42fae7
42 changed files with 222 additions and 166 deletions

View File

@@ -182,12 +182,6 @@ type PluginConfig struct {
Enabled bool
}
// Pair is a key value pair.
type Pair struct {
Key string
Value string
}
type PluginType string
func (p PluginType) IsUndefined() bool {

View File

@@ -3,7 +3,7 @@
package types
// KvPairSources contains some generic sources for generators.
// KvPairSources defines places to obtain key value pairs.
type KvPairSources struct {
// LiteralSources is a list of literal
// pair sources. Each literal source should

10
pkg/types/pair.go Normal file
View File

@@ -0,0 +1,10 @@
// Copyright 2019 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package types
// Pair is a key value pair.
type Pair struct {
Key string
Value string
}