penguin/monok8s

k8s image for Mono Gateway Dev Kit

clitools/pkg/controller/osimage/write_throttle_other.go

raw ยท 479 bytes

//go:build !linux

package osimage

import "context"

type adaptiveWriteController struct{}

func newAdaptiveWriteController(string) (*adaptiveWriteController, error) {
	return &adaptiveWriteController{}, nil
}

func newNoopAdaptiveWriteController() *adaptiveWriteController {
	return &adaptiveWriteController{}
}

func (c *adaptiveWriteController) Wait(ctx context.Context, n int) error { return nil }
func (c *adaptiveWriteController) ObserveWrite(n int, dur interface{})   {}