utils

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolString added in v1.5.0

func BoolString(b *bool) string

BoolString

func BoolValue added in v1.5.0

func BoolValue(b *bool) bool

BoolValue

func ClusterRoleBindingList added in v1.9.0

func ClusterRoleBindingList(opt *options.SearchOptions) *rbacv1.ClusterRoleBindingList

ClusterRoleBindingList - return a list of ClusterRoleBinding(s)

func ClusterRoleList added in v1.9.0

func ClusterRoleList(opt *options.SearchOptions) *rbacv1.ClusterRoleList

ClusterRoleList - return a list of ClusterRole(s)

func ConfigMapList added in v1.2.3

func ConfigMapList(opt *options.SearchOptions) *corev1.ConfigMapList

ConfigMapList - return a list of ConfigMap(s)

func CronJobList added in v1.6.0

func CronJobList(opt *options.SearchOptions) *v1.CronJobList

CronJobList - return a list of CronJobs

func CsiDriverList added in v1.5.0

func CsiDriverList(opt *options.SearchOptions) *storagev1.CSIDriverList

CsiDriverList - return a list of CSIDriverList(s)

func DaemonsetList

func DaemonsetList(opt *options.SearchOptions) *appsv1.DaemonSetList

DaemonsetList - return a list of DaemonSet(s)

func DeploymentList

func DeploymentList(opt *options.SearchOptions) *appsv1.DeploymentList

DeploymentList - return a list of Deployment(s)

func GetAge

func GetAge(d time.Duration) string

GetAge - return human readable time expression

func HpaList

HpaList - return a list of HPA(s)

func IngressList added in v1.2.7

func IngressList(opt *options.SearchOptions) *networkingv1.IngressList

IngressList - return a list of Ingresses

func JobList added in v1.2.7

func JobList(opt *options.SearchOptions) *v1.JobList

JobList - return a list of Jobs

func NodeList

func NodeList(opt *options.SearchOptions) *corev1.NodeList

NodeList - return a list of Node(s)

func PodList

func PodList(opt *options.SearchOptions) *corev1.PodList

PodList - return a list of Pod(s)

func ReplicaSetList added in v1.6.0

func ReplicaSetList(opt *options.SearchOptions) *appsv1.ReplicaSetList

ReplicaSetList - return a list of ReplicaSets

func RoleBindingList added in v1.9.0

func RoleBindingList(opt *options.SearchOptions) *rbacv1.RoleBindingList

RoleBindingList - return a list of RoleBinding(s)

func RoleList added in v1.9.0

func RoleList(opt *options.SearchOptions) *rbacv1.RoleList

RoleList - return a list of Role(s)

func SecretList added in v1.2.3

func SecretList(opt *options.SearchOptions) *corev1.SecretList

SecretList - return a list of Secret(s)

func ServiceAccountList added in v1.9.0

func ServiceAccountList(opt *options.SearchOptions) *corev1.ServiceAccountList

ServiceList - return a list of Services

func ServiceList added in v1.4.1

func ServiceList(opt *options.SearchOptions) *corev1.ServiceList

ServiceList - return a list of Services

func StatefulSetList added in v1.2.0

func StatefulSetList(opt *options.SearchOptions) *appsv1.StatefulSetList

StatefulSetList - return a list of StatefulSets

func StorageClassList added in v1.5.0

func StorageClassList(opt *options.SearchOptions) *storagev1.StorageClassList

StorageClassList - return a list of StorageClassList(s)

func TrimQuoteAndSpace

func TrimQuoteAndSpace(input string) string

TrimQuoteAndSpace - remove Spaces, Tabs, SingleQuotes, DoubleQuites

Types

This section is empty.

Jump to

Keyboard shortcuts

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