From ce1ced4322ae482ed8e36bbad115394fd2d28c63 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Thu, 19 Feb 2015 21:34:52 -0800 Subject: [PATCH] pkg/kubelet: make comments follow go-style --- pkg/kubelet/cadvisor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/kubelet/cadvisor.go b/pkg/kubelet/cadvisor.go index bb05d6846f5..0a1295c172c 100644 --- a/pkg/kubelet/cadvisor.go +++ b/pkg/kubelet/cadvisor.go @@ -43,8 +43,8 @@ type cadvisorInterface interface { MachineInfo() (*cadvisor.MachineInfo, error) } -// This method takes a container's absolute path and returns the stats for the -// container. The container's absolute path refers to its hierarchy in the +// statsFromContainerPath takes a container's absolute path and returns the stats for the +// container. The container's absolute path refers to its hierarchy in the // cgroup file system. e.g. The root container, which represents the whole // machine, has path "/"; all docker containers have path "/docker/" func (kl *Kubelet) statsFromContainerPath(cc cadvisorInterface, containerPath string, req *cadvisor.ContainerInfoRequest) (*cadvisor.ContainerInfo, error) { @@ -55,7 +55,7 @@ func (kl *Kubelet) statsFromContainerPath(cc cadvisorInterface, containerPath st return cinfo, nil } -// This method takes a Docker container's ID and returns the stats for the +// statsFromDockerContainer takes a Docker container's ID and returns the stats for the // container. func (kl *Kubelet) statsFromDockerContainer(cc cadvisorInterface, containerId string, req *cadvisor.ContainerInfoRequest) (*cadvisor.ContainerInfo, error) { cinfo, err := cc.DockerContainer(containerId, req)