Documentation ¶
Index ¶
- type Client
- func (c *Client) ApplicationOffer(urlStr string) (params.ApplicationOffer, error)
- func (c *Client) FindApplicationOffers(filters ...crossmodel.ApplicationOfferFilter) ([]params.ApplicationOffer, error)
- func (c *Client) ListOffers(filters ...crossmodel.ApplicationOfferFilter) ([]crossmodel.ApplicationOfferDetailsResult, error)
- func (c *Client) Offer(application string, endpoints []string, offerName string, desc string) ([]params.ErrorResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { base.ClientFacade // contains filtered or unexported fields }
Client allows access to the cross model management API end points.
func NewClient ¶
func NewClient(st base.APICallCloser) *Client
NewClient creates a new client for accessing the cross model relations API.
func (*Client) ApplicationOffer ¶
func (c *Client) ApplicationOffer(urlStr string) (params.ApplicationOffer, error)
ApplicationOffer returns offered remote application details for a given URL.
func (*Client) FindApplicationOffers ¶
func (c *Client) FindApplicationOffers(filters ...crossmodel.ApplicationOfferFilter) ([]params.ApplicationOffer, error)
FindApplicationOffers returns all application offers matching the supplied filter.
func (*Client) ListOffers ¶
func (c *Client) ListOffers(filters ...crossmodel.ApplicationOfferFilter) ([]crossmodel.ApplicationOfferDetailsResult, error)
ListOffers gets all remote applications that have been offered from this Juju model. Each returned application satisfies at least one of the the specified filters.
Click to show internal directories.
Click to hide internal directories.