viewer

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var ControllerRevisionGKV = schema.GroupVersionKind{
	Group:   "apps",
	Version: "v1",
	Kind:    "ControllerRevision",
}
View Source
var ReplicasetGkV = schema.GroupVersionKind{
	Group:   "apps",
	Version: "v1",
	Kind:    "ReplicaSet",
}

Functions

This section is empty.

Types

type DSViewer

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

func (*DSViewer) Diff

func (r *DSViewer) Diff(origOldRev, origNewRev int64) (*string, error)

func (*DSViewer) List

func (r *DSViewer) List(isShowDetail bool) (table.Writer, error)

type DeployViewer

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

func (*DeployViewer) Diff

func (r *DeployViewer) Diff(origOldRev, origNewRev int64) (*string, error)

func (*DeployViewer) List

func (r *DeployViewer) List(isShowDetail bool) (table.Writer, error)

type KindViewer

type KindViewer interface {
	List(bool) (table.Writer, error)
	Diff(int64, int64) (*string, error)
}

func NewDSViewer

func NewDSViewer(clientset *kubernetes.Clientset, name string, namespace string) (KindViewer, error)

func NewDeployViewer

func NewDeployViewer(clientset *kubernetes.Clientset, deployName string, namespace string) (KindViewer, error)

func NewStsViewer

func NewStsViewer(clientset *kubernetes.Clientset, name string, namespace string) (KindViewer, error)

type StsViewer

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

func (*StsViewer) Diff

func (r *StsViewer) Diff(oldRev int64, newRev int64) (*string, error)

func (*StsViewer) List

func (r *StsViewer) List(isShowDetail bool) (table.Writer, error)

Jump to

Keyboard shortcuts

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