interfaces

package
v0.0.0-...-03b5c0b Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: AGPL-3.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	AllUnits() ([]Unit, error)
	Constraints() (constraints.Value, error)
	IsPrincipal() bool
}

Application defines a subset of the functionality provided by the state.Application type, as required by the application facade. For details on the methods, see the methods on state.Application with the same names.

type BackendModel

type BackendModel interface {
	Config() (*config.Config, error)
	ModelTag() names.ModelTag
	Cloud() (cloud.Cloud, error)
	CloudCredential() (state.Credential, bool, error)
	CloudRegion() string
	ControllerUUID() string
	Type() state.ModelType
}

type BackendState

type BackendState interface {
	AddCharmMetadata(state.CharmInfo) (*state.Charm, error)
	AllCharms() ([]*state.Charm, error)
	Application(string) (Application, error)
	Charm(curl string) (*state.Charm, error)
	ControllerTag() names.ControllerTag
	UpdateUploadedCharm(info state.CharmInfo) (services.UploadedCharm, error)
	PrepareCharmUpload(curl string) (services.UploadedCharm, error)
	Machine(string) (Machine, error)
	state.MongoSessioner
	ModelUUID() string
	ModelConstraints() (constraints.Value, error)
}

type Downloader

type Downloader interface {
	DownloadAndStore(charmURL *charm.URL, requestedOrigin corecharm.Origin, force bool) (corecharm.Origin, error)
}

Downloader defines an API for downloading and storing charms.

type Machine

type Machine interface {
	HardwareCharacteristics() (*instance.HardwareCharacteristics, error)
	Constraints() (constraints.Value, error)
}

Machine defines a subset of the functionality provided by the state.Machine type, as required by the application facade. For details on the methods, see the methods on state.Machine with the same names.

type Unit

type Unit interface {
	AssignedMachineId() (string, error)
}

Unit defines a subset of the functionality provided by the state.Unit type, as required by the application facade. For details on the methods, see the methods on state.Unit with the same names.

Jump to

Keyboard shortcuts

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