applicationoffers

package
v0.0.0-...-0a82276 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

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

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

func (c *Client) GrantOffer(ctx context.Context, 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(ctx context.Context, modelUUID, application string, endpoints []string, owner, offerName, desc string) ([]params.ErrorResult, error)

Offer prepares application's endpoints for consumption.

func (*Client) RevokeOffer

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

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

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

Jump to

Keyboard shortcuts

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