generics

package
v0.7.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddonSignature = func(_ extensionsv1alpha1.Addon, _ extensionsv1alpha1.AddonList) {
}
View Source
var BackupPolicyTemplateSignature = func(_ appsv1alpha1.BackupPolicyTemplate, _ appsv1alpha1.BackupPolicyTemplateList) {
}
View Source
var CSIDriverSignature = func(_ storagev1.CSIDriver, _ storagev1.CSIDriverList) {}
View Source
var ClusterDefinitionSignature = func(_ appsv1alpha1.ClusterDefinition, _ appsv1alpha1.ClusterDefinitionList) {
}
View Source
var ClusterSignature = func(_ appsv1alpha1.Cluster, _ appsv1alpha1.ClusterList) {}
View Source
var ClusterVersionSignature = func(_ appsv1alpha1.ClusterVersion, _ appsv1alpha1.ClusterVersionList) {}
View Source
var ComponentClassDefinitionSignature = func(_ appsv1alpha1.ComponentClassDefinition, _ appsv1alpha1.ComponentClassDefinitionList) {}
View Source
var ComponentResourceConstraintSignature = func(_ appsv1alpha1.ComponentResourceConstraint, _ appsv1alpha1.ComponentResourceConstraintList) {}
View Source
var ConfigConstraintSignature = func(_ appsv1alpha1.ConfigConstraint, _ appsv1alpha1.ConfigConstraintList) {
}
View Source
var ConfigMapSignature = func(_ corev1.ConfigMap, _ corev1.ConfigMapList) {}
View Source
var ConfigurationSignature = func(_ appsv1alpha1.Configuration, _ appsv1alpha1.ConfigurationList) {}
View Source
var CronJobSignature = func(_ batchv1.CronJob, _ batchv1.CronJobList) {}
View Source
var DeploymentSignature = func(_ appsv1.Deployment, _ appsv1.DeploymentList) {}
View Source
var EndpointsSignature = func(_ corev1.Endpoints, _ corev1.EndpointsList) {}
View Source
var EventSignature = func(_ corev1.Event, _ corev1.EventList) {}
View Source
var JobSignature = func(_ batchv1.Job, _ batchv1.JobList) {}
View Source
var OpsRequestSignature = func(_ appsv1alpha1.OpsRequest, _ appsv1alpha1.OpsRequestList) {}
View Source
var PersistentVolumeClaimSignature = func(_ corev1.PersistentVolumeClaim, _ corev1.PersistentVolumeClaimList) {}
View Source
var PodDisruptionBudgetSignature = func(_ policyv1.PodDisruptionBudget, _ policyv1.PodDisruptionBudgetList) {
}
View Source
var PodSignature = func(_ corev1.Pod, _ corev1.PodList) {}
View Source
var ReplicaSetSignature = func(_ appsv1.ReplicaSet, _ appsv1.ReplicaSetList) {}
View Source
var SecretSignature = func(_ corev1.Secret, _ corev1.SecretList) {}
View Source
var ServiceSignature = func(_ corev1.Service, _ corev1.ServiceList) {}
View Source
var StatefulSetSignature = func(_ appsv1.StatefulSet, _ appsv1.StatefulSetList) {}
View Source
var StorageClassSignature = func(_ storagev1.StorageClass, _ storagev1.StorageClassList) {}
View Source
var StorageProviderSignature = func(_ storagev1alpha1.StorageProvider, _ storagev1alpha1.StorageProviderList) {}
View Source
var VolumeSnapshotSignature = func(_ snapshotv1.VolumeSnapshot, _ snapshotv1.VolumeSnapshotList) {}

Functions

func ToGVK

func ToGVK(object client.Object) schema.GroupVersionKind

Types

type ObjList

type ObjList[T Object] interface{}

ObjList a generic representation of various resource list object types

type Object

type Object interface{}

Object a generic representation of various resource object types

type PObjList

type PObjList[T Object, L ObjList[T]] interface {
	*L
	client.ObjectList
}

PObjList pointer of ObjList

type PObject

type PObject[T Object] interface {
	*T
	client.Object
	DeepCopy() *T // DeepCopy have a pointer receiver
}

PObject pointer of Object

Jump to

Keyboard shortcuts

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