chore: make function comment match function name (#3408)
Signed-off-by: yingshanghuangqiao <yingshanghuangqiao@foxmail.com>mine
parent
c2f1316680
commit
6d756d593d
|
|
@ -23,7 +23,7 @@ func (c ContainerPortSpecs) Dump() string {
|
|||
return strings.Join(ss, "\n")
|
||||
}
|
||||
|
||||
// InSpecs checks if given port matches a spec.
|
||||
// MatchSpec checks if given port matches a spec.
|
||||
func (c ContainerPortSpecs) MatchSpec(s string) bool {
|
||||
// Skip validation if No port are exposed or no container port spec.
|
||||
if len(c) == 0 || !strings.Contains(s, "::") {
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ func (c *Interpreter) RBACArgs() (subject, verb string, ok bool) {
|
|||
return
|
||||
}
|
||||
|
||||
// XRayArgs return the gvr and ns if any.
|
||||
// XrayArgs return the gvr and ns if any.
|
||||
func (c *Interpreter) XrayArgs() (cmd, namespace string, ok bool) {
|
||||
if !c.IsXrayCmd() {
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue