You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: status.go
    path of file: ./repos/juju/caas/kubernetes/provider/exec
    
    the code of the file until where you have to start completion: // Copyright 2020 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package exec

import (
	"time"

	"github.com/juju/errors"
	core "k8s.io/api/core/v1"
)

// StatusParams holds all the necessary parameters to query Pod status
type StatusParams struct {
	PodName string
}

func (p *StatusParams) validate() error {
	if p.PodName == "" {
		return errors.New("pod name not specified")
	}
	return nil
}

// Status o
    
func (c client) Status(params StatusParams) (*Status, error) {
	if err := params.validate(); err != nil {
		return nil, errors.Trace(err)
	}
	pod, err := getValidatedPod(c.podGetter, params.PodName)
	if err != nil {
		return nil, errors.Trace(err)
	}
	status := &Status{
		PodName: pod.Name,
	}
	addContainerStatus := func(cs ContainerStatus, k8sCS core.ContainerStatus) {
		cs.Name = k8sCS.Name
		cs.Waiting = k8sCS.State.Waiting != nil
		cs.Running = k8sCS.State.Running != nil
		if cs.Running {
			cs.StartedAt = k8sCS.State.Running.StartedAt.Time
		}
		cs.Terminated = k8sCS.State.Terminated != nil
		if cs.Terminated {
			cs.StartedAt = k8sCS.State.Terminated.StartedAt.Time
		}
		status.ContainerStatus = append(status.ContainerStatus, cs)
	}
	for _, cs := range pod.Status.InitContainerStatuses {
		addContainerStatus(ContainerStatus{InitContainer: true}, cs)
	}
	for _, cs := range pod.Status.ContainerStatuses {
		addContainerStatus(ContainerStatus{}, cs)
	}
	for _, cs := range pod.Status.EphemeralContainerStatuses {
		addContainerStatus(ContainerStatus{EphemeralContainer: true}, cs)
	}
	return status, nil
}