pkg/kubelet: make comments follow go-style

This commit is contained in:
Xiang Li 2015-02-19 21:34:52 -08:00
parent 6433e2dd2b
commit ce1ced4322

View File

@ -43,8 +43,8 @@ type cadvisorInterface interface {
MachineInfo() (*cadvisor.MachineInfo, error) MachineInfo() (*cadvisor.MachineInfo, error)
} }
// This method takes a container's absolute path and returns the stats for 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 // container. The container's absolute path refers to its hierarchy in the
// cgroup file system. e.g. The root container, which represents the whole // cgroup file system. e.g. The root container, which represents the whole
// machine, has path "/"; all docker containers have path "/docker/<docker id>" // machine, has path "/"; all docker containers have path "/docker/<docker id>"
func (kl *Kubelet) statsFromContainerPath(cc cadvisorInterface, containerPath string, req *cadvisor.ContainerInfoRequest) (*cadvisor.ContainerInfo, error) { 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 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. // container.
func (kl *Kubelet) statsFromDockerContainer(cc cadvisorInterface, containerId string, req *cadvisor.ContainerInfoRequest) (*cadvisor.ContainerInfo, error) { func (kl *Kubelet) statsFromDockerContainer(cc cadvisorInterface, containerId string, req *cadvisor.ContainerInfoRequest) (*cadvisor.ContainerInfo, error) {
cinfo, err := cc.DockerContainer(containerId, req) cinfo, err := cc.DockerContainer(containerId, req)