juju: github.com/juju/juju/api/applicationoffers Index | Files

package applicationoffers

import "github.com/juju/juju/api/applicationoffers"

Index

Package Files

client.go

type Client Uses

type Client struct {
    base.ClientFacade
    // contains filtered or unexported fields
}

Client allows access to the cross model management API end points.

func NewClient Uses

func NewClient(st base.APICallCloser) *Client

NewClient creates a new client for accessing the application offers API.

func (*Client) ApplicationOffer Uses

func (c *Client) ApplicationOffer(urlStr string) (*crossmodel.ApplicationOfferDetails, error)

ApplicationOffer returns offered remote application details for a given URL.

func (*Client) DestroyOffers Uses

func (c *Client) DestroyOffers(force bool, offerURLs ...string) error

DestroyOffers removes the specified application offers.

func (*Client) FindApplicationOffers Uses

func (c *Client) FindApplicationOffers(filters ...crossmodel.ApplicationOfferFilter) ([]*crossmodel.ApplicationOfferDetails, error)

FindApplicationOffers returns all application offers matching the supplied filter.

func (*Client) GetConsumeDetails Uses

func (c *Client) GetConsumeDetails(urlStr string) (params.ConsumeOfferDetails, error)

GetConsumeDetails returns details necessary to consue an offer at a given URL.

func (*Client) GrantOffer Uses

func (c *Client) GrantOffer(user, access string, offerURLs ...string) error

GrantOffer grants a user access to the specified offers.

func (*Client) ListOffers Uses

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.

func (*Client) Offer Uses

func (c *Client) Offer(modelUUID, application string, endpoints []string, offerName string, desc string) ([]params.ErrorResult, error)

Offer prepares application's endpoints for consumption.

func (*Client) RevokeOffer Uses

func (c *Client) RevokeOffer(user, access string, offerURLs ...string) error

RevokeOffer revokes a user's access to the specified offers.

Package applicationoffers imports 9 packages (graph) and is imported by 12 packages. Updated 2019-08-26. Refresh now. Tools for package owners.