const SampleDevicePluginDSYAML … const SampleDevicePluginControlRegistrationDSYAML … const SampleDevicePluginName … const SampleDeviceResourceName … const SampleDeviceEnvVarNamePluginSockDir … // CountSampleDeviceCapacity returns the number of devices of SampleDeviceResourceName advertised by a node capacity func CountSampleDeviceCapacity(node *v1.Node) int64 { … } // CountSampleDeviceAllocatable returns the number of devices of SampleDeviceResourceName advertised by a node allocatable func CountSampleDeviceAllocatable(node *v1.Node) int64 { … }