Fix some typos

Signed-off-by: Pan Yibo <mstmdev@gmail.com>
This commit is contained in:
mstmdev
2023-05-10 02:45:57 +08:00
parent 43bbffba37
commit cdaa4025e9
16 changed files with 20 additions and 20 deletions

View File

@@ -45,11 +45,11 @@ type Shaper interface {
// Limits are aggregate limits for the CIDR, not per IP address. CIDRs must be unique, but can be overlapping, traffic
// that matches multiple CIDRs counts against all limits.
Limit(cidr string, egress, ingress *resource.Quantity) error
// Remove a bandwidth limit for a particular CIDR on a particular network interface
// Reset removes a bandwidth limit for a particular CIDR on a particular network interface
Reset(cidr string) error
// Reconcile the interface managed by this shaper with the state on the ground.
// ReconcileInterface reconciles the interface managed by this shaper with the state on the ground.
ReconcileInterface() error
// Reconcile a CIDR managed by this shaper with the state on the ground
// ReconcileCIDR reconciles a CIDR managed by this shaper with the state on the ground
ReconcileCIDR(cidr string, egress, ingress *resource.Quantity) error
// GetCIDRs returns the set of CIDRs that are being managed by this shaper
GetCIDRs() ([]string, error)

View File

@@ -45,7 +45,7 @@ import (
// PortForwarder knows how to forward content from a data stream to/from a port
// in a pod.
type PortForwarder interface {
// PortForwarder copies data between a data stream and a port in a pod.
// PortForward copies data between a data stream and a port in a pod.
PortForward(name string, uid types.UID, port int32, stream io.ReadWriteCloser) error
}