Documentation ¶
Index ¶
- Constants
- type ApplicationConfig
- type ApplicationImage
- type ApplicationProvider
- type CronJob
- func (c CronJob) ApplicationConfigs() []ApplicationConfig
- func (c CronJob) Id() string
- func (c CronJob) IsOwnerOf(owner k8sMetaV1.OwnerReference) bool
- func (c CronJob) Kind() string
- func (c CronJob) Label() string
- func (c CronJob) Name() string
- func (c CronJob) OwnerReferences() []k8sMetaV1.OwnerReference
- type DaemonSet
- func (d DaemonSet) ApplicationConfigs() []ApplicationConfig
- func (d DaemonSet) Id() string
- func (d DaemonSet) IsOwnerOf(owner k8sMetaV1.OwnerReference) bool
- func (d DaemonSet) Kind() string
- func (d DaemonSet) Label() string
- func (d DaemonSet) Name() string
- func (d DaemonSet) OwnerReferences() []k8sMetaV1.OwnerReference
- type Deployment
- func (d Deployment) ApplicationConfigs() []ApplicationConfig
- func (d Deployment) Id() string
- func (d Deployment) IsOwnerOf(owner k8sMetaV1.OwnerReference) bool
- func (d Deployment) Kind() string
- func (d Deployment) Label() string
- func (d Deployment) Name() string
- func (d Deployment) OwnerReferences() []k8sMetaV1.OwnerReference
- type DeploymentConfig
- func (d DeploymentConfig) ApplicationConfigs() []ApplicationConfig
- func (d DeploymentConfig) Id() string
- func (d DeploymentConfig) IsOwnerOf(owner k8sMetaV1.OwnerReference) bool
- func (d DeploymentConfig) Kind() string
- func (d DeploymentConfig) Label() string
- func (d DeploymentConfig) Name() string
- func (d DeploymentConfig) OwnerReferences() []k8sMetaV1.OwnerReference
- type Image
- type ImageByStream
- type NamespaceModel
- func (namespace NamespaceModel) AddResource(resource Resource) bool
- func (namespace NamespaceModel) AllApplicationProviders() []ApplicationProvider
- func (namespace NamespaceModel) AllPodsOf(parent Resource) []Pod
- func (namespace NamespaceModel) AllResources() []Resource
- func (namespace NamespaceModel) LookupByKindAndId(kind string, id string) Resource
- func (namespace NamespaceModel) LookupOwner(owner k8sMetaV1.OwnerReference) Resource
- func (namespace NamespaceModel) Name() string
- func (namespace NamespaceModel) ResourcesByKind(kind string) []Resource
- type Pod
- func (p Pod) Id() string
- func (p Pod) IsOwnerOf(owner k8sMetaV1.OwnerReference) bool
- func (p Pod) IsRunning() bool
- func (d Pod) Kind() string
- func (p Pod) Label() string
- func (p Pod) Name() string
- func (p Pod) OwnerReferences() []k8sMetaV1.OwnerReference
- func (p *Pod) SetMetrics(podMetrics *k8sMetricsV1Beta1.PodMetrics)
- func (p Pod) UsageForContainer(containerName string) k8sCoreV1.ResourceList
- type Resource
- type StatefulSet
- func (s StatefulSet) ApplicationConfigs() []ApplicationConfig
- func (s StatefulSet) Id() string
- func (s StatefulSet) IsOwnerOf(owner k8sMetaV1.OwnerReference) bool
- func (s StatefulSet) Kind() string
- func (s StatefulSet) Label() string
- func (s StatefulSet) Name() string
- func (s StatefulSet) OwnerReferences() []k8sMetaV1.OwnerReference
- type TopologyModel
- func (topology TopologyModel) AddImage(imageName string, image ApplicationImage)
- func (topology TopologyModel) AddNamespace(name string) *NamespaceModel
- func (topology TopologyModel) AllNamespaces() []NamespaceModel
- func (topology TopologyModel) ImageByName(imageName string) (ApplicationImage, bool)
- func (topology TopologyModel) NamespaceByName(name string) *NamespaceModel
Constants ¶
View Source
const ( CompletedColor = "#66ff33" RunningColor = "#00ffff" FailedColor = "#ff3300" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationConfig ¶
type ApplicationConfig struct { ContainerName string ImageName string Resources k8sCoreV1.ResourceRequirements ResourcesUsage k8sCoreV1.ResourceList }
func (ApplicationConfig) ImageStreamId ¶
func (a ApplicationConfig) ImageStreamId() string
func (ApplicationConfig) IsImageStream ¶
func (a ApplicationConfig) IsImageStream() bool
type ApplicationImage ¶
type ApplicationProvider ¶
type ApplicationProvider interface {
ApplicationConfigs() []ApplicationConfig
}
type CronJob ¶
type CronJob struct {
Delegate k8sBatchV1.CronJob
}
func (CronJob) ApplicationConfigs ¶
func (c CronJob) ApplicationConfigs() []ApplicationConfig
func (CronJob) OwnerReferences ¶
func (c CronJob) OwnerReferences() []k8sMetaV1.OwnerReference
type DaemonSet ¶
func (DaemonSet) ApplicationConfigs ¶
func (d DaemonSet) ApplicationConfigs() []ApplicationConfig
func (DaemonSet) OwnerReferences ¶
func (d DaemonSet) OwnerReferences() []k8sMetaV1.OwnerReference
type Deployment ¶
type Deployment struct {
Delegate k8sAppsV1.Deployment
}
func (Deployment) ApplicationConfigs ¶
func (d Deployment) ApplicationConfigs() []ApplicationConfig
func (Deployment) Id ¶
func (d Deployment) Id() string
func (Deployment) IsOwnerOf ¶
func (d Deployment) IsOwnerOf(owner k8sMetaV1.OwnerReference) bool
func (Deployment) Kind ¶
func (d Deployment) Kind() string
func (Deployment) Label ¶
func (d Deployment) Label() string
func (Deployment) Name ¶
func (d Deployment) Name() string
func (Deployment) OwnerReferences ¶
func (d Deployment) OwnerReferences() []k8sMetaV1.OwnerReference
type DeploymentConfig ¶
type DeploymentConfig struct {
Delegate appsV1.DeploymentConfig
}
func (DeploymentConfig) ApplicationConfigs ¶
func (d DeploymentConfig) ApplicationConfigs() []ApplicationConfig
func (DeploymentConfig) Id ¶
func (d DeploymentConfig) Id() string
func (DeploymentConfig) IsOwnerOf ¶
func (d DeploymentConfig) IsOwnerOf(owner k8sMetaV1.OwnerReference) bool
func (DeploymentConfig) Kind ¶
func (d DeploymentConfig) Kind() string
func (DeploymentConfig) Label ¶
func (d DeploymentConfig) Label() string
func (DeploymentConfig) Name ¶
func (d DeploymentConfig) Name() string
func (DeploymentConfig) OwnerReferences ¶
func (d DeploymentConfig) OwnerReferences() []k8sMetaV1.OwnerReference
type Image ¶
type Image struct {
FullName string
}
func NewImageByRegistry ¶
func (*Image) ImageFullName ¶
func (*Image) ImageVersion ¶
type ImageByStream ¶
func NewImageByStream ¶
func NewImageByStream(imageFullName string, delegate imageV1.Image) *ImageByStream
func (*ImageByStream) ImageFullName ¶
func (i *ImageByStream) ImageFullName() string
func (*ImageByStream) ImageName ¶
func (i *ImageByStream) ImageName() string
func (*ImageByStream) ImageVersion ¶
func (i *ImageByStream) ImageVersion() string
type NamespaceModel ¶
type NamespaceModel struct {
// contains filtered or unexported fields
}
func (NamespaceModel) AddResource ¶
func (namespace NamespaceModel) AddResource(resource Resource) bool
func (NamespaceModel) AllApplicationProviders ¶
func (namespace NamespaceModel) AllApplicationProviders() []ApplicationProvider
func (NamespaceModel) AllPodsOf ¶
func (namespace NamespaceModel) AllPodsOf(parent Resource) []Pod
func (NamespaceModel) AllResources ¶
func (namespace NamespaceModel) AllResources() []Resource
func (NamespaceModel) LookupByKindAndId ¶
func (namespace NamespaceModel) LookupByKindAndId(kind string, id string) Resource
func (NamespaceModel) LookupOwner ¶
func (namespace NamespaceModel) LookupOwner(owner k8sMetaV1.OwnerReference) Resource
func (NamespaceModel) Name ¶
func (namespace NamespaceModel) Name() string
func (NamespaceModel) ResourcesByKind ¶
func (namespace NamespaceModel) ResourcesByKind(kind string) []Resource
type Pod ¶
type Pod struct { Delegate k8sCoreV1.Pod PodMetrics *k8sMetricsV1Beta1.PodMetrics }
func (Pod) OwnerReferences ¶
func (p Pod) OwnerReferences() []k8sMetaV1.OwnerReference
func (*Pod) SetMetrics ¶
func (p *Pod) SetMetrics(podMetrics *k8sMetricsV1Beta1.PodMetrics)
func (Pod) UsageForContainer ¶
func (p Pod) UsageForContainer(containerName string) k8sCoreV1.ResourceList
type Resource ¶
type Resource interface { Kind() string Id() string Name() string Label() string OwnerReferences() []k8sMetaV1.OwnerReference IsOwnerOf(owner k8sMetaV1.OwnerReference) bool }
type StatefulSet ¶
type StatefulSet struct {
Delegate k8sCoreV1.StatefulSet
}
func (StatefulSet) ApplicationConfigs ¶
func (s StatefulSet) ApplicationConfigs() []ApplicationConfig
func (StatefulSet) Id ¶
func (s StatefulSet) Id() string
func (StatefulSet) IsOwnerOf ¶
func (s StatefulSet) IsOwnerOf(owner k8sMetaV1.OwnerReference) bool
func (StatefulSet) Kind ¶
func (s StatefulSet) Kind() string
func (StatefulSet) Label ¶
func (s StatefulSet) Label() string
func (StatefulSet) Name ¶
func (s StatefulSet) Name() string
func (StatefulSet) OwnerReferences ¶
func (s StatefulSet) OwnerReferences() []k8sMetaV1.OwnerReference
type TopologyModel ¶
type TopologyModel struct {
// contains filtered or unexported fields
}
func NewTopologyModel ¶
func NewTopologyModel() *TopologyModel
func (TopologyModel) AddImage ¶
func (topology TopologyModel) AddImage(imageName string, image ApplicationImage)
func (TopologyModel) AddNamespace ¶
func (topology TopologyModel) AddNamespace(name string) *NamespaceModel
func (TopologyModel) AllNamespaces ¶
func (topology TopologyModel) AllNamespaces() []NamespaceModel
func (TopologyModel) ImageByName ¶
func (topology TopologyModel) ImageByName(imageName string) (ApplicationImage, bool)
func (TopologyModel) NamespaceByName ¶
func (topology TopologyModel) NamespaceByName(name string) *NamespaceModel
Click to show internal directories.
Click to hide internal directories.