crossmodel

package
v0.0.0-...-a0d7459 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: AGPL-3.0 Imports: 5 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 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

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(application string, endpoints []string, offerName string, desc string) ([]params.ErrorResult, error)

Offer prepares application's endpoints for consumption.

Jump to

Keyboard shortcuts

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