Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) ApplicationOffer(ctx context.Context, urlStr string) (*crossmodel.ApplicationOfferDetails, error)
- func (c *Client) DestroyOffers(ctx context.Context, force bool, offerURLs ...string) error
- func (c *Client) FindApplicationOffers(ctx context.Context, filters ...crossmodel.ApplicationOfferFilter) ([]*crossmodel.ApplicationOfferDetails, error)
- func (c *Client) GetConsumeDetails(ctx context.Context, urlStr string) (params.ConsumeOfferDetails, error)
- func (c *Client) GrantOffer(ctx context.Context, user, access string, offerURLs ...string) error
- func (c *Client) ListOffers(ctx context.Context, filters ...crossmodel.ApplicationOfferFilter) ([]*crossmodel.ApplicationOfferDetails, error)
- func (c *Client) Offer(ctx context.Context, modelUUID, application string, endpoints []string, ...) ([]params.ErrorResult, error)
- func (c *Client) RevokeOffer(ctx context.Context, user, access string, offerURLs ...string) error
- type Option
Constants ¶
This section is empty.
Variables ¶
var WithTracer = base.WithTracer
WithTracer returns an Option that configures the Client to use the supplied tracer.
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, options ...Option) *Client
NewClient creates a new client for accessing the application offers API.
func (*Client) ApplicationOffer ¶
func (c *Client) ApplicationOffer(ctx context.Context, 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(ctx context.Context, filters ...crossmodel.ApplicationOfferFilter) ([]*crossmodel.ApplicationOfferDetails, error)
FindApplicationOffers returns all application offers matching the supplied filter.
func (*Client) GetConsumeDetails ¶
func (c *Client) GetConsumeDetails(ctx context.Context, urlStr string) (params.ConsumeOfferDetails, error)
GetConsumeDetails returns details necessary to consume 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(ctx context.Context, 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.