github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/api/client/backups/client.go (about)

     1  // Copyright 2014 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package backups
     5  
     6  import (
     7  	"github.com/juju/juju/api/base"
     8  )
     9  
    10  // Client wraps the backups API for the client.
    11  type Client struct {
    12  	base.ClientFacade
    13  	st     base.APICallCloser
    14  	facade base.FacadeCaller
    15  }
    16  
    17  // NewClient returns a new backups API client.
    18  func NewClient(caller base.APICallCloser) *Client {
    19  	frontend, backend := base.NewClientFacade(caller, "Backups")
    20  	return &Client{ClientFacade: frontend, st: caller, facade: backend}
    21  }