Documentation ¶
Index ¶
- func GetContainerStateField(c core_v1.ContainerState, f ContainerStateField) string
- func GetContainerStateMessage(c core_v1.ContainerStatus) string
- func GetRunningContainerStateField(field ContainerStateField) string
- func GetTerminatedContainerStateField(stateTerminated *core_v1.ContainerStateTerminated, f ContainerStateField) string
- func GetWaitingContainerStateField(stateWaiting *core_v1.ContainerStateWaiting, field ContainerStateField) string
- func PodConditionBreakdownKey(typ, status, reason string) string
- type ContainerStateBreakdown
- type ContainerStateField
- type PodConditionBreakdown
- func (p *PodConditionBreakdown) AddOrIncrementContainerState(containerName string, podExampleName string, containerConditionType string, ...) *PodConditionBreakdown
- func (p *PodConditionBreakdown) Build() shipper.ClusterCapacityReportBreakdown
- func (p *PodConditionBreakdown) IncrementCount() *PodConditionBreakdown
- func (p *PodConditionBreakdown) Key() string
- type Report
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContainerStateField ¶
func GetContainerStateField(c core_v1.ContainerState, f ContainerStateField) string
func GetContainerStateMessage ¶
func GetContainerStateMessage(c core_v1.ContainerStatus) string
func GetRunningContainerStateField ¶
func GetRunningContainerStateField(field ContainerStateField) string
func GetTerminatedContainerStateField ¶
func GetTerminatedContainerStateField(stateTerminated *core_v1.ContainerStateTerminated, f ContainerStateField) string
func GetWaitingContainerStateField ¶
func GetWaitingContainerStateField(stateWaiting *core_v1.ContainerStateWaiting, field ContainerStateField) string
Types ¶
type ContainerStateBreakdown ¶
type ContainerStateBreakdown struct {
// contains filtered or unexported fields
}
func NewContainerBreakdown ¶
func NewContainerBreakdown(containerName string) *ContainerStateBreakdown
func (*ContainerStateBreakdown) AddOrIncrementState ¶ added in v0.3.0
func (c *ContainerStateBreakdown) AddOrIncrementState( podExampleName string, containerConditionType string, containerConditionReason string, containerExampleMessage string, ) *ContainerStateBreakdown
func (*ContainerStateBreakdown) Build ¶
func (c *ContainerStateBreakdown) Build() shipper.ClusterCapacityReportContainerBreakdown
type ContainerStateField ¶
type ContainerStateField string
const ( ContainerStateFieldType ContainerStateField = "type" ContainerStateFieldReason ContainerStateField = "reason" ContainerStateFieldMessage ContainerStateField = "message" )
type PodConditionBreakdown ¶
type PodConditionBreakdown struct {
// contains filtered or unexported fields
}
func NewPodConditionBreakdown ¶
func NewPodConditionBreakdown( initialPodCount uint32, podConditionType string, podConditionStatus string, podConditionReason string, ) *PodConditionBreakdown
func (*PodConditionBreakdown) AddOrIncrementContainerState ¶ added in v0.3.0
func (p *PodConditionBreakdown) AddOrIncrementContainerState( containerName string, podExampleName string, containerConditionType string, containerConditionReason string, containerExampleMessage string, ) *PodConditionBreakdown
func (*PodConditionBreakdown) Build ¶
func (p *PodConditionBreakdown) Build() shipper.ClusterCapacityReportBreakdown
func (*PodConditionBreakdown) IncrementCount ¶
func (p *PodConditionBreakdown) IncrementCount() *PodConditionBreakdown
func (*PodConditionBreakdown) Key ¶
func (p *PodConditionBreakdown) Key() string
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
func (*Report) AddPodConditionBreakdownBuilder ¶
func (r *Report) AddPodConditionBreakdownBuilder(b *PodConditionBreakdown) *Report
func (*Report) Build ¶
func (r *Report) Build() *shipper.ClusterCapacityReport
Click to show internal directories.
Click to hide internal directories.