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
Function
chdir
(d)
hooks/charmhelpers/core/host.py:358
Function
chownr
(path, owner, group)
hooks/charmhelpers/core/host.py:366
Function
close_port
Close a service network port
hooks/charmhelpers/core/hookenv.py:418
Function
cmp_pkgrevno
Compare supplied revno with the revno of the installed package * 1 => Installed revno is greater than supplied arg * 0 => Installed revno i
hooks/charmhelpers/core/host.py:341
Function
configure_sources
Configure multiple sources from charm configuration. The lists are encoded as yaml fragments in the configuration. The frament needs to
hooks/charmhelpers/fetch/__init__.py:234
Function
copy_file
Create or overwrite a file with the contents of another file
hooks/charmhelpers/core/host.py:160
Function
docker_pull
(container_name)
hooks/charmhelpers/contrib/docker/__init__.py:28
Method
entries
(self)
hooks/charmhelpers/core/fstab.py:58
Method
execute
Execute a registered hook based on args[0]
hooks/charmhelpers/core/hookenv.py:475
Function
execution_environment
A convenient bundling of the current execution context
hooks/charmhelpers/core/hookenv.py:109
Function
get_nic_hwaddr
(nic)
hooks/charmhelpers/core/host.py:331
Function
get_nic_mtu
(nic)
hooks/charmhelpers/core/host.py:320
Method
hook
Decorator, registering them as hooks
hooks/charmhelpers/core/hookenv.py:483
Function
hook_name
The name of the currently executing hook
hooks/charmhelpers/core/hookenv.py:153
Function
in_relation_hook
Determine whether we're running in a relation hook
hooks/charmhelpers/core/hookenv.py:123
Method
install
(self, source)
hooks/charmhelpers/fetch/archiveurl.py:51
Method
install
(self, source)
hooks/charmhelpers/fetch/bzrurl.py:33
Function
install_docker
()
hooks/charmhelpers/contrib/docker/__init__.py:12
Function
install_docker_unstable
()
hooks/charmhelpers/contrib/docker/__init__.py:21
Function
install_from_config
(config_var_name)
hooks/charmhelpers/fetch/__init__.py:298
Method
is_ready
(self)
hooks/common.py:22
Function
is_relation_made
Determine whether a relation is established by checking for presence of key(s). If a list of keys is provided, they must all be present
hooks/charmhelpers/core/hookenv.py:392
Method
json
Serialize the object to json
hooks/charmhelpers/core/hookenv.py:100
Function
list_nics
Return a list of nics of given type(s)
hooks/charmhelpers/core/host.py:297
Method
map
(self, relation_settings)
hooks/common.py:14
Function
mount
Mount a filesystem at a particular mountpoint
hooks/charmhelpers/core/host.py:187
Function
mounts
Get a list of all mounted volumes as [[mountpoint,device],[...]]
hooks/charmhelpers/core/host.py:218
Function
open_port
Open a service network port
hooks/charmhelpers/core/hookenv.py:411
Method
provide_data
(self)
hooks/common.py:30
Method
provide_data
Return data to be relation_set for this interface.
hooks/charmhelpers/core/services/helpers.py:95
Function
pwgen
Generate a random pasword.
hooks/charmhelpers/core/host.py:285
Function
read_file
(path)
hooks/charmhelpers/core/host.py:170
Function
relation_set
Set relation information for the current unit
hooks/charmhelpers/core/hookenv.py:288
Function
relations_of_type
Get relations of a specific type
hooks/charmhelpers/core/hookenv.py:349
Function
render
Render a template. The `source` path, if not absolute, is relative to the `templates_dir`. The `target` path should be absolute. T
hooks/charmhelpers/core/templating.py:7
Function
restart_on_change
Restart services based on configuration files changing This function is used a decorator, for example:: @restart_on_change({
hooks/charmhelpers/core/host.py:238
Function
rsync
Replicate the contents of a path
hooks/charmhelpers/core/host.py:110
Method
save
Save this config to disk. Preserves items in _prev_dict that do not exist in self.
hooks/charmhelpers/core/hookenv.py:238
Function
service_available
Determine whether a system service is available
hooks/charmhelpers/core/host.py:67
Function
service_name
The name service group this unit belongs to
hooks/charmhelpers/core/hookenv.py:148
Function
service_reload
Reload a system service, optionally falling back to restart if reload fails
hooks/charmhelpers/core/host.py:39
Function
service_restart
Restart a system service
hooks/charmhelpers/core/host.py:34
Function
service_restart
Wrapper around host.service_restart to prevent spurious "unknown service" messages in the logs.
hooks/charmhelpers/core/services/base.py:292
Function
service_running
Determine whether a system service is running
hooks/charmhelpers/core/host.py:54
Function
service_start
Start a system service
hooks/charmhelpers/core/host.py:24
Function
service_stop
Stop a system service
hooks/charmhelpers/core/host.py:29
Function
service_stop
Wrapper around host.service_stop to prevent spurious "unknown service" messages in the logs.
hooks/charmhelpers/core/services/base.py:283
Function
set_nic_mtu
Set MTU on a network interface
hooks/charmhelpers/core/host.py:314
Function
symlink
Create a symbolic link
hooks/charmhelpers/core/host.py:121
Function
umount
Unmount a filesystem
hooks/charmhelpers/core/host.py:204
Function
unit_private_ip
Get this unit's private IP address
hooks/charmhelpers/core/hookenv.py:435
Function
wrap
(f)
hooks/charmhelpers/core/host.py:253
Function
wrapped_f
(*args)
hooks/charmhelpers/core/host.py:254
Function
wrapper
(*args, **kwargs)
hooks/charmhelpers/core/hookenv.py:38
Method
wrapper
(decorated)
hooks/charmhelpers/core/hookenv.py:485
Function
write_file
Create or overwrite a file with the contents of a string
hooks/charmhelpers/core/host.py:149
Method
yaml
Serialize the object to yaml
hooks/charmhelpers/core/hookenv.py:104
← previous
101–157 of 157, ranked by callers