diagnose

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Route                 = ResourceKind("Route")
	Ingress               = ResourceKind("Ingress")
	IngressClass          = ResourceKind("IngressClass")
	Service               = ResourceKind("Service")
	Deployment            = ResourceKind("Deployment")
	ReplicaSet            = ResourceKind("ReplicaSet")
	Pod                   = ResourceKind("Pod")
	StatefulSet           = ResourceKind("StatefulSet")
	PersistentVolumeClaim = ResourceKind("PersistentVolumeClaim")
	StorageClass          = ResourceKind("StorageClass")
	Unknown               = ResourceKind("Unknown")
)
View Source
const NotFoundMsg = `` /* 299-byte string literal not displayed */
View Source
const Now = "now"

Variables

This section is empty.

Functions

func Diagnose

func Diagnose(ctx context.Context, logger logr.Logger, cfg *rest.Config, kind ResourceKind, namespace, name string) (bool, error)

Types

type ContextKey

type ContextKey string
const NowContextKey ContextKey = "now"

type ResourceKind

type ResourceKind string

func NewResourceKind

func NewResourceKind(kind string) ResourceKind

func (ResourceKind) Matches

func (k ResourceKind) Matches(kind schema.ObjectKind) bool

func (ResourceKind) String

func (k ResourceKind) String() string

Jump to

Keyboard shortcuts

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