Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bcsaller/juju-docker
/ functions
Functions
157 in github.com/bcsaller/juju-docker
⨍
Functions
157
◇
Types & classes
24
↓ 19 callers
Function
log
Write a message to the juju log
hooks/charmhelpers/core/hookenv.py:61
↓ 7 callers
Function
service
Control a system service
hooks/charmhelpers/core/host.py:48
↓ 6 callers
Method
parse_url
(self, url)
hooks/charmhelpers/fetch/__init__.py:107
↓ 5 callers
Method
fire_event
Fire a data_ready, data_lost, start, or stop event on a given service.
hooks/charmhelpers/core/services/base.py:176
↓ 5 callers
Method
get_service
Given the name of a registered service, return its service definition.
hooks/charmhelpers/core/services/base.py:167
↓ 5 callers
Function
local_unit
Local unit ID
hooks/charmhelpers/core/hookenv.py:138
↓ 5 callers
Function
relation_get
Get relation information
hooks/charmhelpers/core/hookenv.py:269
↓ 4 callers
Function
_run_apt_command
Run an APT command, checking output and retrying if the fatal flag is set to True. :param: cmd: str: The apt command to run. :param:
hooks/charmhelpers/fetch/__init__.py:323
↓ 4 callers
Function
config
Juju charm configuration
hooks/charmhelpers/core/hookenv.py:253
↓ 4 callers
Function
relation_ids
A list of relation_ids
hooks/charmhelpers/core/hookenv.py:304
↓ 3 callers
Method
_get_args
(self, manager, service_name, arg_type)
hooks/charmhelpers/contrib/docker/__init__.py:77
↓ 3 callers
Method
_load_ready_file
(self)
hooks/charmhelpers/core/services/base.py:203
↓ 3 callers
Method
register
Register a hook
hooks/charmhelpers/core/hookenv.py:471
↓ 3 callers
Function
related_units
A list of related units
hooks/charmhelpers/core/hookenv.py:315
↓ 3 callers
Function
relation_id
The relation ID for the current relation hook
hooks/charmhelpers/core/hookenv.py:133
↓ 3 callers
Function
relation_type
The scope for the current relation hook
hooks/charmhelpers/core/hookenv.py:128
↓ 2 callers
Method
__init__
(self)
hooks/charmhelpers/core/hookenv.py:467
↓ 2 callers
Method
_hydrate_entry
(self, line)
hooks/charmhelpers/core/fstab.py:50
↓ 2 callers
Method
_is_ready
Helper method that tests a set of relation data and returns True if all of the `required_keys` are present.
hooks/charmhelpers/core/services/helpers.py:51
↓ 2 callers
Method
_save_ready_file
(self)
hooks/charmhelpers/core/services/base.py:212
↓ 2 callers
Method
add
(cls, device, mountpoint, filesystem, options=None, path=None)
hooks/charmhelpers/core/fstab.py:113
↓ 2 callers
Function
add_source
(source, key=None)
hooks/charmhelpers/fetch/__init__.py:203
↓ 2 callers
Function
apt_install
Install one or more packages
hooks/charmhelpers/fetch/__init__.py:139
↓ 2 callers
Function
file_hash
Generate a md5 hash of the contents of 'path' or None if not found
hooks/charmhelpers/core/host.py:227
↓ 2 callers
Method
get_entry_by_attr
(self, attr, value)
hooks/charmhelpers/core/fstab.py:67
↓ 2 callers
Function
mkdir
Create a directory
hooks/charmhelpers/core/host.py:133
↓ 1 callers
Method
add_entry
(self, entry)
hooks/charmhelpers/core/fstab.py:74
↓ 1 callers
Function
apt_update
Update local apt cache
hooks/charmhelpers/fetch/__init__.py:171
↓ 1 callers
Method
base_url
Return url without querystring or fragment
hooks/charmhelpers/fetch/__init__.py:110
↓ 1 callers
Method
branch
(self, source, dest)
hooks/charmhelpers/fetch/bzrurl.py:19
↓ 1 callers
Method
build_args
(self)
hooks/charmhelpers/contrib/docker/__init__.py:125
↓ 1 callers
Method
can_handle
Returns True if the source can be handled. Otherwise returns a string explaining why it cannot
hooks/charmhelpers/fetch/__init__.py:97
↓ 1 callers
Method
can_handle
(self, source)
hooks/charmhelpers/fetch/bzrurl.py:12
↓ 1 callers
Function
charm_dir
Return the root directory of the current charm
hooks/charmhelpers/core/hookenv.py:497
↓ 1 callers
Method
download
(self, source, dest)
hooks/charmhelpers/fetch/archiveurl.py:26
↓ 1 callers
Function
filter_installed_packages
Returns a list of packages that require installation
hooks/charmhelpers/fetch/__init__.py:117
↓ 1 callers
Function
flush
Flushes any entries from function cache where the key is found in the function+args
hooks/charmhelpers/core/hookenv.py:50
↓ 1 callers
Function
fstab_add
Adds the given device entry to the /etc/fstab file
hooks/charmhelpers/core/host.py:181
↓ 1 callers
Function
fstab_remove
Remove the given mountpoint entry from /etc/fstab
hooks/charmhelpers/core/host.py:175
↓ 1 callers
Method
get_container_args
(self, manager, service_name)
hooks/charmhelpers/contrib/docker/__init__.py:88
↓ 1 callers
Method
get_data
Retrieve the relation data for each unit involved in a realtion and, if complete, store it in a list under `self[self.name]`. This
hooks/charmhelpers/core/services/helpers.py:58
↓ 1 callers
Method
get_port_args
(self, manager, service_name)
hooks/charmhelpers/contrib/docker/__init__.py:85
↓ 1 callers
Method
get_volume_args
(self, manager, service_name)
hooks/charmhelpers/contrib/docker/__init__.py:91
↓ 1 callers
Function
install
()
hooks/common.py:34
↓ 1 callers
Method
install
Try to download and unpack the source. Return the path to the unpacked files or raise UnhandledSource.
hooks/charmhelpers/fetch/__init__.py:102
↓ 1 callers
Function
install_remote
Install a file tree from a remote source The specified source should be a url of the form: scheme://[host]/path[#[option=value][&...
hooks/charmhelpers/fetch/__init__.py:275
↓ 1 callers
Method
is_ready
Determine if a registered service is ready, by checking its 'required_data'. A 'required_data' item can be any mapping type, and is
hooks/charmhelpers/core/services/base.py:192
↓ 1 callers
Method
is_ready
Returns True if all of the `required_keys` are available from any units.
hooks/charmhelpers/core/services/helpers.py:42
↓ 1 callers
Method
load_previous
Load previous copy of config from disk so that current values can be compared to previous values. :param path: File path
hooks/charmhelpers/core/hookenv.py:204
↓ 1 callers
Function
lsb_release
Return /etc/lsb-release in a dict
hooks/charmhelpers/core/host.py:275
↓ 1 callers
Function
manage
()
hooks/common.py:39
↓ 1 callers
Method
manage
Handle the current hook by doing The Right Thing with the registered services.
hooks/charmhelpers/core/services/base.py:114
↓ 1 callers
Method
map
Translate the relation settings from a single unit into a list of arguments to be passed to the Docker container. This may be called
hooks/charmhelpers/contrib/docker/__init__.py:171
↓ 1 callers
Function
plugins
(fetch_handlers=None)
hooks/charmhelpers/fetch/__init__.py:304
↓ 1 callers
Method
previous
Return previous value for this key, or None if there is no "previous" value.
hooks/charmhelpers/core/hookenv.py:229
↓ 1 callers
Method
provide_data
(self)
hooks/charmhelpers/core/services/base.py:125
↓ 1 callers
Method
reconfigure_services
Update all files for one or more registered services, and, if ready, optionally restart them. If no service names are given,
hooks/charmhelpers/core/services/base.py:134
↓ 1 callers
Function
relation_for_unit
Get the json represenation of a unit's relation
hooks/charmhelpers/core/hookenv.py:325
↓ 1 callers
Function
relation_types
Get a list of relation types supported by this charm
hooks/charmhelpers/core/hookenv.py:361
↓ 1 callers
Function
relations
Get a nested dictionary of relation data for all related units
hooks/charmhelpers/core/hookenv.py:376
↓ 1 callers
Function
relations_for_id
Get relations of a specific relation ID
hooks/charmhelpers/core/hookenv.py:337
↓ 1 callers
Function
remote_unit
The remote unit for the current relation hook
hooks/charmhelpers/core/hookenv.py:143
↓ 1 callers
Method
remove_by_mountpoint
(cls, mountpoint, path=None)
hooks/charmhelpers/core/fstab.py:105
↓ 1 callers
Method
remove_entry
(self, entry)
hooks/charmhelpers/core/fstab.py:82
↓ 1 callers
Method
save_lost
Save an indicator that the given service is no longer data_ready.
hooks/charmhelpers/core/services/base.py:226
↓ 1 callers
Method
save_ready
Save an indicator that the given service is now data_ready.
hooks/charmhelpers/core/services/base.py:218
↓ 1 callers
Method
stop_services
Stop one or more registered services, by name. If no service names are given, stops all registered services.
hooks/charmhelpers/core/services/base.py:156
↓ 1 callers
Function
unit_get
Get the unit ID for the remote unit
hooks/charmhelpers/core/hookenv.py:426
↓ 1 callers
Method
was_ready
Determine if the given service was previously data_ready.
hooks/charmhelpers/core/services/base.py:234
Method
__bool__
Returns True if all of the required_keys are available.
hooks/charmhelpers/core/services/helpers.py:31
Method
__call__
(self, manager, service_name, event_name)
hooks/charmhelpers/contrib/docker/__init__.py:63
Method
__call__
(self, manager, service_name, event_name)
hooks/charmhelpers/core/services/base.py:253
Method
__call__
(self, manager, service_name, event_name)
hooks/charmhelpers/core/services/base.py:262
Method
__call__
(self, manager, service_name, event_name)
hooks/charmhelpers/core/services/helpers.py:115
Method
__eq__
(self, o)
hooks/charmhelpers/core/fstab.py:30
Method
__getattr__
(self, attr)
hooks/charmhelpers/core/hookenv.py:78
Method
__getstate__
(self)
hooks/charmhelpers/core/hookenv.py:92
Method
__init__
:param volumes: List of mutable data volumes to create. :type volumes: list :param named_volumes: Mapping of names to mutable
hooks/charmhelpers/contrib/docker/__init__.py:110
Method
__init__
Can accept either a list of arg strings, or a kwarg mapping of arg names to values. If kwargs are given, the names are prepended
hooks/charmhelpers/contrib/docker/__init__.py:143
Method
__init__
(self, obj)
hooks/charmhelpers/core/hookenv.py:73
Method
__init__
(self, *args, **kw)
hooks/charmhelpers/core/hookenv.py:197
Method
__init__
(self, device, mountpoint, filesystem, options, d=0, p=0)
hooks/charmhelpers/core/fstab.py:17
Method
__init__
(self, path=None)
hooks/charmhelpers/core/fstab.py:43
Method
__init__
Register a list of services, given their definitions. Traditional charm authoring is focused on implementing hooks. That is,
hooks/charmhelpers/core/services/base.py:16
Method
__init__
(self, *args, **kwargs)
hooks/charmhelpers/core/services/helpers.py:27
Method
__init__
(self, source, target, owner='root', group='root', perms=0444)
hooks/charmhelpers/core/services/helpers.py:108
Method
__repr__
(self)
hooks/charmhelpers/core/services/helpers.py:39
Method
__setstate__
(self, state)
hooks/charmhelpers/core/hookenv.py:96
Method
__str__
(self)
hooks/charmhelpers/core/fstab.py:33
Function
add_user_to_group
Add a user to a group
hooks/charmhelpers/core/host.py:99
Function
adduser
Add a user to the system
hooks/charmhelpers/core/host.py:77
Function
apt_hold
Hold one or more packages
hooks/charmhelpers/fetch/__init__.py:188
Function
apt_purge
Purge one or more packages
hooks/charmhelpers/fetch/__init__.py:177
Function
apt_upgrade
Upgrade all packages
hooks/charmhelpers/fetch/__init__.py:156
Method
build_args
(self)
hooks/charmhelpers/contrib/docker/__init__.py:99
Method
build_args
(self)
hooks/charmhelpers/contrib/docker/__init__.py:158
Method
build_args
(self)
hooks/charmhelpers/contrib/docker/__init__.py:204
Function
cached
Cache return values for multiple executions of func + args For example:: @cached def unit_get(attribute): pass
hooks/charmhelpers/core/hookenv.py:25
Method
can_handle
(self, source)
hooks/charmhelpers/fetch/archiveurl.py:18
Method
changed
Return true if the value for this key has changed since the last save.
hooks/charmhelpers/core/hookenv.py:220
next →
1–100 of 157, ranked by callers