chore: initialize containerized Go learning workbook (2026 DevOps/SRE)
This commit is contained in:
commit
84be3e5d77
64 files changed
+1382
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package reconciler
|
||||
|
||||
import "errors"
|
||||
|
||||
var ErrNegativeReplicas = errors.New("desired replicas cannot be negative")
|
||||
|
||||
type Scaler interface {
|
||||
ScaleUp(delta int) error
|
||||
ScaleDown(delta int) error
|
||||
}
|
||||
|
||||
func Reconcile(desired, actual int, scaler Scaler) (int, error) {
|
||||
panic("TODO: obsłuż desired < 0, ScaleUp, ScaleDown oraz no-op gdy actual == desired")
|
||||
}
|
||||
Reference in new issue
Block a user