Documentation ¶
Index ¶
- Variables
- func DriveClient() types.LatestDriveInterface
- func Eventf(object runtime.Object, eventType EventType, reason EventReason, ...)
- func FakeInit()
- func Init()
- func InitRequestClient() types.LatestInitRequestInterface
- func NodeClient() types.LatestNodeInterface
- func RESTClient() rest.Interface
- func SetDriveInterface(i types.LatestDriveInterface)
- func SetInitRequestInterface(i types.LatestInitRequestInterface)
- func SetNodeInterface(i types.LatestNodeInterface)
- func SetVolumeInterface(i types.LatestVolumeInterface)
- func VolumeClient() types.LatestVolumeInterface
- type EventReason
- type EventType
Constants ¶
This section is empty.
Variables ¶
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.
var Codecs = serializer.NewCodecFactory(Scheme)
Codecs is new codec of new runtime scheme.
var ParameterCodec = runtime.NewParameterCodec(Scheme)
ParameterCodec is new parameter codec of new runtime scheme.
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 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 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.