Documentation ¶
Index ¶
- type Client
- func (c *Client) ApplicationOffer(urlStr string) (*crossmodel.ApplicationOfferDetails, error)
- func (c *Client) DestroyOffers(force bool, offerURLs ...string) error
- func (c *Client) FindApplicationOffers(filters ...crossmodel.ApplicationOfferFilter) ([]*crossmodel.ApplicationOfferDetails, error)
- func (c *Client) GetConsumeDetails(urlStr string) (params.ConsumeOfferDetails, error)
- func (c *Client) GrantOffer(user, access string, offerURLs ...string) error
- func (c *Client) ListOffers(filters ...crossmodel.ApplicationOfferFilter) ([]*crossmodel.ApplicationOfferDetails, error)
- func (c *Client) Offer(modelUUID, application string, endpoints []string, offerName string, ...) ([]params.ErrorResult, error)
- func (c *Client) RevokeOffer(user, access string, offerURLs ...string) 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 application offers API.
func (*Client) ApplicationOffer ¶
func (c *Client) ApplicationOffer(urlStr string) (*crossmodel.ApplicationOfferDetails, error)
ApplicationOffer returns offered remote application details for a given URL.
func (*Client) DestroyOffers ¶
DestroyOffers removes the specified application offers.
func (*Client) FindApplicationOffers ¶
func (c *Client) FindApplicationOffers(filters ...crossmodel.ApplicationOfferFilter) ([]*crossmodel.ApplicationOfferDetails, error)
FindApplicationOffers returns all application offers matching the supplied filter.
func (*Client) GetConsumeDetails ¶
func (c *Client) GetConsumeDetails(urlStr string) (params.ConsumeOfferDetails, error)
GetConsumeDetails returns details necessary to consue an offer at a given URL.
func (*Client) GrantOffer ¶
GrantOffer grants a user access to the specified offers.
func (*Client) ListOffers ¶
func (c *Client) ListOffers(filters ...crossmodel.ApplicationOfferFilter) ([]*crossmodel.ApplicationOfferDetails, 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.