Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureGetCaFromSecrets ¶
func EnsureGetCaFromSecrets(kubeclient kubernetes.Interface) (cacert []byte)
EnsureGetCaFromSecrets block until get the ca from secret
Types ¶
type CacheGpuInfo ¶
type TTLCacheGpu ¶
type TTLCacheGpu struct {
// contains filtered or unexported fields
}
TTLCacheGpu store for GpuInfo, in case of calling getGpuInfo echo interval PRODUCE_INTERVAL
func NewTTLCacheGpu ¶
func NewTTLCacheGpu(ttl time.Duration) *TTLCacheGpu
func (*TTLCacheGpu) GetCacheGpuInfo ¶
func (cg *TTLCacheGpu) GetCacheGpuInfo(did string) *GpuInfo
func (*TTLCacheGpu) GetCacheGpuInfoIgnoreTTL ¶
func (cg *TTLCacheGpu) GetCacheGpuInfoIgnoreTTL(did string) *GpuInfo
func (*TTLCacheGpu) SetCacheGpuInfo ¶
func (cg *TTLCacheGpu) SetCacheGpuInfo(did string, cgpuinfo *CacheGpuInfo)
Click to show internal directories.
Click to hide internal directories.