applicationoffers

package
v0.0.0-...-8ff1004 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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

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

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

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

GrantOffer grants a user access to the specified offers.

func (*Client) ListOffers

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

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL