_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c180300
// Run will launch the queue watchers and task workers in the background.
c180301
// NewBodyLimiter returns a new body limiter for the specified request.
c180302
// LimitBody will limit reading from the body of the supplied request to the // specified amount of bytes. Earlier calls to LimitBody will be overwritten // which essentially allows callers to increase the limit from a default limit.
c180303
// C is a short-hand function to construct a callback. It will also add tracing // code around the execution of the callback.
c180304
// Only will match if the operation is present in the provided list.
c180305
// BasicAuthorizer authorizes requests based on a simple credentials list.
c180306
// ModelValidator performs a validation of the model using the Validate method.
c180307
// TimestampValidator will set timestamp fields on create and update operations. // The fields are inferred from the model using the "fire-created-timestamp" and // "fire-updated-timestamp" flags. Missing created timestamps are retroactively // set using the timestamp encoded in the model id.
c180308
// RelationshipValidator makes sure all relationships of a model are correct and // in place. It does so by combining a DependentResourcesValidator and a // VerifyReferencesValidator based on the specified model and catalog.
c180309
// Inspect executes the inspection into all loaded objects, by checking all // rules and exceptions loaded.
c180310
// NewRule creates a new rule.
c180311
// AddUnmatch adds a refular expression into the unmatch list.
c180312
// Run executes the rule into a content to find all lines that matches it.
c180313
// NewSecret creates a new secret.
c180314
// NewObject creates a new object.
c180315
// SetMetadata sets a metadata value for the object.
c180316
// SetMetadata gets a metadata value from the object.
c180317
// GetMetadataAll gets a map that contains all metadata of the object.
c180318
// SetRule sets the regular expresion that should match the name of the rule.
c180319
// SetObject sets the regular expresion that should match the name of the // object.
c180320
// SetNline sets the number of line where secret should be found.
c180321
// SetContent sets the regular expresion that should match the content of the // object.
c180322
// Run executes the exception into a secret to determine if it's an exception // or not.
c180323
// AddRule adds a new rule into the context.
c180324
// LoadRulesFromFile loads rules from a YAML file.
c180325
// LoadRulesFromFile loads rules from all YAML files inside a directory.
c180326
// DefaultRulesPath return the default PATH that contains rules.
c180327
// EnableRule enables specific rule.
c180328
// DisableRule disables specific rule.
c180329
// EnableRule enables rules that match with a regular expression.
c180330
// DisableRule disables rules that match with a regular expression.
c180331
// LoadObjects loads objects form an specific source. It can load objects from // different source types, that are implemented following the SourceType // interface.
c180332
// GroupObjectsByMetadata returns a map with all objects grouped by specific // metadata key.
c180333
// GroupObjectsByPrimaryKeyHash returns a map with all objects grouped by // the primary key hash, that is calculated from all metadata keys with the // primary attribute. // All returned objects could have the same content, even if are not the same.
c180334
// AddException adds a new exception into the context.
c180335
// LoadExceptionsFromFile loads exceptions from a YAML file.
c180336
// printPlainResults prints plain-text output for results
c180337
// printJsonResults prints json-formatted output for results
c180338
// NewXor64Source returns a pointer to a new Xor64Source seeded with the given // value.
c180339
// xor64 generates the next value of a pseudo-random sequence given a current // state x.
c180340
// next advances the generators internal state to the next value and returns // this value as an uint64.
c180341
// Seed uses the given value to initialize the generator. If this value is 0, a // pre-defined seed is used instead, since the xorshift algorithm requires at // least one bit of the internal state to be set.
c180342
// Create a new FrameSet from a given frame range string // Returns an error if the frame range could not be parsed.
c180343
// Process a rangePattern match group
c180344
// Index returns the index position of the frame value // within the frame set. // If the given frame does not exist, then return -1
c180345
// Frame returns the frame number value for a given index into // the frame set. // If the index is outside the bounds of the frame set range, // then an error is returned.
c180346
// HasFrame returns true if the frameset contains the given // frame value.
c180347
// FrameRangePadded returns the range string that was used // to initialize the FrameSet, with each number padded out // with zeros to a given width
c180348
// Normalize returns a new sorted and compacted FrameSet
c180349
// FramesToFrameRange takes a slice of frame numbers and // compresses them into a frame range string. // // If sorted == true, pre-sort the frames instead of respecting // their current order in the range. // // If zfill > 1, then pad out each number with "0" to the given // total width.
c180350
// frameRangeMatches breaks down the string frame range // into groups of range matches, for further processing.
c180351
// Expands a start, end, and stepping value // into the full range of int values.
c180352
// Create a new workManager, with input and output channels, // with a given list of options
c180353
// processSources pulls from input channels, and processes // them into the output channel until there is no more work
c180354
// Returns true if the input channels are nil
c180355
// CloseInputs closes the input channels indicating // that no more paths will be loaded.
c180356
// loadStandard takes paths and loads them into the // dir input channel for processing
c180357
// Parallel walk the root paths and populate the path // channel for the worker routines to consume.
c180358
// Take a list of paths and reduce them to cleaned // and unique paths. Return two slices, separated by // directory paths, and sequence patterns
c180359
// PadFrameRange takes a frame range string and returns a // new range with each number padded out with zeros to a given width
c180360
// Left pads a string to a given with, using "0". // If the string begins with a negative "-" character, then // padding is inserted between the "-" and the remaining characters.
c180361
// Left pads an int to a given with, using "0". // If the string begins with a negative "-" character, then // padding is inserted between the "-" and the remaining characters.
c180362
// NewInclusiveRange creates a new InclusiveRange instance
c180363
// String returns a formatted string representation // of the integer range
c180364
// End returns the end of the range. This value may // be different from the end value given when the // range was first initialized, since it takes into // account the stepping value. The end value may be // shifted to the closest valid value within the // stepped range.
c180365
// Len returns the number of values in the range
c180366
// Min returns the smallest value in the range
c180367
// Max returns the highest value in the range
c180368
// Contains returns true if the given value is a valid // value within the value range.
c180369
// closestInRange finds the closest valid value within the range, // to a given value. Values outside the range are clipped to either // the range min or max.
c180370
// Index returns the 0-based index of the first occurrence // given value, within the range. // If the value does not exist in the range, a // value of -1 will be returned
c180371
// String returns the formatted representation of // the combination of all internal InclusiveRange instances
c180372
// Len returns the total number of values across all ranges
c180373
// Start returns the first value of the first range
c180374
// End returns the last value of the last range
c180375
// Min returns the smallest value in the total range
c180376
// Max returns the highest value in the total range
c180377
// NumRanges returns the number of discreet sets // of ranges that were appended.
c180378
// rangeAt returns the underlying InclusiveRange instance // that was appended, at a given index
c180379
// Append creates and adds another range of values // to the total range list.
c180380
// AppendUnique creates and adds another range of values // to the total range list. Only unique values from the // given range are appended to the total range.
c180381
// Contains returns true if a given value is a valid // value within the total range.
c180382
// Index returns the 0-based index of the first occurrence // of the given value, within the range. // If the value does not exist in the range, a // value of -1 will be returned.
c180383
// FrameRange returns the string frame range component, // parsed from the sequence. If no frame range was parsed, // then this method will return an empty string.
c180384
// FrameRangePadded returns the string frame range component, // parsed from the sequence, and padded out by the pad characters. // If no frame range was parsed, then this method will return an empty string.
c180385
// Index returns the path to the file at the given index // in the sequence. If a frame range was not parsed from // the sequence, this will always returns the original path. // If the index is not valid, this will return an empty string.
c180386
// Set a new dirname for the sequence
c180387
// Set a new padding characters for the sequence
c180388
// Set a new padding style for mapping between characters and // their numeric width
c180389
// Set a new ext for the sequence
c180390
// Set a new FrameSet, by way of providing a string frame range. // If the frame range cannot be parsed, an error will be returned.
c180391
// Len returns the number of frames in the FrameSet. // If a frame range was not parsed, this will always return 1
c180392
// String returns the formatted sequence
c180393
// Copy returns a copy of the FileSequence
c180394
// NewClient return SOAP client
c180395
// UnmarshalXML unmarshal SOAPHeader
c180396
// UnmarshalXML unmarshal SOAPBody
c180397
// Call SOAP client API call
c180398
// JSONDoc loads a json document from either a file or a remote url
c180399
// AddLoader for a document