Documentation ¶
Overview ¶
Package k8s provides kubernetes control functionality
Package k8s provides kubernetes control functionality
Index ¶
- Constants
- Variables
- type Controller
- type CreateOption
- type CreateOptions
- type CronJob
- type DeleteAllOfOptions
- type DeleteOptions
- type Deployment
- type DeploymentList
- type EnvVar
- type GetOption
- type GetOptions
- type InNamespace
- type Job
- type JobList
- type JobStatus
- type ListOption
- type ListOptions
- type Manager
- type MatchingLabels
- type Object
- type ObjectKey
- type ObjectMeta
- type Option
- func WithControllerName(name string) Option
- func WithDialer(der net.Dialer) Option
- func WithErrGroup(eg errgroup.Group) Option
- func WithLeaderElection(enabled bool, id, namespace string) Option
- func WithManager(mgr manager.Manager) Option
- func WithMetricsAddress(addr string) Option
- func WithResourceController(rc ResourceController) Option
- type OwnerReference
- type PersistentVolumeClaim
- type PersistentVolumeClaimList
- type PersistentVolumeClaimSpec
- type Pod
- type ResourceController
- type Result
- type TypedLocalObjectReference
- type UpdateOptions
- type VolumeSnapshot
- type VolumeSnapshotList
Constants ¶
View Source
const ( DeletePropagationBackground = metav1.DeletePropagationBackground WatchDeletedEvent = watch.Deleted SelectionOpEquals = selection.Equals SelectionOpExists = selection.Exists PodIndexLabel = appsv1.PodIndexLabel )
Variables ¶
View Source
var Now = metav1.Now
Functions ¶
This section is empty.
Types ¶
type Controller ¶
func New ¶
func New(opts ...Option) (cl Controller, err error)
type CreateOption ¶ added in v1.7.13
type CreateOption = client.CreateOption
type CreateOptions ¶ added in v1.7.13
type CreateOptions = client.CreateOptions
type DeleteAllOfOptions ¶ added in v1.7.13
type DeleteAllOfOptions = client.DeleteAllOfOptions
type DeleteOptions ¶ added in v1.7.13
type DeleteOptions = client.DeleteOptions
type Deployment ¶ added in v1.7.13
type Deployment = appsv1.Deployment
type DeploymentList ¶ added in v1.7.13
type DeploymentList = appsv1.DeploymentList
type GetOptions ¶ added in v1.7.13
type GetOptions = client.GetOptions
type InNamespace ¶ added in v1.7.13
type InNamespace = client.InNamespace
type ListOption ¶ added in v1.7.13
type ListOption = client.ListOption
type ListOptions ¶ added in v1.7.13
type ListOptions = client.ListOptions
type MatchingLabels ¶ added in v1.7.13
type MatchingLabels = client.MatchingLabels
type ObjectMeta ¶ added in v1.7.13
type ObjectMeta = metav1.ObjectMeta
type Option ¶
type Option func(*controller) error
func WithControllerName ¶
func WithDialer ¶ added in v1.0.2
func WithErrGroup ¶
func WithLeaderElection ¶ added in v1.7.13
func WithManager ¶
func WithMetricsAddress ¶
func WithResourceController ¶
func WithResourceController(rc ResourceController) Option
type OwnerReference ¶ added in v1.7.11
type OwnerReference = metav1.OwnerReference
type PersistentVolumeClaim ¶ added in v1.7.13
type PersistentVolumeClaim = corev1.PersistentVolumeClaim
type PersistentVolumeClaimList ¶ added in v1.7.13
type PersistentVolumeClaimList = corev1.PersistentVolumeClaimList
type PersistentVolumeClaimSpec ¶ added in v1.7.13
type PersistentVolumeClaimSpec = corev1.PersistentVolumeClaimSpec
type ResourceController ¶
type TypedLocalObjectReference ¶ added in v1.7.13
type TypedLocalObjectReference = corev1.TypedLocalObjectReference
type UpdateOptions ¶ added in v1.7.13
type UpdateOptions = client.UpdateOptions
type VolumeSnapshot ¶ added in v1.7.13
type VolumeSnapshot = snapshotv1.VolumeSnapshot
type VolumeSnapshotList ¶ added in v1.7.13
type VolumeSnapshotList = snapshotv1.VolumeSnapshotList
Directories ¶
Path | Synopsis |
---|---|
Package client is Kubernetes client for getting resource from Kubernetes cluster.
|
Package client is Kubernetes client for getting resource from Kubernetes cluster. |
metrics
|
|
node
Package node provides kubernetes node information and preriodically update
|
Package node provides kubernetes node information and preriodically update |
pod
Package pod provides kubernetes pod information and preriodically update
|
Package pod provides kubernetes pod information and preriodically update |
Package node provides kubernetes node information and preriodically update
|
Package node provides kubernetes node information and preriodically update |
Package pod provides kubernetes pod information and preriodically update
|
Package pod provides kubernetes pod information and preriodically update |
Package svc provides kubernetes svc information and preriodically update
|
Package svc provides kubernetes svc information and preriodically update |
v2
|
|
pod
Package pod provides kubernetes pod information and preriodically update
|
Package pod provides kubernetes pod information and preriodically update |
benchmark/job
Package job provides benchmark job crd information and preriodically update
|
Package job provides benchmark job crd information and preriodically update |
benchmark/scenario
Package operator provides benchmark operator crd information and preriodically update
|
Package operator provides benchmark operator crd information and preriodically update |
Click to show internal directories.
Click to hide internal directories.