history

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeploymentRevisionAnnotation = "deployment.kubernetes.io/revision"
)

Variables

This section is empty.

Functions

func Revision

func Revision(obj runtime.Object) (int64, error)

Types

type DaemonsetViewer

type DaemonsetViewer struct {
	// contains filtered or unexported fields
}

func (*DaemonsetViewer) ViewHistory

func (h *DaemonsetViewer) ViewHistory(namespace, name string) ([]*RevisionHistory, []*RevisionHistory, error)

type DeploymentViewer

type DeploymentViewer struct {
	// contains filtered or unexported fields
}

func (*DeploymentViewer) ViewHistory

func (h *DeploymentViewer) ViewHistory(namespace, name string) ([]*RevisionHistory, []*RevisionHistory, error)

type HistoryStatus

type HistoryStatus struct {
	DesiredReplicas      int32 `json:"desiredReplicas"`
	FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty"`
	ReadyReplicas        int32 `json:"readyReplicas"`
	AvailableReplicas    int32 `json:"availableReplicas" `
}

type RevisionHistory

type RevisionHistory struct {
	Revision        int64             `json:"revision"`
	Name            string            `json:"name"`
	Labels          map[string]string `json:"labels"`
	Annotations     map[string]string `json:"annotations"`
	CreateTimestamp metav1.Time       `json:"createTimestamp"`
	Status          HistoryStatus     `json:"status"`
	Images          []string          `json:"images"`
}

type StatefulSetViewer

type StatefulSetViewer struct {
	// contains filtered or unexported fields
}

func (*StatefulSetViewer) ViewHistory

func (h *StatefulSetViewer) ViewHistory(namespace, name string) ([]*RevisionHistory, []*RevisionHistory, error)

type Viewer

type Viewer interface {
	ViewHistory(namespace, name string) ([]*RevisionHistory, []*RevisionHistory, error)
}

func ViewerFor

func ViewerFor(c kubernetes.Interface, kind schema.GroupKind) Viewer

Jump to

Keyboard shortcuts

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