modelgeneration

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: 4 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 provides methods that the Juju client command uses to interact with models stored in the Juju Server.

func NewClient

func NewClient(st base.APICallCloser) *Client

NewClient creates a new `Client` based on an existing authenticated API connection.

func (*Client) AddGeneration

func (c *Client) AddGeneration(modelUUID string) error

AddGeneration adds a model generation to the config.

func (*Client) AdvanceGeneration

func (c *Client) AdvanceGeneration(modelUUID string, entities []string) (bool, error)

AdvanceGeneration advances a unit and/or applications to the 'next' generation. The boolean return indicates whether the generation was automatically completed as a result of unit advancement.

func (*Client) CancelGeneration

func (c *Client) CancelGeneration(modelUUID string) error

CancelGeneration cancels a model generation to the config.

func (*Client) HasNextGeneration

func (c *Client) HasNextGeneration(modelUUID string) (bool, error)

HasNextGeneration returns true if the model has a "next" generation that has not yet been completed.

Jump to

Keyboard shortcuts

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