client

package
v1.4.4-0...-f6f011d Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddToScheme = localSchemeBuilder.AddToScheme

AddToScheme adds all types of this clientset into the given scheme. This allows composition of clientsets, like in:

import (
  "k8s.io/client-go/kubernetes"
  clientsetscheme "k8s.io/client-go/kubernetes/scheme"
  aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
)

kclientset, _ := kubernetes.NewForConfig(c)
_ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)

After this, RawExtensions in Kubernetes types will serialize kube-aggregator types correctly.

Codecs is new codec of new runtime scheme.

ParameterCodec is new parameter codec of new runtime scheme.

View Source
var Scheme = runtime.NewScheme()

Scheme is new runtime scheme.

Functions

func DriveClient

func DriveClient() types.LatestDriveInterface

DriveClient gets latest versioned drive interface.

func Eventf

func Eventf(object runtime.Object, eventType EventType, reason EventReason, messageFmt string, args ...interface{})

Eventf raises kubernetes events.

func FakeInit

func FakeInit()

FakeInit initializes fake clients.

func Init

func Init()

Init initializes various clients.

func InitRequestClient

func InitRequestClient() types.LatestInitRequestInterface

InitRequestClient gets latest versioned init request interface.

func NodeClient

func NodeClient() types.LatestNodeInterface

NodeClient gets latest versioned node interface.

func RESTClient

func RESTClient() rest.Interface

RESTClient gets latest versioned REST client.

func SetDriveInterface

func SetDriveInterface(i types.LatestDriveInterface)

SetDriveInterface sets latest drive interface. Note: To be used for writing test cases only

func SetInitRequestInterface

func SetInitRequestInterface(i types.LatestInitRequestInterface)

SetInitRequestInterface sets latest initrequest interface. Note: To be used for writing test cases only

func SetNodeInterface

func SetNodeInterface(i types.LatestNodeInterface)

SetNodeInterface sets latest node interface. Note: To be used for writing test cases only

func SetVolumeInterface

func SetVolumeInterface(i types.LatestVolumeInterface)

SetVolumeInterface sets the latest volume interface. Note: To be used for writing test cases only

func VolumeClient

func VolumeClient() types.LatestVolumeInterface

VolumeClient gets latest versioned volume interface.

Types

type EventReason

type EventReason string

EventReason denotes kubernetes event reason.

const (
	EventReasonStageVolume             EventReason = "StageVolume"
	EventReasonVolumeMoved             EventReason = "VolumeMoved"
	EventReasonMetrics                 EventReason = "Metrics"
	EventReasonVolumeProvisioned       EventReason = "VolumeProvisioned"
	EventReasonVolumeAdded             EventReason = "VolumeAdded"
	EventReasonVolumeExpanded          EventReason = "VolumeExpanded"
	EventReasonVolumeReleased          EventReason = "VolumeReleased"
	EventReasonDriveMountError         EventReason = "DriveHasMountError"
	EventReasonDriveMounted            EventReason = "DriveMounted"
	EventReasonDriveHasMultipleMatches EventReason = "DriveHasMultipleMatches"
	EventReasonDriveIOError            EventReason = "DriveHasIOError"
	EventReasonDriveRelabelError       EventReason = "DriveHasRelabelError"
	EventReasonInitError               EventReason = "InitError"
	EventReasonDeviceNotFoundError     EventReason = "DeviceNotFoundError"
)

Enum values of EventReason type.

type EventType

type EventType string

EventType denotes kubernetes event type.

const (
	EventTypeNormal  EventType = EventType(apicorev1.EventTypeNormal)
	EventTypeWarning EventType = EventType(apicorev1.EventTypeWarning)
)

Enum values of EventType type.

Jump to

Keyboard shortcuts

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