package
Version:
v0.8.1
Opens a new window with list of versions in this module.
Published: Jan 17, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Metadata struct {
Name string `yaml:"name"`
Namespace string `yaml:"namespace"`
Labels map[string]string `yaml:"labels"`
}
type Port struct {
Name string `yaml:"name"`
Protocol string `yaml:"protocol"`
Port int `yaml:"port"`
TargetPort int `yaml:"targetPort"`
}
type Service struct {
APIVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
Metadata *Metadata `yaml:"metadata"`
Spec *Spec `yaml:"spec"`
}
type Spec struct {
Selector map[string]string `yaml:"selector"`
Ports []*Port `yaml:"ports"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.