Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultLog = &cmd.Log{ DefaultConfig: os.Getenv(osenv.JujuLoggingConfigEnvKey), }
DefaultLog is the default command logging implementation.
Functions ¶
func IsPiped ¶
IsPiped determines if the command was used in a pipe and, hence, it's stdin is not usable for user input.
func IsUserAbortedError ¶
IsUserAbortedError returns true if err is of type userAbortedError.
func NewSuperCommand ¶
func NewSuperCommand(p cmd.SuperCommandParams) *cmd.SuperCommand
NewSuperCommand is like cmd.NewSuperCommand but it adds juju-specific functionality: - The default logging configuration is taken from the environment; - The version is configured to the current juju version; - The additional version information is sourced from juju/juju/version; - The command emits a log message when a command runs.
func UserConfirmYes ¶
UserConfirmYes returns an error if we do not read a "y" or "yes" from user input.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
initialize/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
utils/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
application/bundle/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
application/deployer/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
application/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
application/store/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
application/utils/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
caas/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
charmhub/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
commands/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
controller
The controller package groups various commands that are based on talking directly to the controller, and not environments in the controller.
|
The controller package groups various commands that are based on talking directly to the controller, and not environments in the controller. |
|
interact
Package interact provides helper methods for interacting with the CLI user at command run time.
|
Package interact provides helper methods for interacting with the CLI user at command run time. |
|
machine/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
model/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
romulus/budget
Package budget defines the command used to update budgets.
|
Package budget defines the command used to update budgets. |
|
romulus/commands
Package commands provides functionality for registering all the romulus commands.
|
Package commands provides functionality for registering all the romulus commands. |
|
romulus/listplans
The listplans package contains implementation of the command that can be used to list plans that are available for a charm.
|
The listplans package contains implementation of the command that can be used to list plans that are available for a charm. |
|
romulus/setplan
The setplan package contains the implementation of the juju set-plan command.
|
The setplan package contains the implementation of the juju set-plan command. |
|
romulus/sla
The sla package contains the implementation of the juju sla command.
|
The sla package contains the implementation of the juju sla command. |
|
space/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
storage
The storage command provides a storage management interface, for manipulating and inspecting storage entities (volumes, filesystems, charm storage).
|
The storage command provides a storage management interface, for manipulating and inspecting storage entities (volumes, filesystems, charm storage). |
|
reboot/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
progress/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
plugins
|
|
|
juju-metadata
command
|
|
|
juju-wait-for
command
|
|
|
juju-wait-for/api
Package api exists because we can't generate mocks in the main namespace.
|
Package api exists because we can't generate mocks in the main namespace. |
|
juju-wait-for/api/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |