MCPcopy Create free account

hub / github.com/bcsaller/juju-docker / functions

Functions157 in github.com/bcsaller/juju-docker

↓ 19 callersFunctionlog
Write a message to the juju log
hooks/charmhelpers/core/hookenv.py:61
↓ 7 callersFunctionservice
Control a system service
hooks/charmhelpers/core/host.py:48
↓ 6 callersMethodparse_url
(self, url)
hooks/charmhelpers/fetch/__init__.py:107
↓ 5 callersMethodfire_event
Fire a data_ready, data_lost, start, or stop event on a given service.
hooks/charmhelpers/core/services/base.py:176
↓ 5 callersMethodget_service
Given the name of a registered service, return its service definition.
hooks/charmhelpers/core/services/base.py:167
↓ 5 callersFunctionlocal_unit
Local unit ID
hooks/charmhelpers/core/hookenv.py:138
↓ 5 callersFunctionrelation_get
Get relation information
hooks/charmhelpers/core/hookenv.py:269
↓ 4 callersFunction_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 callersFunctionconfig
Juju charm configuration
hooks/charmhelpers/core/hookenv.py:253
↓ 4 callersFunctionrelation_ids
A list of relation_ids
hooks/charmhelpers/core/hookenv.py:304
↓ 3 callersMethod_get_args
(self, manager, service_name, arg_type)
hooks/charmhelpers/contrib/docker/__init__.py:77
↓ 3 callersMethod_load_ready_file
(self)
hooks/charmhelpers/core/services/base.py:203
↓ 3 callersMethodregister
Register a hook
hooks/charmhelpers/core/hookenv.py:471
↓ 3 callersFunctionrelated_units
A list of related units
hooks/charmhelpers/core/hookenv.py:315
↓ 3 callersFunctionrelation_id
The relation ID for the current relation hook
hooks/charmhelpers/core/hookenv.py:133
↓ 3 callersFunctionrelation_type
The scope for the current relation hook
hooks/charmhelpers/core/hookenv.py:128
↓ 2 callersMethod__init__
(self)
hooks/charmhelpers/core/hookenv.py:467
↓ 2 callersMethod_hydrate_entry
(self, line)
hooks/charmhelpers/core/fstab.py:50
↓ 2 callersMethod_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 callersMethod_save_ready_file
(self)
hooks/charmhelpers/core/services/base.py:212
↓ 2 callersMethodadd
(cls, device, mountpoint, filesystem, options=None, path=None)
hooks/charmhelpers/core/fstab.py:113
↓ 2 callersFunctionadd_source
(source, key=None)
hooks/charmhelpers/fetch/__init__.py:203
↓ 2 callersFunctionapt_install
Install one or more packages
hooks/charmhelpers/fetch/__init__.py:139
↓ 2 callersFunctionfile_hash
Generate a md5 hash of the contents of 'path' or None if not found
hooks/charmhelpers/core/host.py:227
↓ 2 callersMethodget_entry_by_attr
(self, attr, value)
hooks/charmhelpers/core/fstab.py:67
↓ 2 callersFunctionmkdir
Create a directory
hooks/charmhelpers/core/host.py:133
↓ 1 callersMethodadd_entry
(self, entry)
hooks/charmhelpers/core/fstab.py:74
↓ 1 callersFunctionapt_update
Update local apt cache
hooks/charmhelpers/fetch/__init__.py:171
↓ 1 callersMethodbase_url
Return url without querystring or fragment
hooks/charmhelpers/fetch/__init__.py:110
↓ 1 callersMethodbranch
(self, source, dest)
hooks/charmhelpers/fetch/bzrurl.py:19
↓ 1 callersMethodbuild_args
(self)
hooks/charmhelpers/contrib/docker/__init__.py:125
↓ 1 callersMethodcan_handle
Returns True if the source can be handled. Otherwise returns a string explaining why it cannot
hooks/charmhelpers/fetch/__init__.py:97
↓ 1 callersMethodcan_handle
(self, source)
hooks/charmhelpers/fetch/bzrurl.py:12
↓ 1 callersFunctioncharm_dir
Return the root directory of the current charm
hooks/charmhelpers/core/hookenv.py:497
↓ 1 callersMethoddownload
(self, source, dest)
hooks/charmhelpers/fetch/archiveurl.py:26
↓ 1 callersFunctionfilter_installed_packages
Returns a list of packages that require installation
hooks/charmhelpers/fetch/__init__.py:117
↓ 1 callersFunctionflush
Flushes any entries from function cache where the key is found in the function+args
hooks/charmhelpers/core/hookenv.py:50
↓ 1 callersFunctionfstab_add
Adds the given device entry to the /etc/fstab file
hooks/charmhelpers/core/host.py:181
↓ 1 callersFunctionfstab_remove
Remove the given mountpoint entry from /etc/fstab
hooks/charmhelpers/core/host.py:175
↓ 1 callersMethodget_container_args
(self, manager, service_name)
hooks/charmhelpers/contrib/docker/__init__.py:88
↓ 1 callersMethodget_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 callersMethodget_port_args
(self, manager, service_name)
hooks/charmhelpers/contrib/docker/__init__.py:85
↓ 1 callersMethodget_volume_args
(self, manager, service_name)
hooks/charmhelpers/contrib/docker/__init__.py:91
↓ 1 callersFunctioninstall
()
hooks/common.py:34
↓ 1 callersMethodinstall
Try to download and unpack the source. Return the path to the unpacked files or raise UnhandledSource.
hooks/charmhelpers/fetch/__init__.py:102
↓ 1 callersFunctioninstall_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 callersMethodis_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 callersMethodis_ready
Returns True if all of the `required_keys` are available from any units.
hooks/charmhelpers/core/services/helpers.py:42
↓ 1 callersMethodload_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 callersFunctionlsb_release
Return /etc/lsb-release in a dict
hooks/charmhelpers/core/host.py:275
↓ 1 callersFunctionmanage
()
hooks/common.py:39
↓ 1 callersMethodmanage
Handle the current hook by doing The Right Thing with the registered services.
hooks/charmhelpers/core/services/base.py:114
↓ 1 callersMethodmap
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 callersFunctionplugins
(fetch_handlers=None)
hooks/charmhelpers/fetch/__init__.py:304
↓ 1 callersMethodprevious
Return previous value for this key, or None if there is no "previous" value.
hooks/charmhelpers/core/hookenv.py:229
↓ 1 callersMethodprovide_data
(self)
hooks/charmhelpers/core/services/base.py:125
↓ 1 callersMethodreconfigure_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 callersFunctionrelation_for_unit
Get the json represenation of a unit's relation
hooks/charmhelpers/core/hookenv.py:325
↓ 1 callersFunctionrelation_types
Get a list of relation types supported by this charm
hooks/charmhelpers/core/hookenv.py:361
↓ 1 callersFunctionrelations
Get a nested dictionary of relation data for all related units
hooks/charmhelpers/core/hookenv.py:376
↓ 1 callersFunctionrelations_for_id
Get relations of a specific relation ID
hooks/charmhelpers/core/hookenv.py:337
↓ 1 callersFunctionremote_unit
The remote unit for the current relation hook
hooks/charmhelpers/core/hookenv.py:143
↓ 1 callersMethodremove_by_mountpoint
(cls, mountpoint, path=None)
hooks/charmhelpers/core/fstab.py:105
↓ 1 callersMethodremove_entry
(self, entry)
hooks/charmhelpers/core/fstab.py:82
↓ 1 callersMethodsave_lost
Save an indicator that the given service is no longer data_ready.
hooks/charmhelpers/core/services/base.py:226
↓ 1 callersMethodsave_ready
Save an indicator that the given service is now data_ready.
hooks/charmhelpers/core/services/base.py:218
↓ 1 callersMethodstop_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 callersFunctionunit_get
Get the unit ID for the remote unit
hooks/charmhelpers/core/hookenv.py:426
↓ 1 callersMethodwas_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
Functionadd_user_to_group
Add a user to a group
hooks/charmhelpers/core/host.py:99
Functionadduser
Add a user to the system
hooks/charmhelpers/core/host.py:77
Functionapt_hold
Hold one or more packages
hooks/charmhelpers/fetch/__init__.py:188
Functionapt_purge
Purge one or more packages
hooks/charmhelpers/fetch/__init__.py:177
Functionapt_upgrade
Upgrade all packages
hooks/charmhelpers/fetch/__init__.py:156
Methodbuild_args
(self)
hooks/charmhelpers/contrib/docker/__init__.py:99
Methodbuild_args
(self)
hooks/charmhelpers/contrib/docker/__init__.py:158
Methodbuild_args
(self)
hooks/charmhelpers/contrib/docker/__init__.py:204
Functioncached
Cache return values for multiple executions of func + args For example:: @cached def unit_get(attribute): pass
hooks/charmhelpers/core/hookenv.py:25
Methodcan_handle
(self, source)
hooks/charmhelpers/fetch/archiveurl.py:18
Methodchanged
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