api

package
v0.0.0-...-a589d90 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModelConstraints

func GetModelConstraints(caller base.APICallCloser) (constraints.Value, error)

Types

type ApplicationsAPI

type ApplicationsAPI struct {
	// contains filtered or unexported fields
}

func NewApplicationsAPI

func NewApplicationsAPI(client *client.Client) *ApplicationsAPI

func (*ApplicationsAPI) Deploy

func (s *ApplicationsAPI) Deploy(modelName string, charmName string, args DeployArgs) error

type DeployArgs

type DeployArgs struct {
	ApplicationName string
	NumUnits        int
	Channel         charm.Channel
	Revision        int
	Series          string
	WorkloadSeries  set.Strings
	Constraints     constraints.Value
	ImageStream     string
	Force           bool
}

type ModelsAPI

type ModelsAPI struct {
	// contains filtered or unexported fields
}

func NewModelsAPI

func NewModelsAPI(client *client.Client) *ModelsAPI

func (*ModelsAPI) Models

func (s *ModelsAPI) Models() ([]base.UserModel, error)

type StatusAPI

type StatusAPI struct {
	// contains filtered or unexported fields
}

func NewStatusAPI

func NewStatusAPI(client *client.Client) *StatusAPI

func (*StatusAPI) FullStatus

func (s *StatusAPI) FullStatus(patterns []string) (*params.FullStatus, error)

Jump to

Keyboard shortcuts

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