Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ImageMatchers = []Matcher{
{"CronJob", specJobTemplateSpec},
{"Pod", specPodSpec},
{"Deployment", specPodTemplateSpec},
{"DaemonSet", specPodTemplateSpec},
{"Job", specPodTemplateSpec},
{"ReplicaSet", specPodTemplateSpec},
{"ReplicationController", specPodTemplateSpec},
{"StatefulSet", specPodTemplateSpec},
}
View Source
var ResourceMatchers = []Matcher{
{"CronJob", resourceJobTemplateSpec},
{"Pod", resourcePodSpec},
{"Deployment", resourcePodTemplateSpec},
{"DaemonSet", resourcePodTemplateSpec},
{"Job", resourcePodTemplateSpec},
{"ReplicaSet", resourcePodTemplateSpec},
{"ReplicationController", resourcePodTemplateSpec},
{"StatefulSet", resourcePodTemplateSpec},
}
Functions ¶
This section is empty.
Types ¶
type ContainerResource ¶
type ContainerResourceResult ¶
type ContainerResourceResult struct { ParentName string `json:"parentName"` ParentType string `json:"parentType"` Name string `json:"name"` Resource ContainerResource `json:"resources,omitempty"` }
type ContainerResources ¶
type ContainerResources []ContainerResourceResult
type Svc ¶
type Svc struct {
// contains filtered or unexported fields
}
func (Svc) ContainerResources ¶
func (m Svc) ContainerResources(filePath string) (ContainerResources, error)
ContainerResources lists resources configuration in the manifest at filePath
Click to show internal directories.
Click to hide internal directories.