_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c5300 | // ListContainers implements container.Manager. | |
c5301 | // getContainerSpec generates a spec for creating a new container.
// It sources an image based on the input series, and transforms the input
// config objects into LXD configuration, including cloud init user data. | |
c5302 | // getImageSources returns a list of LXD remote image sources based on the
// configuration that was passed into the container manager. | |
c5303 | // networkDevicesFromConfig uses the input container network configuration to
// create a map of network device configuration in the LXD format.
// If there are no interfaces in the input config, but there is a bridge device
// name, return a single "eth0" device with the bridge as its parent.
// The last fall-back is to return the NIC devices from the default profile.
// Names for any networks without a known CIDR are returned in a slice. | |
c5304 | // LXDProfileNames implements container.LXDProfileManager | |
c5305 | // Maps the concrete value of val to its dynamic type using reflect.TypeOf,
// It returns the TypeMapper registered in. | |
c5306 | // Maps the given reflect.Type to the given reflect.Value and returns
// the Typemapper the mapping has been registered in. | |
c5307 | // Levels sets which levels to sent to sls | |
c5308 | // newFileWriter create a FileLogWriter returning as LoggerInterface. | |
c5309 | // WriteMsg write logger message into file. | |
c5310 | // Log10 sets z to the common logarithm of x and returns z. | |
c5311 | // Log sets z to the natural logarithm of x and returns z. | |
c5312 | // Value implements driver.Valuer. | |
c5313 | // Length returns the number of digits in x. | |
c5314 | // BigLength returns the number of digits in x. | |
c5315 | // Abs returns the absolute value of x. | |
c5316 | // CmpBits compares x and y. | |
c5317 | // Words returns a little-endian slice of big.Words representing the uint64. | |
c5318 | // Add sets z to x + y and returns z.
//
// x is assumed to be unsigned. | |
c5319 | // Sub sets z to x - y and returns z.
//
// x is assumed to be unsigned. | |
c5320 | // Set sets z to the 128-bit integer represented by z1 and z0. | |
c5321 | // add sets z to x + y and returns z. | |
c5322 | // sub sets z to x - y and returns z. | |
c5323 | // addVW sets z to x + y and returns the carry. | |
c5324 | // E sets z to the mathematical constant e and returns z. | |
c5325 | // Pi sets z to the mathematical constant pi and returns z. | |
c5326 | // pi sets z to the mathematical constant pi and returns z. | |
c5327 | // PowOfTenBig returns true if x is a power of 10. | |
c5328 | // Floor sets z to the greatest integer value less than or equal to x and returns
// z. | |
c5329 | // Ceil sets z to the least integer value greater than or equal to x and returns
// z. | |
c5330 | // allZeros returns true if every character in b is '0'. | |
c5331 | // formatCompact formats the compact decimal, x, as an unsigned integer. | |
c5332 | // formatSci returns the scientific version of b. | |
c5333 | // formatPlain returns the plain string version of b. | |
c5334 | // alias returns z if z != x, otherwise a newly-allocated big.Int. | |
c5335 | // bigScalex sets z to the big.Int equivalient of scalex. | |
c5336 | // Sqrt sets z to the square root of x and returns z. | |
c5337 | // Err returns non-nil if there are any trapped exceptional conditions. | |
c5338 | // WithContext is shorthand to create a Big decimal from a Context. | |
c5339 | // WithPrecision is shorthand to create a Big decimal with a given precision. | |
c5340 | // Add sets z to x + y and returns z. | |
c5341 | // mul is the implementation of Mul. | |
c5342 | // Quantize sets z to the number equal in value and sign to z with the scale, n.
//
// In order to perform truncation, set the Context's RoundingMode to ToZero. | |
c5343 | // Reduce reduces a finite z to its most simplest form. | |
c5344 | // simpleReduce is the same as Reduce, but it does not round prior to reducing
// the decimal. | |
c5345 | // Rem sets z to the remainder x % y. See QuoRem for more details. | |
c5346 | // RoundToInt rounds z down to an integral value. | |
c5347 | // Set sets z to x and returns z. The result might be rounded, even if z == x. | |
c5348 | // SetString sets z to the value of s, returning z and a bool indicating success.
// See Big.SetString for valid formats. | |
c5349 | // Sub sets z to x - y and returns z. | |
c5350 | // CmpTotalAbs is like CmpTotal but instead compares the absolute values of x
// and y. | |
c5351 | // CopyAbs is like Abs, but no flags are changed and the result is not rounded. | |
c5352 | // CopyNeg is like Neg, but no flags are changed and the result is not rounded. | |
c5353 | // Max returns the greater of the provided values.
//
// The result is undefined if no values are are provided. | |
c5354 | // MaxAbs returns the greater of the absolute value of the provided values.
//
// The result is undefined if no values are provided. | |
c5355 | // Min returns the lesser of the provided values.
//
// The result is undefined if no values are are provided. | |
c5356 | // MinAbs returns the lesser of the absolute value of the provided values. The
// result is undefined if no values are provided. | |
c5357 | // maxfor sets z to 999...n with the provided sign. | |
c5358 | // NextMinus sets z to the smallest representable number that's smaller than x
// and returns z. If x is negative infinity the result will be negative infinity.
// If the result is zero its sign will be negative and its scale will be MinScale. | |
c5359 | // NextPlus sets z to the largest representable number that's larger than x and
// returns z. If x is positive infinity the result will be positive infinity. If
// the result is zero it will be positive and its scale will be MaxScale. | |
c5360 | // SetSignbit sets z to -z if sign is true, otherwise to +z. | |
c5361 | // Wallis sets z to the result of the continued fraction provided by the
// Generator and returns z. The fraction is evaluated in a top-down manner,
// using the recurrence algorithm discovered by John Wallis. For more information
// on continued fraction representations, see the Lentz function. | |
c5362 | // ParseCases returns a slice of test cases in .fptest form read from r. | |
c5363 | // ShortString returns the same as String, except long data values are capped at
// length digits. | |
c5364 | // IsNaN returns two booleans indicating whether the data is a NaN value and
// whether it's signaling or not. | |
c5365 | // IsInf returns a boolean indicating whether the data is an Infinity and an
// int indicating the signedness of the Infinity. | |
c5366 | // CheckNaNs checks if either x or y is NaN. If so, it follows the rules of NaN
// handling set forth in the GDA specification. The second argument, y, may be
// nil. It returns true if either condition is a NaN. | |
c5367 | // Abs sets z to the absolute value of x and returns z. | |
c5368 | // cmp is the implementation for both Cmp and CmpAbs. | |
c5369 | // Copy sets z to a copy of x and returns z. | |
c5370 | // copyAbs sets z to a copy of |x| and returns z. | |
c5371 | // CopySign sets z to x with the sign of y and returns z. It accepts NaN values. | |
c5372 | // Float64 returns x as a float64 and a bool indicating whether x can fit into
// a float64 without truncation, overflow, or underflow. Special values are
// considered exact; however, special values that occur because the magnitude of
// x is too large to be represented as a float64 are not. | |
c5373 | // Float sets z to x and returns z. z is allowed to be nil. The result is
// undefined if z is a NaN value. | |
c5374 | // Int64 returns x as an int64, truncating towards zero. The returned boolean
// indicates whether the conversion to an int64 was successful. | |
c5375 | // Uint64 returns x as a uint64, truncating towards zero. The returned boolean
// indicates whether the conversion to a uint64 was successful. | |
c5376 | // IsNormal returns true if x is normal. | |
c5377 | // IsSubnormal returns true if x is subnormal. | |
c5378 | // IsInt reports whether x is an integer. Infinity and NaN values are not
// integers. | |
c5379 | // Neg sets z to -x and returns z. If x is positive infinity, z will be set to
// negative infinity and visa versa. If x == 0, z will be set to zero as well.
// NaN will result in an error. | |
c5380 | // Precision returns the precision of x. That is, it returns the number of
// digits in the unscaled form of x. x == 0 has a precision of 1. The result is
// undefined if x is not finite. | |
c5381 | // Rat sets z to x and returns z. z is allowed to be nil. The result is undefined if
// x is an infinity or NaN value. | |
c5382 | // Scan implements fmt.Scanner. | |
c5383 | // SetBigMantScale sets z to the given value and scale. | |
c5384 | // SetFloat sets z to exactly x and returns z. | |
c5385 | // SetFloat64 sets z to exactly x. | |
c5386 | // SetInf sets z to -Inf if signbit is set or +Inf is signbit is not set, and
// returns z. | |
c5387 | // SetMantScale sets z to the given value and scale. | |
c5388 | // setNaN is an internal NaN-setting method that panics when the OperatingMode
// is Go. | |
c5389 | // SetNaN sets z to a signaling NaN if signal is true or quiet NaN otherwise and
// returns z. No conditions are raised. | |
c5390 | // SetRat sets z to to the possibly rounded value of x and return z. | |
c5391 | // SetScale sets z's scale to scale and returns z. | |
c5392 | // ord returns similar to Sign except -Inf is -2 and +Inf is +2. | |
c5393 | // Signbit reports whether x is negative, negative zero, negative infinity, or
// negative NaN. | |
c5394 | // String returns the string representation of x. It's equivalent to the %s verb
// discussed in the Format method's documentation. Special cases depend on the
// OperatingMode. | |
c5395 | // validate ensures x's internal state is correct. There's no need for it to
// have good performance since it's for debug == true only. | |
c5396 | // Digits generates a string of N random digits, padded with zeros if necessary. | |
c5397 | // BoundedDigits generates a string of N random digits, padded with zeros if necessary.
// The output is restricted to the given range. | |
c5398 | // Title returns a random title, gender decides the gender of the name | |
c5399 | // FirstName returns a random first name, gender decides the gender of the name |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.