builder

package
v0.5.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

func PodConditionBreakdownKey

func PodConditionBreakdownKey(typ, status, reason string) 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

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 (*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 NewReport

func NewReport(ownerName string) *Report

func (*Report) AddPod

func (r *Report) AddPod(pod *core_v1.Pod)

func (*Report) AddPodConditionBreakdownBuilder

func (r *Report) AddPodConditionBreakdownBuilder(b *PodConditionBreakdown) *Report

func (*Report) Build

func (r *Report) Build() *shipper.ClusterCapacityReport

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL