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: client.go
    path of file: ./repos/juju/api/client/application
    
    the code of the file until where you have to start completion: // Copyright 2014 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package application

import (
	stderrors "errors"
	"fmt"
	"strings"
	"time"

	"github.com/juju/charm/v12"
	"github.com/juju/collections/set"
	"github.com/juju/errors"
	"github.com/juju/loggo"
	"github.com/juju/names/v5"

	"github.com/juju/juju/api/base"
	apicharm "github.com/juju/juju/api/common/charm"
	corebase "github.com/juju/juju/core/base"
	"github.com/juju/juju/core/constraints"
	"github.com/juju/juju/core/crossmodel"
	"github.com/juju/juju/core/devices"
	"github.com/juju/juju/core/instance"
	"github.com/juju/juju/rpc/params"
	"github.com/juju/juju/storage"
)

var logger = loggo.GetLogger("juju.api.application")

// Client allows access to the application API end point.
type Client struct {
	base.ClientFacade
	st     base.APICallCloser
	facade base.FacadeCaller
}

// NewClient creates a new client for accessing t
    
func (c *Client) DeployFromRepository(arg DeployFromRepositoryArg) (DeployInfo, []PendingResourceUpload, []error) {
	var result params.DeployFromRepositoryResults
	args := params.DeployFromRepositoryArgs{
		Args: []params.DeployFromRepositoryArg{paramsFromDeployFromRepositoryArg(arg)},
	}
	err := c.facade.FacadeCall("DeployFromRepository", args, &result)
	if err != nil {
		return DeployInfo{}, nil, []error{err}
	}
	if len(result.Results) != 1 {
		return DeployInfo{}, nil, []error{fmt.Errorf("expected 1 result, got %d", len(result.Results))}
	}
	deployInfo, err := deployInfoFromParams(result.Results[0].Info)
	pendingResourceUploads := pendingResourceUploadsFromParams(result.Results[0].PendingResourceUploads)
	var errs []error
	if err != nil {
		errs = append(errs, err)
	}
	if len(result.Results[0].Errors) > 0 {
		errs = make([]error, len(result.Results[0].Errors))
		for i, er := range result.Results[0].Errors {
			errs[i] = errors.New(er.Error())
		}
	}
	return deployInfo, pendingResourceUploads, errs
}