File: model.go

package info (click to toggle)
kubernetes-split-yaml 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 372 kB
  • sloc: sh: 79; makefile: 14
file content (20 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package main

// KubernetesAPI is a minimal struct for unmarshaling kubernetes configs into
type KubernetesAPI struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	Metadata   struct {
		Name      string `yaml:"name"`
		Namespace string `yaml:"namespace"`
		Labels    struct {
			Source string `yaml:"source"`
		} `yaml:"labels"`
	} `yaml:"metadata"`
	// X is not a KubernetesAPI field, but a convienient field for templating purposes
	X struct {
		NS        string
		Outdir    string
		ShortKind string
	}
}