id
int64
0
328k
repository_name
stringlengths
7
58
file_path
stringlengths
9
302
class_name
stringlengths
5
256
human_written_code
stringlengths
16
2.16M
class_skeleton
stringlengths
18
1.49M
⌀
total_program_units
int64
1
1.76k
total_doc_str
int64
0
771
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
297
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
168
CountClassBase
float64
0
40
CountClassCoupled
float64
0
583
CountClassCoupledModified
float64
0
575
CountClassDerived
float64
0
5.35k
CountDeclInstanceMethod
float64
0
529
CountDeclInstanceVariable
float64
0
296
CountDeclMethod
float64
0
599
CountDeclMethodAll
float64
0
1.12k
CountLine
float64
1
40.4k
CountLineBlank
float64
0
8.16k
CountLineCode
float64
1
25.7k
CountLineCodeDecl
float64
1
8.15k
CountLineCodeExe
float64
0
24.2k
CountLineComment
float64
0
16.5k
CountStmt
float64
1
9.71k
CountStmtDecl
float64
1
8.15k
CountStmtExe
float64
0
9.69k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
2.9k
19,400
saltstack/salt
saltstack_salt/salt/_logging/mixins.py
salt._logging.mixins.LoggingTraceMixin
import logging class LoggingTraceMixin: """ Simple mix-in class to add a trace method to python's logging. """ def trace(self, msg, *args, **kwargs): self.log(getattr(logging, 'TRACE', 5), msg, *args, **kwargs)
class LoggingTraceMixin: ''' Simple mix-in class to add a trace method to python's logging. ''' def trace(self, msg, *args, **kwargs): pass
2
1
2
0
2
0
1
1
0
0
0
0
1
0
1
1
7
1
3
2
1
3
3
2
1
1
0
0
1
19,401
saltstack/salt
saltstack_salt/salt/_logging/mixins.py
salt._logging.mixins.MultiprocessingStateMixin
import weakref import salt._logging class MultiprocessingStateMixin: def __setstate__(self, state): logging_config = state['logging_config'] if not salt._logging.get_logging_options_dict(): salt._logging.set_logging_options_dict(logging_config) try: salt._logging.se...
class MultiprocessingStateMixin: def __setstate__(self, state): pass def __getstate__(self): pass
3
0
11
1
9
2
2
0.28
0
2
0
1
2
0
2
2
25
3
18
5
15
5
12
4
9
3
0
1
4
19,402
saltstack/salt
saltstack_salt/salt/acl/__init__.py
salt.acl.PublisherACL
import salt.utils.stringutils class PublisherACL: """ Represents the publisher ACL and provides methods to query the ACL for given operations """ def __init__(self, blacklist): self.blacklist = blacklist def user_is_blacklisted(self, user): """ Takes a username as a st...
class PublisherACL: ''' Represents the publisher ACL and provides methods to query the ACL for given operations ''' def __init__(self, blacklist): pass def user_is_blacklisted(self, user): ''' Takes a username as a string and returns a boolean. True indicates that ...
6
2
7
0
6
1
2
0.34
0
1
0
0
5
1
5
5
44
5
29
9
23
10
21
9
15
4
0
2
11
19,403
saltstack/salt
saltstack_salt/salt/auth/__init__.py
salt.auth.AuthUser
import salt.utils.network import salt.utils.dictupdate import salt.utils.minions import salt.utils.files import salt.exceptions import salt.utils.versions import salt.channel.client import salt.config import salt.utils.user import salt.payload import salt.utils.args import salt.loader class AuthUser: """ Repre...
class AuthUser: ''' Represents a user requesting authentication to the salt master ''' def __init__(self, user): ''' Instantiate an AuthUser object. Takes a user to represent, as a string. ''' pass def is_sudo(self): ''' Determines if the us...
5
5
8
1
2
5
1
2.44
0
0
0
0
4
1
4
4
38
7
9
6
4
22
9
6
4
1
0
0
4
19,404
saltstack/salt
saltstack_salt/salt/auth/__init__.py
salt.auth.LoadAuth
import salt.channel.client import salt.config import time import salt.loader import salt.utils.dictupdate from salt.utils.decorators import cached_property import salt.utils.versions import salt.utils.args import salt.payload import salt.utils.minions import salt.utils.user import salt.utils.files import random import ...
class LoadAuth: ''' Wrap the authentication system to handle peripheral components ''' def __init__(self, opts, ckminions=None): pass @cached_property def ckminions(self): pass def load_name(self, load): ''' Return the primary name associate with the load, ...
20
17
25
2
18
6
5
0.34
0
8
3
0
17
5
17
17
453
57
300
69
281
103
249
66
230
17
0
4
89
19,405
saltstack/salt
saltstack_salt/salt/auth/__init__.py
salt.auth.Resolver
import salt.utils.args import salt.utils.user import salt.utils.dictupdate import salt.payload import salt.utils.versions import salt.utils.network import getpass import salt.loader import salt.channel.client import salt.exceptions import salt.config import salt.utils.files import salt.utils.minions class Resolver: ...
class Resolver: ''' The class used to resolve options for the command line and for generic interactive interfaces ''' def __init__(self, opts): pass def _send_token_request(self, load): pass def cli(self, eauth): ''' Execute the CLI options to fill in the ...
7
5
15
1
12
3
3
0.27
0
4
1
0
6
2
6
6
98
9
70
21
63
19
54
19
47
9
0
3
16
19,406
saltstack/salt
saltstack_salt/salt/auth/ldap.py
salt.auth.ldap._LDAPConnection
from salt.exceptions import CommandExecutionError, SaltInvocationError class _LDAPConnection: """ Setup an LDAP connection. """ def __init__(self, uri, server, port, starttls, tls, no_verify, binddn, bindpw, anonymous, accountattributename, activedirectory=False): """ Bind to an LDAP d...
class _LDAPConnection: ''' Setup an LDAP connection. ''' def __init__(self, uri, server, port, starttls, tls, no_verify, binddn, bindpw, anonymous, accountattributename, activedirectory=False): ''' Bind to an LDAP directory using passed credentials. ''' pass
2
2
61
4
54
6
10
0.16
0
2
1
0
1
8
1
1
66
5
55
25
40
9
30
11
28
10
0
3
10
19,407
saltstack/salt
saltstack_salt/salt/auth/pam.py
salt.auth.pam.PamConv
from ctypes import CDLL, CFUNCTYPE, POINTER, Structure, c_char, c_char_p, c_int, c_uint, c_void_p, cast, pointer, sizeof class PamConv(Structure): """ Wrapper class for pam_conv structure """ _fields_ = [('conv', CONV_FUNC), ('appdata_ptr', c_void_p)]
class PamConv(Structure): ''' Wrapper class for pam_conv structure ''' pass
1
1
0
0
0
0
0
1.5
1
0
0
0
0
0
0
0
6
1
2
2
1
3
2
2
1
0
1
0
0
19,408
saltstack/salt
saltstack_salt/salt/auth/pam.py
salt.auth.pam.PamHandle
from ctypes import CDLL, CFUNCTYPE, POINTER, Structure, c_char, c_char_p, c_int, c_uint, c_void_p, cast, pointer, sizeof class PamHandle(Structure): """ Wrapper class for pam_handle_t """ _fields_ = [('handle', c_void_p)] def __init__(self): Structure.__init__(self) self.handle = 0
class PamHandle(Structure): ''' Wrapper class for pam_handle_t ''' def __init__(self): pass
2
1
3
0
3
0
1
0.6
1
0
0
0
1
1
1
1
10
2
5
4
3
3
5
4
3
1
1
0
1
19,409
saltstack/salt
saltstack_salt/salt/auth/pam.py
salt.auth.pam.PamMessage
from ctypes import CDLL, CFUNCTYPE, POINTER, Structure, c_char, c_char_p, c_int, c_uint, c_void_p, cast, pointer, sizeof class PamMessage(Structure): """ Wrapper class for pam_message structure """ _fields_ = [('msg_style', c_int), ('msg', c_char_p)] def __repr__(self): return f"<PamMessag...
class PamMessage(Structure): ''' Wrapper class for pam_message structure ''' def __repr__(self): pass
2
1
2
0
2
0
1
0.43
1
0
0
0
1
0
1
1
12
2
7
3
5
3
4
3
2
1
1
0
1
19,410
saltstack/salt
saltstack_salt/salt/auth/pam.py
salt.auth.pam.PamResponse
from ctypes import CDLL, CFUNCTYPE, POINTER, Structure, c_char, c_char_p, c_int, c_uint, c_void_p, cast, pointer, sizeof class PamResponse(Structure): """ Wrapper class for pam_response structure """ _fields_ = [('resp', c_char_p), ('resp_retcode', c_int)] def __repr__(self): return f"<Pam...
class PamResponse(Structure): ''' Wrapper class for pam_response structure ''' def __repr__(self): pass
2
1
2
0
2
0
1
0.43
1
0
0
0
1
0
1
1
12
2
7
3
5
3
4
3
2
1
1
0
1
19,411
saltstack/salt
saltstack_salt/salt/beacons/__init__.py
salt.beacons.Beacon
import sys import salt.utils.minion import re import salt.utils.event import copy class Beacon: """ This class is used to evaluate and execute on the beacon system """ def __init__(self, opts, functions): import salt.loader self.opts = opts self.functions = functions se...
class Beacon: ''' This class is used to evaluate and execute on the beacon system ''' def __init__(self, opts, functions): pass def process(self, config, grains): ''' Process the configured beacons The config must be a list and looks like this in yaml ....
21
20
25
2
18
5
3
0.26
0
5
0
0
20
4
20
20
514
66
356
81
334
93
235
70
213
27
0
5
67
19,412
saltstack/salt
saltstack_salt/salt/beacons/network_settings.py
salt.beacons.network_settings.Hashabledict
class Hashabledict(dict): """ Helper class that implements a hash function for a dictionary """ def __hash__(self): return hash(tuple(sorted(self.items())))
class Hashabledict(dict): ''' Helper class that implements a hash function for a dictionary ''' def __hash__(self): pass
2
1
2
0
2
0
1
1
1
1
0
0
1
0
1
28
7
1
3
2
1
3
3
2
1
1
2
0
1
19,413
saltstack/salt
saltstack_salt/salt/beacons/watchdog.py
salt.beacons.watchdog.Handler
import logging class Handler(FileSystemEventHandler): def __init__(self, queue, masks=None): super().__init__() self.masks = masks or DEFAULT_MASK self.queue = queue def on_created(self, event): self._append_if_mask(event, 'create') def on_modified(self, event): s...
class Handler(FileSystemEventHandler): def __init__(self, queue, masks=None): pass def on_created(self, event): pass def on_modified(self, event): pass def on_deleted(self, event): pass def on_moved(self, event): pass def _append_if_mask(self, event...
8
0
3
0
3
0
1
0
1
1
0
0
7
2
7
8
26
7
19
10
11
0
19
10
11
2
1
1
8
19,414
saltstack/salt
saltstack_salt/salt/cache/__init__.py
salt.cache.Cache
import salt.config import time import salt.loader import salt.syspaths class Cache: """ Base caching object providing access to the modular cache subsystem. Related configuration options: :param cache: The name of the cache driver to use. This is the name of the python module of the `...
class Cache: ''' Base caching object providing access to the modular cache subsystem. Related configuration options: :param cache: The name of the cache driver to use. This is the name of the python module of the `salt.cache` package. Default is `localfs`. Terminology: Salt cach...
12
8
19
3
6
10
2
2.02
0
1
0
1
10
5
10
10
227
44
61
30
49
123
56
29
45
6
0
3
18
19,415
saltstack/salt
saltstack_salt/salt/cache/__init__.py
salt.cache.MemCache
import time from salt.utils.odict import OrderedDict class MemCache(Cache): """ Short-lived in-memory cache store keeping values on time and/or size (count) basis. """ data = {} def __init__(self, opts, **kwargs): super().__init__(opts, **kwargs) self.expire = opts.get('memcach...
class MemCache(Cache): ''' Short-lived in-memory cache store keeping values on time and/or size (count) basis. ''' def __init__(self, opts, **kwargs): pass @classmethod def __cleanup(cls, expire): pass def _get_storage_id(self): pass @property def stora...
10
1
11
0
10
0
4
0.1
1
5
0
0
6
7
7
17
94
9
77
27
67
8
67
25
59
7
1
3
26
19,416
saltstack/salt
saltstack_salt/salt/channel/client.py
salt.channel.client.AsyncPubChannel
import salt.utils.event import salt.exceptions import salt.utils.stringutils import salt.payload import salt.crypt import salt.utils.versions import salt.utils.files import os import salt.transport.frame import tornado.gen import tornado.ioloop import time import salt.utils.verify class AsyncPubChannel: """ Fa...
class AsyncPubChannel: ''' Factory class to create subscription channels to the master's Publisher ''' @classmethod def factory(cls, opts, **kwargs): pass def __init__(self, opts, transport, auth, io_loop=None): pass @property def crypt(self): pass @torn...
26
5
13
1
11
2
3
0.2
0
11
5
0
15
10
16
16
262
28
200
60
174
39
145
49
126
7
0
4
50
19,417
saltstack/salt
saltstack_salt/salt/channel/client.py
salt.channel.client.AsyncPullChannel
import salt.transport.frame import salt.exceptions import salt.utils.files import salt.utils.event import salt.payload import salt.utils.stringutils import salt.utils.verify import salt.utils.versions import salt.crypt class AsyncPullChannel: """ Factory class to create IPC pull channels """ @staticme...
class AsyncPullChannel: ''' Factory class to create IPC pull channels ''' @staticmethod def factory(opts, **kwargs): ''' If we have additional IPC transports other than UXD and TCP, add them here ''' pass
3
2
11
1
7
3
1
0.67
0
1
1
0
0
0
1
1
17
2
9
4
5
6
5
3
2
1
0
0
1
19,418
saltstack/salt
saltstack_salt/salt/channel/client.py
salt.channel.client.AsyncPushChannel
import salt.utils.stringutils import salt.utils.verify import salt.exceptions import salt.utils.event import salt.crypt import salt.payload import salt.utils.files import salt.utils.versions import salt.transport.frame class AsyncPushChannel: """ Factory class to create IPC Push channels """ @staticme...
class AsyncPushChannel: ''' Factory class to create IPC Push channels ''' @staticmethod def factory(opts, **kwargs): ''' If we have additional IPC transports other than UxD and TCP, add them here ''' pass
3
2
13
1
7
5
1
0.89
0
1
1
0
0
0
1
1
19
2
9
4
5
8
5
3
2
1
0
0
1
19,419
saltstack/salt
saltstack_salt/salt/channel/client.py
salt.channel.client.AsyncReqChannel
import salt.utils.verify import salt.payload import salt.exceptions import time import salt.transport.frame import tornado.ioloop import os import salt.utils.stringutils import salt.utils.event import tornado.gen import salt.utils.versions import salt.utils.files import salt.crypt import uuid class AsyncReqChannel: ...
class AsyncReqChannel: ''' Factory class to create a asynchronous communication channels to the master's ReqServer. ReqChannels connect to the master's ReqServerChannel. ''' @classmethod def factory(cls, opts, **kwargs): pass def __init__(self, opts, transport, auth, timeout=REQUES...
28
6
14
1
11
3
3
0.23
0
8
4
0
16
7
17
17
283
35
204
76
162
47
143
51
124
8
0
3
48
19,420
saltstack/salt
saltstack_salt/salt/channel/client.py
salt.channel.client.PullChannel
from salt.utils.asynchronous import SyncWrapper class PullChannel: """ Factory class to create Sync channel for pull side of push/pull IPC """ @staticmethod def factory(opts, **kwargs): return SyncWrapper(AsyncPullChannel.factory, (opts,), kwargs, loop_kwarg='io_loop')
class PullChannel: ''' Factory class to create Sync channel for pull side of push/pull IPC ''' @staticmethod def factory(opts, **kwargs): pass
3
1
7
0
7
0
1
0.33
0
2
2
0
0
0
1
1
13
1
9
3
6
3
3
2
1
1
0
0
1
19,421
saltstack/salt
saltstack_salt/salt/channel/client.py
salt.channel.client.PushChannel
from salt.utils.asynchronous import SyncWrapper class PushChannel: """ Factory class to create Sync channel for push side of push/pull IPC """ @staticmethod def factory(opts, **kwargs): return SyncWrapper(AsyncPushChannel.factory, (opts,), kwargs, loop_kwarg='io_loop')
class PushChannel: ''' Factory class to create Sync channel for push side of push/pull IPC ''' @staticmethod def factory(opts, **kwargs): pass
3
1
7
0
7
0
1
0.33
0
2
2
0
0
0
1
1
13
1
9
3
6
3
3
2
1
1
0
0
1
19,422
saltstack/salt
saltstack_salt/salt/channel/client.py
salt.channel.client.ReqChannel
from salt.utils.asynchronous import SyncWrapper class ReqChannel: """ Factory class to create a sychronous communication channels to the master's ReqServer. ReqChannels use transports to connect to the ReqServer. """ @staticmethod def factory(opts, **kwargs): return SyncWrapper(AsyncRe...
class ReqChannel: ''' Factory class to create a sychronous communication channels to the master's ReqServer. ReqChannels use transports to connect to the ReqServer. ''' @staticmethod def factory(opts, **kwargs): pass
3
1
7
0
7
0
1
0.44
0
2
2
1
0
0
1
1
14
1
9
3
6
4
3
2
1
1
0
0
1
19,423
saltstack/salt
saltstack_salt/salt/channel/server.py
salt.channel.server.MasterPubServerChannel
import asyncio import salt.utils.minions import salt.master import salt.utils.platform import salt.payload import collections import salt.utils.stringutils import salt.transport.frame import tornado.gen import hashlib import salt.utils.channel import salt.cache import salt.utils.event import salt.crypt import os class...
class MasterPubServerChannel: ''' ''' @classmethod def factory(cls, opts, **kwargs): pass def __init__(self, opts, transport, presence_events=False): pass def send_aes_key_event(self): pass def __getstate__(self): pass def __setstate__(self, state): ...
14
3
19
0
18
1
3
0.08
0
9
5
0
11
8
12
12
246
13
219
56
205
17
142
53
129
12
0
6
39
19,424
saltstack/salt
saltstack_salt/salt/channel/server.py
salt.channel.server.PubServerChannel
import salt.payload import salt.utils.stringutils import salt.transport.frame import salt.utils.channel import salt.cache import salt.utils.event import salt.crypt import os import salt.utils.minions import salt.master import salt.utils.platform class PubServerChannel: """ Factory class to create subscription ...
class PubServerChannel: ''' Factory class to create subscription channels to the master's Publisher ''' @classmethod def factory(cls, opts, **kwargs): pass def __init__(self, opts, transport, presence_events=False): pass @property def aes_key(self): pass ...
18
3
13
0
11
2
3
0.16
0
9
6
0
14
9
15
15
211
21
164
50
146
26
134
48
118
6
0
3
41
19,425
saltstack/salt
saltstack_salt/salt/channel/server.py
salt.channel.server.ReqServerChannel
import salt.utils.minions import salt.utils.event import salt.utils.channel import salt.transport.frame import salt.payload import salt.master import salt.crypt import salt.cache import tornado.gen import time import pathlib import os import logging import hashlib import binascii from salt.utils.cache import CacheCli f...
class ReqServerChannel: ''' ReqServerChannel handles request/reply messages from ReqChannels. ''' @classmethod def factory(cls, opts, **kwargs): pass @classmethod def compare_keys(cls, key1, key2): ''' Normalize and compare two keys Returns: bool:...
20
9
53
3
43
8
8
0.18
0
17
9
0
11
10
13
13
714
53
563
85
533
102
335
66
318
65
0
5
110
19,426
saltstack/salt
saltstack_salt/salt/cli/api.py
salt.cli.api.SaltAPI
import salt.client.netapi import salt.utils.parsers as parsers from salt.utils.verify import check_user import salt.utils.files class SaltAPI(parsers.SaltAPIParser): """ The cli parser object used to fire up the salt api system. """ def prepare(self): """ Run the preparation sequence r...
class SaltAPI(parsers.SaltAPIParser): ''' The cli parser object used to fire up the salt api system. ''' def prepare(self): ''' Run the preparation sequence required to start a salt-api daemon. If sub-classed, don't **ever** forget to run: super(YourSubClass, self)....
5
4
11
1
6
4
2
0.78
1
2
1
0
4
1
4
111
50
9
23
7
18
18
22
7
17
2
5
1
6
19,427
saltstack/salt
saltstack_salt/salt/cli/batch.py
salt.cli.batch.Batch
import salt.client import copy import salt.exceptions import salt.output import salt.utils.stringutils import math import time from datetime import datetime, timedelta class Batch: """ Manage the execution of batch runs """ def __init__(self, opts, eauth=None, quiet=False, _parser=None): """ ...
class Batch: ''' Manage the execution of batch runs ''' def __init__(self, opts, eauth=None, quiet=False, _parser=None): ''' :param dict opts: A config options dictionary. :param dict eauth: An eauth config to use. The default is an empty dict. ...
7
5
54
4
41
8
11
0.22
0
11
0
0
5
9
5
5
330
32
245
55
238
53
181
55
174
48
0
7
68
19,428
saltstack/salt
saltstack_salt/salt/cli/call.py
salt.cli.call.SaltCall
from salt.config import _expand_glob_path, prepend_root_dir import salt.utils.parsers import salt.defaults.exitcodes import os import salt.cli.caller class SaltCall(salt.utils.parsers.SaltCallOptionParser): """ Used to locally execute a salt command """ def run(self): """ Execute the s...
class SaltCall(salt.utils.parsers.SaltCallOptionParser): ''' Used to locally execute a salt command ''' def run(self): ''' Execute the salt call! ''' pass
2
2
46
9
30
7
9
0.32
1
1
1
0
1
0
1
112
51
10
31
7
29
10
29
7
27
9
5
1
9
19,429
saltstack/salt
saltstack_salt/salt/cli/caller.py
salt.cli.caller.BaseCaller
import salt.minion import os from salt._logging import LOG_LEVELS import sys import salt.channel.client import salt.loader import salt.output import salt.utils.stringutils import salt import logging import salt.utils.files import salt.payload import salt.utils.minion from salt.exceptions import CommandExecutionError, C...
class BaseCaller: ''' Base class for caller transports ''' def __init__(self, opts): ''' Pass in command line opts ''' pass def print_docs(self): ''' Pick up the documentation for all of the modules and print it out. ''' pass ...
6
6
47
1
41
6
10
0.16
0
11
4
1
5
2
5
5
243
10
205
43
199
32
153
39
147
33
0
4
48
19,430
saltstack/salt
saltstack_salt/salt/cli/caller.py
salt.cli.caller.Caller
class Caller: """ Factory class to create salt-call callers for different transport """ @staticmethod def factory(opts, **kwargs): return ZeroMQCaller(opts, **kwargs)
class Caller: ''' Factory class to create salt-call callers for different transport ''' @staticmethod def factory(opts, **kwargs): pass
3
1
2
0
2
0
1
0.75
0
1
1
0
0
0
1
1
8
1
4
3
1
3
3
2
1
1
0
0
1
19,431
saltstack/salt
saltstack_salt/salt/cli/caller.py
salt.cli.caller.ZeroMQCaller
import salt.defaults.exitcodes import salt.utils.profile import salt.utils.files import salt.output import salt.loader import salt.payload import salt.utils.stringutils import salt.utils.args import salt.utils.minion import salt.channel.client import salt.utils.jid import salt.minion import salt class ZeroMQCaller(Bas...
class ZeroMQCaller(BaseCaller): ''' Object to wrap the calling of local salt modules for the salt-call command ''' def __init__(self, opts): ''' Pass in the command line options ''' pass def return_pub(self, ret): ''' Return the data up to the maste...
3
3
8
0
5
4
2
0.91
1
1
0
0
2
1
2
7
22
2
11
7
8
10
9
5
6
2
1
2
3
19,432
saltstack/salt
saltstack_salt/salt/cli/cp.py
salt.cli.cp.SaltCP
import salt.utils.gzip_util import salt.utils.minions import errno import salt.utils.files import salt.utils.stringutils import salt.output import base64 import salt.client import salt.utils.parsers import salt.utils.platform import salt.utils.itertools import os import salt.utils.verify import sys import re class Sal...
class SaltCP: ''' Create a salt cp object, used to distribute simple files with salt ''' def __init__(self, opts): pass def _mode(self, path): pass def _recurse(self, path): ''' Get a list of all specified files ''' pass def _list_files(se...
11
7
23
2
18
3
4
0.19
0
8
1
0
9
2
9
9
230
28
171
60
160
33
124
56
113
17
0
5
44
19,433
saltstack/salt
saltstack_salt/salt/cli/cp.py
salt.cli.cp.SaltCPCli
import salt.utils.stringutils import salt.utils.verify import salt.utils.files import salt.output import salt.utils.itertools import salt.utils.parsers import salt.utils.minions import salt.utils.platform import salt.client import salt.utils.gzip_util class SaltCPCli(salt.utils.parsers.SaltCPOptionParser): """ ...
class SaltCPCli(salt.utils.parsers.SaltCPOptionParser): ''' Run the salt-cp command line client ''' def run(self): ''' Execute salt-cp ''' pass
2
2
7
0
4
3
1
1.2
1
1
1
0
1
0
1
108
12
1
5
3
3
6
5
3
3
1
5
0
1
19,434
saltstack/salt
saltstack_salt/salt/cli/daemons.py
salt.cli.daemons.DaemonsMixin
from salt.exceptions import SaltClientError, SaltSystemExit, get_error_message class DaemonsMixin: """ Uses the same functions for all daemons """ def verify_hash_type(self): """ Verify and display a nag-messsage to the log if vulnerable hash-type is used. :return: """...
class DaemonsMixin: ''' Uses the same functions for all daemons ''' def verify_hash_type(self): ''' Verify and display a nag-messsage to the log if vulnerable hash-type is used. :return: ''' pass def action_log_info(self, action): ''' Say da...
6
6
10
1
4
4
1
1.18
0
0
0
4
5
0
5
5
57
10
22
6
16
26
13
6
7
2
0
1
6
19,435
saltstack/salt
saltstack_salt/salt/cli/daemons.py
salt.cli.daemons.Master
import salt.utils.kinds as kinds import os from salt.utils import migrations class Master(salt.utils.parsers.MasterOptionParser, DaemonsMixin): """ Creates a master server """ def _handle_signals(self, signum, sigframe): if hasattr(self.master, 'process_manager'): self.master.proce...
class Master(salt.utils.parsers.MasterOptionParser, DaemonsMixin): ''' Creates a master server ''' def _handle_signals(self, signum, sigframe): pass def verify_environment(self): pass def prepare(self): ''' Run the preparation sequence required to start a salt...
6
4
22
2
16
3
2
0.25
2
3
1
0
5
1
5
120
121
17
84
14
75
21
43
11
36
3
5
1
12
19,436
saltstack/salt
saltstack_salt/salt/cli/daemons.py
salt.cli.daemons.Minion
from salt.utils import migrations from salt.utils.process import HAS_PSUTIL import salt.utils.kinds as kinds import os from salt.exceptions import SaltClientError, SaltSystemExit, get_error_message class Minion(salt.utils.parsers.MinionOptionParser, DaemonsMixin): """ Create a minion server """ def _h...
class Minion(salt.utils.parsers.MinionOptionParser, DaemonsMixin): ''' Create a minion server ''' def _handle_signals(self, signum, sigframe): pass def prepare(self): ''' Run the preparation sequence required to start a salt minion. If sub-classed, don't **ever** f...
7
5
27
3
18
7
4
0.39
2
7
3
0
6
1
6
122
177
24
112
18
102
44
78
12
70
9
6
4
26
19,437
saltstack/salt
saltstack_salt/salt/cli/daemons.py
salt.cli.daemons.ProxyMinion
from salt.exceptions import SaltClientError, SaltSystemExit, get_error_message from salt.utils import migrations from salt.utils.platform import is_junos import os import salt.utils.kinds as kinds class ProxyMinion(salt.utils.parsers.ProxyMinionOptionParser, DaemonsMixin): """ Create a proxy minion server ...
class ProxyMinion(salt.utils.parsers.ProxyMinionOptionParser, DaemonsMixin): ''' Create a proxy minion server ''' def _handle_signals(self, signum, sigframe): pass def prepare(self): ''' Run the preparation sequence required to start a salt proxy minion. If sub-cla...
5
4
33
4
20
9
5
0.5
2
6
3
0
4
1
4
120
141
20
82
14
74
41
55
10
49
10
5
4
18
19,438
saltstack/salt
saltstack_salt/salt/cli/daemons.py
salt.cli.daemons.Syndic
import salt.utils.kinds as kinds class Syndic(salt.utils.parsers.SyndicOptionParser, DaemonsMixin): """ Create a syndic server """ def prepare(self): """ Run the preparation sequence required to start a salt syndic minion. If sub-classed, don't **ever** forget to run: ...
class Syndic(salt.utils.parsers.SyndicOptionParser, DaemonsMixin): ''' Create a syndic server ''' def prepare(self): ''' Run the preparation sequence required to start a salt syndic minion. If sub-classed, don't **ever** forget to run: super(YourSubClass, self).prep...
4
4
23
3
14
6
2
0.47
2
4
1
0
3
1
3
118
77
12
45
9
38
21
26
6
21
3
5
2
7
19,439
saltstack/salt
saltstack_salt/salt/cli/key.py
salt.cli.key.SaltKey
from salt.exceptions import SaltInvocationError from salt.utils.verify import check_user import salt.utils.parsers class SaltKey(salt.utils.parsers.SaltKeyOptionParser): """ Initialize the Salt key manager """ def run(self): """ Execute salt-key """ import salt.key ...
class SaltKey(salt.utils.parsers.SaltKeyOptionParser): ''' Initialize the Salt key manager ''' def run(self): ''' Execute salt-key ''' pass
2
2
11
2
6
3
2
0.86
1
1
1
0
1
0
1
112
16
3
7
4
4
6
7
4
4
2
5
1
2
19,440
saltstack/salt
saltstack_salt/salt/cli/run.py
salt.cli.run.SaltRun
from salt.utils.verify import check_user from salt.exceptions import SaltClientError import salt.utils.profile import salt.defaults.exitcodes import salt.utils.parsers class SaltRun(salt.utils.parsers.SaltRunOptionParser): """ Used to execute Salt runners """ def run(self): """ Execute...
class SaltRun(salt.utils.parsers.SaltRunOptionParser): ''' Used to execute Salt runners ''' def run(self): ''' Execute salt-run ''' pass
2
2
45
5
29
11
7
0.47
1
5
2
0
1
0
1
112
50
6
30
8
27
14
22
7
19
7
5
4
7
19,441
saltstack/salt
saltstack_salt/salt/cli/salt.py
salt.cli.salt.SaltCMD
import os from salt.utils.args import yamlify_arg from salt.exceptions import AuthenticationError, AuthorizationError, EauthAuthenticationError, LoaderError, SaltClientError, SaltInvocationError, SaltSystemExit import sys import salt.utils.stringutils import salt.defaults.exitcodes import salt.utils.parsers class Salt...
class SaltCMD(salt.utils.parsers.SaltCMDOptionParser): ''' The execution of a salt command happens here ''' def run(self): ''' Execute the salt command line ''' pass def _preview_target(self): ''' Return a list of minions from a given target ...
13
9
36
4
28
5
8
0.18
1
15
9
0
12
3
12
126
442
54
333
70
311
60
268
68
246
37
6
4
92
19,442
saltstack/salt
saltstack_salt/salt/cli/spm.py
salt.cli.spm.SPM
import salt.spm from salt.utils.verify import verify_env import salt.utils.parsers as parsers class SPM(parsers.SPMParser): """ The cli parser object used to fire up the salt spm system. """ def run(self): """ Run the api """ ui = salt.spm.SPMCmdlineInterface() ...
class SPM(parsers.SPMParser): ''' The cli parser object used to fire up the salt spm system. ''' def run(self): ''' Run the api ''' pass
2
2
16
0
13
3
1
0.43
1
2
2
0
1
0
1
98
21
1
14
5
12
6
8
5
6
1
5
0
1
19,443
saltstack/salt
saltstack_salt/salt/cli/ssh.py
salt.cli.ssh.SaltSSH
import salt.client.ssh import sys import salt.utils.parsers class SaltSSH(salt.utils.parsers.SaltSSHOptionParser): """ Used to Execute the salt ssh routine """ def run(self): if '-H' in sys.argv or '--hosts' in sys.argv: sys.argv += ['x', 'x'] self.parse_args() ssh ...
class SaltSSH(salt.utils.parsers.SaltSSHOptionParser): ''' Used to Execute the salt ssh routine ''' def run(self): pass
2
1
11
1
9
2
2
0.5
1
1
1
0
1
0
1
111
16
2
10
3
8
5
9
3
7
2
5
1
2
19,444
saltstack/salt
saltstack_salt/salt/client/__init__.py
salt.client.Caller
import salt.syspaths as syspaths import salt.utils.minions import salt.cache import salt.utils.verify import salt.payload import os import salt.utils.jid import salt.utils.user import salt.loader import salt.utils.files import salt.utils.stringutils import salt.defaults.exitcodes import salt.utils.event import salt.uti...
class Caller: ''' ``Caller`` is the same interface used by the :command:`salt-call` command-line tool on the Salt Minion. .. versionchanged:: 2015.8.0 Added the ``cmd`` method for consistency with the other Salt clients. The existing ``function`` and ``sminion.functions`` interfaces sti...
4
3
12
2
5
5
1
2.69
0
1
1
0
3
2
3
3
76
17
16
8
11
43
13
8
8
2
0
1
4
19,445
saltstack/salt
saltstack_salt/salt/client/__init__.py
salt.client.FunctionWrapper
class FunctionWrapper(dict): """ Create a function wrapper that looks like the functions dict on the minion but invoked commands on the minion via a LocalClient. This allows SLS files to be loaded with an object that calls down to the minion when the salt functions dict is referenced. """ ...
class FunctionWrapper(dict): ''' Create a function wrapper that looks like the functions dict on the minion but invoked commands on the minion via a LocalClient. This allows SLS files to be loaded with an object that calls down to the minion when the salt functions dict is referenced. ''' d...
6
5
9
0
5
3
1
0.91
1
5
1
0
4
4
4
31
49
7
22
11
16
20
20
11
14
2
2
1
7
19,446
saltstack/salt
saltstack_salt/salt/client/__init__.py
salt.client.LocalClient
from salt.exceptions import AuthenticationError, AuthorizationError, EauthAuthenticationError, PublishError, SaltClientError, SaltInvocationError, SaltReqTimeoutError import random import salt.utils.verify import os import salt.utils.user import logging import salt.utils.stringutils import salt.utils.platform import sa...
class LocalClient: ''' The interface used by the :command:`salt` CLI tool on the Salt Master ``LocalClient`` is used to send a command to Salt minions to execute :ref:`execution modules <all-salt.modules>` and return the results to the Salt Master. Importing and using ``LocalClient`` must be do...
39
30
52
5
35
12
7
0.37
0
25
11
0
36
11
36
36
1,942
222
1,261
364
1,039
466
686
167
647
52
0
6
257
19,447
saltstack/salt
saltstack_salt/salt/client/__init__.py
salt.client.ProxyCaller
import salt.channel.client import salt.payload import os import salt.syspaths as syspaths import salt.defaults.exitcodes import salt.loader import salt.config import salt.utils.args import salt.utils.minions import salt.utils.network import salt.utils.jid import salt.utils.files import salt.utils.event import salt.util...
class ProxyCaller: ''' ``ProxyCaller`` is the same interface used by the :command:`salt-call` with the args ``--proxyid <proxyid>`` command-line tool on the Salt Proxy Minion. Importing and using ``ProxyCaller`` must be done on the same machine as a Salt Minion and it must be done using the sam...
3
2
18
2
12
4
3
1.5
0
3
2
0
2
2
2
2
75
15
24
12
20
36
20
12
16
5
0
2
6
19,448
saltstack/salt
saltstack_salt/salt/client/mixins.py
salt.client.mixins.AsyncClientMixin
import salt.utils.state import os import salt.output import salt.utils.event import salt.utils.error import salt.minion import salt._logging import salt.exceptions import salt.utils.platform import salt.channel.client import salt.utils.versions import signal import salt.utils.doc import salt.utils.jid import salt.utils...
class AsyncClientMixin(ClientStateMixin): ''' A mixin for *Client interfaces to enable easy asynchronous function execution ''' @classmethod def _proc_function_remote(cls, *, instance, opts, fun, low, user, tag, jid, daemonize=True): ''' Run this method in a multiprocess target to e...
9
6
27
2
17
8
4
0.46
1
5
2
2
4
1
6
9
178
21
108
34
85
50
68
16
61
7
1
2
21
19,449
saltstack/salt
saltstack_salt/salt/client/mixins.py
salt.client.mixins.ClientFuncsDict
import salt.output import salt.utils.doc import salt.utils.job import salt.utils.state import salt.exceptions import salt.utils.process import salt.channel.client import salt.utils.versions import salt._logging import salt.utils.error import salt.utils.platform import salt.utils.event from collections.abc import Mappin...
class ClientFuncsDict(MutableMapping): ''' Class to make a read-only dict for accessing runner funcs "directly" ''' def __init__(self, client): pass def __getattr__(self, attr): ''' Provide access eg. to 'pack' ''' pass def __setitem__(self, key, val):...
9
3
10
1
8
1
1
0.3
1
3
0
0
7
1
7
48
64
12
40
16
31
12
27
16
18
3
7
2
11
19,450
saltstack/salt
saltstack_salt/salt/client/mixins.py
salt.client.mixins.ClientStateMixin
class ClientStateMixin: def __init__(self, opts, context=None): self.opts = opts if context is None: context = {} self.context = context def __getstate__(self): return {'opts': self.opts, 'context': self.context or None} def __setstate__(self, state): s...
class ClientStateMixin: def __init__(self, opts, context=None): pass def __getstate__(self): pass def __setstate__(self, state): pass
4
0
4
0
4
0
1
0.15
0
0
0
2
3
2
3
3
17
2
13
6
9
2
10
6
6
2
0
1
4
19,451
saltstack/salt
saltstack_salt/salt/client/mixins.py
salt.client.mixins.SyncClientMixin
import weakref import salt.utils.lazy import salt._logging import fnmatch import salt.utils.args import salt.utils.doc from collections.abc import Mapping, MutableMapping import salt.utils.process import salt.utils.job import logging import salt.utils.versions import salt.utils.error import salt.minion import salt.chan...
class SyncClientMixin(ClientStateMixin): ''' A mixin for *Client interfaces to abstract common function execution ''' def functions_dict(self): ''' Return a dict that will mimic the "functions" dict used all over salt. It creates a wrapper around the function allowing **kwargs,...
11
8
40
3
28
9
6
0.33
1
19
8
2
8
2
8
11
338
33
231
56
212
76
135
38
126
18
1
4
45
19,452
saltstack/salt
saltstack_salt/salt/client/netapi.py
salt.client.netapi.NetapiClient
import salt.loader import salt.utils.process import signal class NetapiClient: """ Start each netapi module that is configured to run """ def __init__(self, opts): self.opts = opts self.process_manager = salt.utils.process.ProcessManager(name='NetAPIProcessManager') self.netapi...
class NetapiClient: ''' Start each netapi module that is configured to run ''' def __init__(self, opts): pass def run(self): ''' Load and start all available api modules ''' pass def _handle_signals(self, signum, sigframe): pass
4
2
11
1
8
2
3
0.42
0
2
2
0
3
3
3
3
41
7
24
9
20
10
20
9
16
6
0
2
8
19,453
saltstack/salt
saltstack_salt/salt/client/netapi.py
salt.client.netapi.RunNetapi
import salt.utils.process import salt.loader class RunNetapi(salt.utils.process.SignalHandlingProcess): """ Runner class that's pickable for netapi modules """ def __init__(self, opts, fname, **kwargs): super().__init__(**kwargs) self.opts = opts self.fname = fname def run...
class RunNetapi(salt.utils.process.SignalHandlingProcess): ''' Runner class that's pickable for netapi modules ''' def __init__(self, opts, fname, **kwargs): pass def run(self): pass
3
1
4
0
4
0
1
0.33
1
1
0
0
2
2
2
12
14
2
9
7
6
3
9
7
6
1
3
0
2
19,454
saltstack/salt
saltstack_salt/salt/client/ssh/__init__.py
salt.client.ssh.SSH
import salt.config import salt.utils.atomicfile import multiprocessing import salt.state import os import salt.serializers.yaml import salt.utils.args import queue import salt.roster import salt.output from salt.utils.process import Process import salt.minion from salt._logging.mixins import MultiprocessingStateMixin f...
class SSH(MultiprocessingStateMixin): ''' Create an SSH execution system ''' def __init__(self, opts): pass def __setstate__(self, state): pass def __getstate__(self): pass @property def parse_tgt(self): ''' Method to determine the hostname and...
18
14
45
1
39
5
8
0.13
1
22
8
0
16
11
16
18
741
37
630
104
612
82
383
98
366
32
1
7
128
19,455
saltstack/salt
saltstack_salt/salt/client/ssh/__init__.py
salt.client.ssh.Single
import salt.output import salt.minion import salt.loader import salt.exceptions from salt._logging import LOG_LEVELS import salt.defaults.exitcodes import salt.utils.verify import base64 import salt.config import salt.utils.url import salt.client.ssh.wrapper import salt.utils.thin import salt.client.ssh.shell import sa...
null
19
17
49
4
38
8
7
0.21
0
12
2
0
18
29
18
18
912
89
680
139
636
146
389
110
370
35
0
4
129
19,456
saltstack/salt
saltstack_salt/salt/client/ssh/client.py
salt.client.ssh.client.SSHClient
import salt.syspaths import salt.config from salt.exceptions import SaltClientError import copy import salt.client.ssh import salt.utils.args import os import random class SSHClient: """ Create a client object for executing routines via the salt-ssh backend .. versionadded:: 2015.5.0 """ def __in...
class SSHClient: ''' Create a client object for executing routines via the salt-ssh backend .. versionadded:: 2015.5.0 ''' def __init__(self, c_path=os.path.join(salt.syspaths.CONFIG_DIR, 'master'), mopts=None, disable_custom_roster=False): pass def sanitize_kwargs(self, kwargs): ...
12
10
23
2
15
6
3
0.42
0
7
2
0
11
1
11
11
267
30
167
60
125
70
80
30
68
10
0
4
30
19,457
saltstack/salt
saltstack_salt/salt/client/ssh/shell.py
salt.client.ssh.shell.Shell
import salt.utils.path import salt.defaults.exitcodes import salt.utils.json import re import os import shlex import time import salt.utils.vt import subprocess import salt.utils.nb_popen class Shell: """ Create a shell connection object to encapsulate ssh executions """ def __init__(self, opts, host,...
null
17
15
27
1
22
4
6
0.2
0
5
2
0
15
14
15
15
423
32
328
87
294
64
235
69
219
22
0
4
84
19,458
saltstack/salt
saltstack_salt/salt/client/ssh/ssh_py_shim.py
salt.client.ssh.ssh_py_shim.OptionsContainer
class OptionsContainer: """ An empty class for holding instance attribute values. """
class OptionsContainer: ''' An empty class for holding instance attribute values. ''' pass
1
1
0
0
0
0
0
3
0
0
0
0
0
0
0
0
4
0
1
1
0
3
1
1
0
0
0
0
0
19,459
saltstack/salt
saltstack_salt/salt/client/ssh/state.py
salt.client.ssh.state.SSHHighState
import salt.roster import salt.client.ssh.shell import salt.utils.stringutils import salt.utils.path import salt.state import salt.loader import salt.utils.files import salt.utils.json import salt.utils.verify import salt.utils.thin import salt.client.ssh import salt.minion import salt.utils.url class SSHHighState(sal...
class SSHHighState(salt.state.BaseHighState): ''' Used to compile the highstate on the master ''' def __init__(self, opts, pillar_override=None, wrapper=None, fsclient=None, context=None, initial_pillar=None): pass def push_active(self): pass def load_dynamic(self, matches): ...
8
3
6
0
5
1
1
0.25
1
2
2
0
7
5
7
39
54
9
36
22
20
9
22
14
14
2
1
1
8
19,460
saltstack/salt
saltstack_salt/salt/client/ssh/state.py
salt.client.ssh.state.SSHState
import salt.utils.json import salt.loader import salt.client.ssh.shell import salt.utils.thin import salt.state import salt.utils.stringutils import salt.utils.path import salt.roster import salt.client.ssh import salt.utils.files import salt.minion import salt.utils.url import salt.utils.verify class SSHState(salt.st...
class SSHState(salt.state.State): ''' Create a State object which wraps the SSH functions for state operations ''' def __init__(self, opts, pillar_override=None, wrapper=None, context=None, initial_pillar=None): pass def load_modules(self, data=None, proxy=None): ''' Load ...
6
5
11
0
7
4
1
0.57
1
1
0
0
5
8
5
55
63
5
37
24
24
21
28
17
22
1
1
0
5
19,461
saltstack/salt
saltstack_salt/salt/client/ssh/wrapper/__init__.py
salt.client.ssh.wrapper.FunctionWrapper
import salt.client.ssh import salt.loader import salt.utils.data import salt.utils.json from collections.abc import MutableMapping class FunctionWrapper(MutableMapping): """ Create an object that acts like the salt function dict and makes function calls remotely via the SSH shell system """ def __...
class FunctionWrapper(MutableMapping): ''' Create an object that acts like the salt function dict and makes function calls remotely via the SSH shell system ''' def __init__(self, opts, id_, host, wfuncs=None, mods=None, fsclient=None, aliases=None, minion_opts=None, **kwargs): pass d...
10
9
26
1
19
6
3
0.42
0
4
1
0
5
8
5
5
141
13
91
33
72
38
52
21
45
5
0
1
18
19,462
saltstack/salt
saltstack_salt/salt/client/ssh/wrapper/__init__.py
salt.client.ssh.wrapper.SSHCommandExecutionError
from salt.exceptions import CommandExecutionError, SaltException class SSHCommandExecutionError(SSHException, CommandExecutionError): """ Thrown whenever a non-zero exit code is returned. This was introduced to make the salt-ssh FunctionWrapper behave more like the usual one, in particular to force tem...
class SSHCommandExecutionError(SSHException, CommandExecutionError): ''' Thrown whenever a non-zero exit code is returned. This was introduced to make the salt-ssh FunctionWrapper behave more like the usual one, in particular to force template rendering to stop when a function call results in an ex...
3
1
5
0
5
1
2
0.64
2
2
0
0
2
0
2
18
21
3
11
5
8
7
11
5
8
2
5
1
4
19,463
saltstack/salt
saltstack_salt/salt/client/ssh/wrapper/__init__.py
salt.client.ssh.wrapper.SSHException
from salt.defaults import NOT_SET from salt.exceptions import CommandExecutionError, SaltException class SSHException(SaltException): """ Indicates general command failure via salt-ssh. """ _error = '' def __init__(self, stdout, stderr, retcode, result=NOT_SET, parsed=None, *args, **kwargs): ...
class SSHException(SaltException): ''' Indicates general command failure via salt-ssh. ''' def __init__(self, stdout, stderr, retcode, result=NOT_SET, parsed=None, *args, **kwargs): pass def _filter_stderr(self, stderr): pass def to_ret(self): pass
4
1
14
0
12
1
3
0.18
1
1
0
4
3
5
3
15
50
4
39
17
33
7
32
15
28
4
4
2
9
19,464
saltstack/salt
saltstack_salt/salt/client/ssh/wrapper/__init__.py
salt.client.ssh.wrapper.SSHMalformedReturnError
class SSHMalformedReturnError(SSHException): """ Thrown when a decoded return dict is not formed as {"local": {"return": ...}} """ _error = 'Return dict was malformed'
class SSHMalformedReturnError(SSHException): ''' Thrown when a decoded return dict is not formed as {"local": {"return": ...}} ''' pass
1
1
0
0
0
0
0
2
1
0
0
0
0
0
0
15
7
1
2
2
1
4
2
2
1
0
5
0
0
19,465
saltstack/salt
saltstack_salt/salt/client/ssh/wrapper/__init__.py
salt.client.ssh.wrapper.SSHPermissionDeniedError
class SSHPermissionDeniedError(SSHException): """ Thrown when "Permission denied" is found in stderr """ _error = 'Permission denied'
class SSHPermissionDeniedError(SSHException): ''' Thrown when "Permission denied" is found in stderr ''' pass
1
1
0
0
0
0
0
1.5
1
0
0
0
0
0
0
15
6
1
2
2
1
3
2
2
1
0
5
0
0
19,466
saltstack/salt
saltstack_salt/salt/client/ssh/wrapper/__init__.py
salt.client.ssh.wrapper.SSHReturnDecodeError
class SSHReturnDecodeError(SSHException): """ Thrown when JSON-decoding stdout fails and the retcode is 0 otherwise """ _error = 'Failed to return clean data'
class SSHReturnDecodeError(SSHException): ''' Thrown when JSON-decoding stdout fails and the retcode is 0 otherwise ''' pass
1
1
0
0
0
0
0
1.5
1
0
0
0
0
0
0
15
6
1
2
2
1
3
2
2
1
0
5
0
0
19,467
saltstack/salt
saltstack_salt/salt/client/ssh/wrapper/cp.py
salt.client.ssh.wrapper.cp.SSHCpClient
import salt.utils.files import salt.utils.templates from pathlib import Path import os import salt.utils.stringutils import urllib.parse import salt.client.ssh import shlex from salt.exceptions import CommandExecutionError import salt.fileclient class SSHCpClient(salt.fileclient.FSClient): """ A FileClient tha...
class SSHCpClient(salt.fileclient.FSClient): ''' A FileClient that replicates between SSH master-minion and remote minion caches ''' def __init__(self, opts, shell, tgt): pass def _local_path_exists(self, path): pass def _remote_path_exists(self, path): pass def ...
19
6
19
0
15
4
4
0.28
1
5
1
0
17
3
17
62
352
24
260
77
217
72
177
51
158
13
3
4
71
19,468
saltstack/salt
saltstack_salt/salt/cloud/__init__.py
salt.cloud.Cloud
import salt.utils.context import salt.utils.cloud import salt.utils.args import salt.syspaths import salt.loader import salt.config import salt.client import time import os import multiprocessing import logging from salt.exceptions import SaltCloudConfigError, SaltCloudException, SaltCloudNotFound, SaltCloudSystemExit ...
class Cloud: ''' An object for the creation of new VMs ''' def __init__(self, opts): pass def get_configured_providers(self): ''' Return the configured providers ''' pass def lookup_providers(self, lookup): ''' Get a dict describing the...
25
22
47
5
36
6
9
0.17
0
12
2
1
22
3
23
23
1,118
136
840
178
813
147
580
166
556
31
0
5
207
19,469
saltstack/salt
saltstack_salt/salt/cloud/__init__.py
salt.cloud.CloudClient
import salt.utils.args import salt.utils.dictupdate from salt.exceptions import SaltCloudConfigError, SaltCloudException, SaltCloudNotFound, SaltCloudSystemExit import salt.syspaths import salt.utils.data import salt.utils.yaml import salt.loader import salt.utils.crypt import salt.utils.verify import salt.config impor...
class CloudClient: ''' The client class to wrap cloud interactions ''' def __init__(self, path=None, opts=None, config_dir=None, pillars=None): pass def _opts_defaults(self, **kwargs): ''' Set the opts dict to defaults and allow for opts to be overridden in the...
17
16
19
1
11
7
3
0.63
0
2
1
0
16
1
16
16
321
39
173
63
148
109
147
55
130
8
0
4
44
19,470
saltstack/salt
saltstack_salt/salt/cloud/__init__.py
salt.cloud.Map
import salt.utils.data import salt.utils.crypt import salt.utils.context import salt.utils.cloud import salt.utils.args import salt.syspaths import salt.loader import salt.config import salt.client from itertools import groupby from salt.template import compile_template import os import logging from salt.exceptions imp...
class Map(Cloud): ''' Create a VM stateful map execution object ''' def __init__(self, opts): pass def interpolated_map(self, query='list_nodes', cached=False): pass def delete_map(self, query=None): pass def get_vmnames_by_action(self, action): pass ...
11
4
65
6
52
7
13
0.15
1
14
3
0
9
3
9
32
654
64
515
107
504
76
370
102
359
37
1
5
128
19,471
saltstack/salt
saltstack_salt/salt/cloud/cli.py
salt.cloud.cli.SaltCloud
import salt.syspaths as syspaths from salt.exceptions import SaltCloudException, SaltCloudSystemExit from salt.utils.verify import check_user, verify_env import os import salt.utils.cloud import salt.utils.parsers import logging import salt.defaults.exitcodes import salt.output import salt.cloud import sys import salt....
class SaltCloud(salt.utils.parsers.SaltCloudParser): def run(self): ''' Execute the salt-cloud command line ''' pass def print_confirm(self, msg): pass def handle_exception(self, msg, exc): pass
4
1
121
13
102
11
28
0.1
1
6
3
0
3
0
3
116
367
42
306
34
302
32
236
32
232
76
5
5
83
19,472
saltstack/salt
saltstack_salt/salt/cloud/exceptions.py
salt.cloud.exceptions.SaltCloudException
from salt.exceptions import SaltException class SaltCloudException(SaltException): """ Generic Salt Cloud Exception """
class SaltCloudException(SaltException): ''' Generic Salt Cloud Exception ''' pass
1
1
0
0
0
0
0
3
1
0
0
6
0
0
0
12
4
0
1
1
0
3
1
1
0
0
4
0
0
19,473
saltstack/salt
saltstack_salt/salt/cloud/exceptions.py
salt.cloud.exceptions.SaltCloudSystemExit
import salt.defaults.exitcodes class SaltCloudSystemExit(SaltCloudException): """ This exception is raised when the execution should be stopped. """ def __init__(self, message, exit_code=salt.defaults.exitcodes.EX_GENERIC): SaltCloudException.__init__(self, message) self.message = '{} ...
class SaltCloudSystemExit(SaltCloudException): ''' This exception is raised when the execution should be stopped. ''' def __init__(self, message, exit_code=salt.defaults.exitcodes.EX_GENERIC): pass
2
1
7
0
7
0
1
0.38
1
0
0
0
1
2
1
13
12
1
8
4
6
3
5
4
3
1
5
0
1
19,474
saltstack/salt
saltstack_salt/salt/config/schemas/common.py
salt.config.schemas.common.DefaultIncludeConfig
from salt.utils.schema import ArrayItem, OneOfItem, Schema, StringItem class DefaultIncludeConfig(StringItem): """ Per default, the {0}, will automatically include all config files from '{1}/*.conf' ('{1}' is a sub-directory in the same directory as the main {0} config file). """ __target__ = N...
class DefaultIncludeConfig(StringItem): ''' Per default, the {0}, will automatically include all config files from '{1}/*.conf' ('{1}' is a sub-directory in the same directory as the main {0} config file). ''' def __init__(self, default=None, pattern=None, **kwargs): pass def __va...
4
1
4
0
4
0
1
0.31
1
1
0
2
3
0
3
29
26
5
16
8
12
5
14
8
10
1
6
0
3
19,475
saltstack/salt
saltstack_salt/salt/config/schemas/common.py
salt.config.schemas.common.IncludeConfig
from salt.utils.schema import ArrayItem, OneOfItem, Schema, StringItem class IncludeConfig(Schema): title = 'Include Configuration File(s)' description = 'Include one or more specific configuration files' string_or_array = OneOfItem(items=(StringItem(), ArrayItem(items=StringItem())))(flatten=True)
class IncludeConfig(Schema): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
19
7
1
6
4
5
0
4
4
3
0
4
0
0
19,476
saltstack/salt
saltstack_salt/salt/config/schemas/common.py
salt.config.schemas.common.MasterDefaultInclude
class MasterDefaultInclude(DefaultIncludeConfig): __target__ = 'master' __confd_directory = 'master.d'
class MasterDefaultInclude(DefaultIncludeConfig): pass
1
0
0
0
0
0
0
0.33
1
0
0
0
0
0
0
29
3
0
3
3
2
1
3
3
2
0
7
0
0
19,477
saltstack/salt
saltstack_salt/salt/config/schemas/common.py
salt.config.schemas.common.MinionDefaultInclude
class MinionDefaultInclude(DefaultIncludeConfig): __target__ = 'minion' __confd_directory__ = 'minion.d'
class MinionDefaultInclude(DefaultIncludeConfig): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
29
3
0
3
3
2
0
3
3
2
0
7
0
0
19,478
saltstack/salt
saltstack_salt/salt/config/schemas/esxcluster.py
salt.config.schemas.esxcluster.AdmissionControlPolicyItem
from salt.utils.schema import AnyOfItem, ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, DictItem, IntegerItem, Schema, StringItem class AdmissionControlPolicyItem(ComplexSchemaItem): """ Schema item of the HA admission control policy """ title = 'Admission Control Policy' cpu_failove...
class AdmissionControlPolicyItem(ComplexSchemaItem): ''' Schema item of the HA admission control policy ''' pass
1
1
0
0
0
0
0
0.38
1
0
0
0
0
0
0
30
13
2
8
4
7
3
4
4
3
0
6
0
0
19,479
saltstack/salt
saltstack_salt/salt/config/schemas/esxcluster.py
salt.config.schemas.esxcluster.DRSConfigItem
from salt.utils.schema import AnyOfItem, ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, DictItem, IntegerItem, Schema, StringItem class DRSConfigItem(ComplexSchemaItem): """ Schema item of the ESX cluster DRS configuration """ title = 'DRS Configuration' description = 'ESX cluster DR...
class DRSConfigItem(ComplexSchemaItem): ''' Schema item of the ESX cluster DRS configuration ''' pass
1
1
0
0
0
0
0
0.15
1
0
0
0
0
0
0
30
25
2
20
6
19
3
6
6
5
0
6
0
0
19,480
saltstack/salt
saltstack_salt/salt/config/schemas/esxcluster.py
salt.config.schemas.esxcluster.DefaultVmSettingsItem
from salt.utils.schema import AnyOfItem, ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, DictItem, IntegerItem, Schema, StringItem class DefaultVmSettingsItem(ComplexSchemaItem): """ Schema item of the HA default vm settings """ title = 'Default VM Settings' isolation_response = Strin...
class DefaultVmSettingsItem(ComplexSchemaItem): ''' Schema item of the HA default vm settings ''' pass
1
1
0
0
0
0
0
0.3
1
0
0
0
0
0
0
30
15
2
10
4
9
3
4
4
3
0
6
0
0
19,481
saltstack/salt
saltstack_salt/salt/config/schemas/esxcluster.py
salt.config.schemas.esxcluster.ESXClusterConfigSchema
from salt.utils.schema import AnyOfItem, ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, DictItem, IntegerItem, Schema, StringItem class ESXClusterConfigSchema(DefinitionsSchema): """ Schema of the ESX cluster config """ title = 'ESX Cluster Configuration Schema' description = 'ESX cl...
class ESXClusterConfigSchema(DefinitionsSchema): ''' Schema of the ESX cluster config ''' pass
1
1
0
0
0
0
0
0.43
1
0
0
0
0
0
0
20
12
2
7
7
6
3
7
7
6
0
5
0
0
19,482
saltstack/salt
saltstack_salt/salt/config/schemas/esxcluster.py
salt.config.schemas.esxcluster.ESXClusterEntitySchema
from salt.utils.schema import AnyOfItem, ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, DictItem, IntegerItem, Schema, StringItem class ESXClusterEntitySchema(Schema): """Schema of the ESX cluster entity""" title = 'ESX Cluster Entity Schema' description = 'ESX cluster entity schema' typ...
class ESXClusterEntitySchema(Schema): '''Schema of the ESX cluster entity''' pass
1
1
0
0
0
0
0
0.05
1
0
0
0
0
0
0
19
26
4
21
6
20
1
6
6
5
0
4
0
0
19,483
saltstack/salt
saltstack_salt/salt/config/schemas/esxcluster.py
salt.config.schemas.esxcluster.EsxclusterProxySchema
from salt.utils.schema import AnyOfItem, ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, DictItem, IntegerItem, Schema, StringItem class EsxclusterProxySchema(Schema): """ Schema of the esxcluster proxy input """ title = 'Esxcluster Proxy Schema' description = 'Esxcluster proxy schema...
class EsxclusterProxySchema(Schema): ''' Schema of the esxcluster proxy input ''' pass
1
1
0
0
0
0
0
0.27
1
0
0
0
0
0
0
19
20
1
15
15
14
4
15
15
14
0
4
0
0
19,484
saltstack/salt
saltstack_salt/salt/config/schemas/esxcluster.py
salt.config.schemas.esxcluster.HAConfigItem
from salt.utils.schema import AnyOfItem, ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, DictItem, IntegerItem, Schema, StringItem class HAConfigItem(ComplexSchemaItem): """ Schema item of ESX cluster high availability """ title = 'HA Configuration' description = 'ESX cluster HA confi...
class HAConfigItem(ComplexSchemaItem): ''' Schema item of ESX cluster high availability ''' pass
1
1
0
0
0
0
0
0.14
1
0
0
0
0
0
0
30
26
2
21
11
20
3
11
11
10
0
6
0
0
19,485
saltstack/salt
saltstack_salt/salt/config/schemas/esxcluster.py
salt.config.schemas.esxcluster.LicenseSchema
from salt.utils.schema import AnyOfItem, ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, DictItem, IntegerItem, Schema, StringItem class LicenseSchema(Schema): """ Schema item of the ESX cluster vSAN configuration """ title = 'Licenses schema' description = 'License configuration sche...
class LicenseSchema(Schema): ''' Schema item of the ESX cluster vSAN configuration ''' pass
1
1
0
0
0
0
0
0.23
1
0
0
0
0
0
0
19
18
2
13
4
12
3
4
4
3
0
4
0
0
19,486
saltstack/salt
saltstack_salt/salt/config/schemas/esxcluster.py
salt.config.schemas.esxcluster.OptionValueItem
from salt.utils.schema import AnyOfItem, ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, DictItem, IntegerItem, Schema, StringItem class OptionValueItem(ComplexSchemaItem): """Sechma item of the OptionValue""" title = 'OptionValue' key = StringItem(title='Key', required=True) value = AnyO...
class OptionValueItem(ComplexSchemaItem): '''Sechma item of the OptionValue''' pass
1
1
0
0
0
0
0
0.25
1
0
0
0
0
0
0
30
6
1
4
4
3
1
4
4
3
0
6
0
0
19,487
saltstack/salt
saltstack_salt/salt/config/schemas/esxcluster.py
salt.config.schemas.esxcluster.vSANClusterConfigItem
from salt.utils.schema import AnyOfItem, ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, DictItem, IntegerItem, Schema, StringItem class vSANClusterConfigItem(ComplexSchemaItem): """ Schema item of the ESX cluster vSAN configuration """ title = 'vSAN Configuration' description = 'ESX ...
class vSANClusterConfigItem(ComplexSchemaItem): ''' Schema item of the ESX cluster vSAN configuration ''' pass
1
1
0
0
0
0
0
0.16
1
0
0
0
0
0
0
30
24
2
19
7
18
3
7
7
6
0
6
0
0
19,488
saltstack/salt
saltstack_salt/salt/config/schemas/esxdatacenter.py
salt.config.schemas.esxdatacenter.EsxdatacenterProxySchema
from salt.utils.schema import ArrayItem, IntegerItem, Schema, StringItem class EsxdatacenterProxySchema(Schema): """ Schema of the esxdatacenter proxy input """ title = 'Esxdatacenter Proxy Schema' description = 'Esxdatacenter proxy schema' additional_properties = False proxytype = StringIt...
class EsxdatacenterProxySchema(Schema): ''' Schema of the esxdatacenter proxy input ''' pass
1
1
0
0
0
0
0
0.29
1
0
0
0
0
0
0
19
19
1
14
14
13
4
14
14
13
0
4
0
0
19,489
saltstack/salt
saltstack_salt/salt/config/schemas/esxi.py
salt.config.schemas.esxi.DiskGroupDiskIdItem
from salt.utils.schema import ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, IntegerItem, OneOfItem, Schema, StringItem class DiskGroupDiskIdItem(ComplexSchemaItem): """ Schema item of a ESXi host disk group containg disk ids """ title = 'Diskgroup Disk Id Item' description = 'ESXi h...
class DiskGroupDiskIdItem(ComplexSchemaItem): ''' Schema item of a ESXi host disk group containg disk ids ''' pass
1
1
0
0
0
0
0
0.21
1
0
0
0
0
0
0
30
20
3
14
5
13
3
5
5
4
0
6
0
0
19,490
saltstack/salt
saltstack_salt/salt/config/schemas/esxi.py
salt.config.schemas.esxi.DiskGroupDiskScsiAddressItem
from salt.utils.schema import ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, IntegerItem, OneOfItem, Schema, StringItem class DiskGroupDiskScsiAddressItem(ComplexSchemaItem): """ Schema item of a ESXi host disk group containing disk SCSI addresses """ title = 'Diskgroup Disk Scsi Address...
class DiskGroupDiskScsiAddressItem(ComplexSchemaItem): ''' Schema item of a ESXi host disk group containing disk SCSI addresses ''' pass
1
1
0
0
0
0
0
0.21
1
0
0
0
0
0
0
30
20
3
14
5
13
3
5
5
4
0
6
0
0
19,491
saltstack/salt
saltstack_salt/salt/config/schemas/esxi.py
salt.config.schemas.esxi.DiskGroupsDiskIdSchema
from salt.utils.schema import ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, IntegerItem, OneOfItem, Schema, StringItem class DiskGroupsDiskIdSchema(DefinitionsSchema): """ Schema of ESXi host diskgroups containing disk ids """ title = 'Diskgroups Disk Id Schema' description = 'ESXi ...
class DiskGroupsDiskIdSchema(DefinitionsSchema): ''' Schema of ESXi host diskgroups containing disk ids ''' pass
1
1
0
0
0
0
0
0.3
1
0
0
0
0
0
0
20
14
1
10
4
9
3
4
4
3
0
5
0
0
19,492
saltstack/salt
saltstack_salt/salt/config/schemas/esxi.py
salt.config.schemas.esxi.DiskGroupsDiskScsiAddressSchema
from salt.utils.schema import ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, IntegerItem, OneOfItem, Schema, StringItem class DiskGroupsDiskScsiAddressSchema(DefinitionsSchema): """ Schema of ESXi host diskgroups containing disk SCSI addresses """ title = 'Diskgroups Disk Scsi Address Sc...
class DiskGroupsDiskScsiAddressSchema(DefinitionsSchema): ''' Schema of ESXi host diskgroups containing disk SCSI addresses ''' pass
1
1
0
0
0
0
0
0.27
1
0
0
0
0
0
0
20
15
1
11
5
10
3
5
5
4
0
5
0
0
19,493
saltstack/salt
saltstack_salt/salt/config/schemas/esxi.py
salt.config.schemas.esxi.EsxiProxySchema
from salt.utils.schema import ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, IntegerItem, OneOfItem, Schema, StringItem class EsxiProxySchema(Schema): """ Schema of the esxi proxy input """ title = 'Esxi Proxy Schema' description = 'Esxi proxy schema' additional_properties = Fals...
class EsxiProxySchema(Schema): ''' Schema of the esxi proxy input ''' pass
1
1
0
0
0
0
0
0.4
1
0
0
0
0
0
0
19
20
1
15
15
14
6
15
15
14
0
4
0
0
19,494
saltstack/salt
saltstack_salt/salt/config/schemas/esxi.py
salt.config.schemas.esxi.HostCacheSchema
from salt.utils.schema import ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, IntegerItem, OneOfItem, Schema, StringItem class HostCacheSchema(DefinitionsSchema): """ Schema of ESXi host cache """ title = 'Host Cache Schema' description = 'Schema of the ESXi host cache' enabled = ...
class HostCacheSchema(DefinitionsSchema): ''' Schema of ESXi host cache ''' pass
1
1
0
0
0
0
0
0.27
1
0
0
0
0
0
0
20
15
1
11
7
10
3
7
7
6
0
5
0
0
19,495
saltstack/salt
saltstack_salt/salt/config/schemas/esxi.py
salt.config.schemas.esxi.SimpleHostCacheSchema
from salt.utils.schema import ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, IntegerItem, OneOfItem, Schema, StringItem class SimpleHostCacheSchema(Schema): """ Simplified Schema of ESXi host cache """ title = 'Simple Host Cache Schema' description = 'Simplified schema of the ESXi ho...
class SimpleHostCacheSchema(Schema): ''' Simplified Schema of ESXi host cache ''' pass
1
1
0
0
0
0
0
0.5
1
0
0
0
0
0
0
19
10
1
6
6
5
3
6
6
5
0
4
0
0
19,496
saltstack/salt
saltstack_salt/salt/config/schemas/esxi.py
salt.config.schemas.esxi.VMwareScsiAddressItem
from salt.utils.schema import ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, IntegerItem, OneOfItem, Schema, StringItem class VMwareScsiAddressItem(StringItem): pattern = 'vmhba\\d+:C\\d+:T\\d+:L\\d+'
class VMwareScsiAddressItem(StringItem): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
26
2
0
2
2
1
0
2
2
1
0
6
0
0
19,497
saltstack/salt
saltstack_salt/salt/config/schemas/esxi.py
salt.config.schemas.esxi.VmfsDatastoreDiskIdItem
from salt.utils.schema import ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, IntegerItem, OneOfItem, Schema, StringItem class VmfsDatastoreDiskIdItem(ComplexSchemaItem): """ Schema item of a VMFS datastore referencing a backing disk id """ title = 'VMFS Datastore Disk Id Item' descri...
class VmfsDatastoreDiskIdItem(ComplexSchemaItem): ''' Schema item of a VMFS datastore referencing a backing disk id ''' pass
1
1
0
0
0
0
0
0.18
1
0
0
0
0
0
0
30
21
1
17
6
16
3
6
6
5
0
6
0
0
19,498
saltstack/salt
saltstack_salt/salt/config/schemas/esxi.py
salt.config.schemas.esxi.VmfsDatastoreDiskScsiAddressItem
from salt.utils.schema import ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, IntegerItem, OneOfItem, Schema, StringItem class VmfsDatastoreDiskScsiAddressItem(ComplexSchemaItem): """ Schema item of a VMFS datastore referencing a backing disk SCSI address """ title = 'VMFS Datastore Disk ...
class VmfsDatastoreDiskScsiAddressItem(ComplexSchemaItem): ''' Schema item of a VMFS datastore referencing a backing disk SCSI address ''' pass
1
1
0
0
0
0
0
0.19
1
0
0
0
0
0
0
30
20
1
16
6
15
3
6
6
5
0
6
0
0
19,499
saltstack/salt
saltstack_salt/salt/config/schemas/esxi.py
salt.config.schemas.esxi.VmfsDatastoreSchema
from salt.utils.schema import ArrayItem, BooleanItem, ComplexSchemaItem, DefinitionsSchema, IntegerItem, OneOfItem, Schema, StringItem class VmfsDatastoreSchema(DefinitionsSchema): """ Schema of a VMFS datastore """ title = 'VMFS Datastore Schema' description = 'Schema of a VMFS datastore' data...
class VmfsDatastoreSchema(DefinitionsSchema): ''' Schema of a VMFS datastore ''' pass
1
1
0
0
0
0
0
0.43
1
0
0
0
0
0
0
20
11
1
7
4
6
3
4
4
3
0
5
0
0