caasunitprovisioner

package
v0.0.0-...-1592773 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 8 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 {
	// contains filtered or unexported fields
}

Client allows access to the CAAS unit provisioner API endpoint.

func NewClient

func NewClient(caller base.APICaller, options ...Option) *Client

NewClient returns a client used to access the CAAS unit provisioner API.

func (*Client) ApplicationScale

func (c *Client) ApplicationScale(ctx context.Context, applicationName string) (int, error)

ApplicationScale returns the scale for the specified application.

func (*Client) ApplicationTrust

func (c *Client) ApplicationTrust(ctx context.Context, applicationName string) (bool, error)

ApplicationTrust returns the trust value for the specified application.

func (*Client) UpdateApplicationService

func (c *Client) UpdateApplicationService(ctx context.Context, arg params.UpdateApplicationServiceArg) error

UpdateApplicationService updates the state model to reflect the state of the application's service as reported by the cloud.

func (*Client) WatchApplication

func (c *Client) WatchApplication(ctx context.Context, appName string) (watcher.NotifyWatcher, error)

WatchApplication returns a NotifyWatcher that notifies of changes to the application in the current model.

func (*Client) WatchApplicationScale

func (c *Client) WatchApplicationScale(ctx context.Context, application string) (watcher.NotifyWatcher, error)

WatchApplicationScale returns a NotifyWatcher that notifies of changes to the lifecycles of units of the specified CAAS application in the current model.

func (*Client) WatchApplicationTrustHash

func (c *Client) WatchApplicationTrustHash(ctx context.Context, application string) (watcher.StringsWatcher, error)

WatchApplicationTrustHash returns a StringsWatcher that notifies of changes to the application's trust hash.

func (*Client) WatchApplications

func (c *Client) WatchApplications(ctx context.Context) (watcher.StringsWatcher, error)

WatchApplications returns a StringsWatcher that notifies of changes to the lifecycles of CAAS applications in the current model.

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