_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c17300
// ListAppEventsByQuery returns all app events based on eventType and queries
c17301
// CreateServiceKey creates a service key from the request. If a service key // exists already, it returns an error containing `CF-ServiceKeyNameTaken`
c17302
//Reads most security group response bodies into a SecGroup object
c17303
//Create and Update secGroup pretty much do the same thing, so this function abstracts those out.
c17304
// ListAllProcessesByQuery will call the v3 processes api
c17305
// ListAppsByQueryWithLimits queries totalPages app info. When totalPages is // less and equal than 0, it queries all app info // When there are no more than totalPages apps on server side, all apps info will be returned
c17306
// GetAppByGuidNoInlineCall will fetch app info including space and orgs information // Without using inline-relations-depth=2 call
c17307
//AppByName takes an appName, and GUIDs for a space and org, and performs // the API lookup with those query parameters set to return you the desired // App object.
c17308
// UploadAppBits uploads the application's contents
c17309
// GetAppBits downloads the application's bits as a tar file
c17310
// CreateApp creates a new empty application that still needs it's // app bit uploaded and to be started
c17311
// GetInfo retrieves Info from the Cloud Controller API
c17312
// CF APIs v3 can return multiple errors, we take the first one and convert it into a V2 model
c17313
// ListServiceUsageEventsByQuery lists all events matching the provided query.
c17314
// ListEventsByQuery lists all events matching the provided query.
c17315
// TotalEventsByQuery returns the number of events matching the provided query.
c17316
// CreateTask creates a new task in CF system and returns its structure.
c17317
// GetTaskByGuid returns a task structure by requesting it with the tasks GUID.
c17318
// TerminateTask cancels a task identified by its GUID.
c17319
//DefaultConfig configuration for client //Keep LoginAdress for backward compatibility //Need to be remove in close future
c17320
// getUserTokenAuth initializes client credentials from existing bearer token.
c17321
// NewRequest is used to create a new Request
c17322
// NewRequestWithBody is used to create a new request with // arbigtrary body io.Reader.
c17323
// DoRequestWithoutRedirects executes the request without following redirects
c17324
//a uniqueID is the id of the service in the catalog and not in cf internal db
c17325
// GetUserByGUID retrieves the user with the provided guid.
c17326
// ListAppUsageEventsByQuery lists all events matching the provided query.
c17327
// CreateRoute creates a regular http route
c17328
// BindRoute associates the specified route with the application
c17329
// Check returns whether the descriptor is valid
c17330
// GetWidth returns the width in pixels for the input plane
c17331
// GetHeight returns the height in pixels for the input plane
c17332
// GetRatio returns a ChromaRatio from an image.YCbCrSubsampleRatio
c17333
// PrepareConversion returns a ConverterConfig properly set for a conversion // from input images to output images // Returns an error if the conversion is not possible
c17334
// Psnr computes the PSNR between two input images // Only ycbcr is currently supported
c17335
// NewResize returns a new resizer // cfg = resize configuration // filter = filter used for computing weights
c17336
// This file is auto-generated - do not modify
c17337
// DumpImage dumps each img planes to disk using the input prefix
c17338
// NewListFromString parses a string that represents a Public Suffix source // and returns a List initialized with the rules in the source.
c17339
// NewListFromFile parses a string that represents a Public Suffix source // and returns a List initialized with the rules in the source.
c17340
// Load parses and loads a set of rules from an io.Reader into the current list.
c17341
// LoadString parses and loads a set of rules from a String into the current list.
c17342
// LoadFile parses and loads a set of rules from a File into the current list.
c17343
// AddRule adds a new rule to the list. // // The exact position of the rule into the list is unpredictable. // The list may be optimized internally for lookups, therefore the algorithm // will decide the best position for the new rule.
c17344
// Find and returns the most appropriate rule for the domain name.
c17345
// MustNewRule is like NewRule, but panics if the content cannot be parsed.
c17346
// PublicSuffix implements cookiejar.PublicSuffixList.
c17347
// Visit all files under the given node.
c17348
// Convert bytes to human readable string. Like a 2 MB, 64.2 KB, 52 B
c17349
// case-insensitive contains helper
c17350
// Retrieves the struct field name and key name that represents the identity field for a given struct.
c17351
// Returns the backend and protocol components of the string.
c17352
// Returns the protocol component of the string.
c17353
// Returns the host component of the string.
c17354
// Returns the dataset component of the string.
c17355
// Explicitly set username and password on this connection string
c17356
// Reads a .netrc-style file and loads the appropriate credentials. The host component of // this connection string is matched with the netrc "machine" field.
c17357
// Create a new colllection definition with no fields.
c17358
// Return the duration until the TimeToLiveField in given record expires within the current collection. // Collections with an empty TimeToLiveField, or records with a missing or zero-valued TimeToLiveField // will return 0. If the record has already expired, the returned duration will be a negative number.
c17359
// Expired records are those whose TTL duration is non-zero and negative.
c17360
// Get the canonical name of the external index name.
c17361
// Get the canonical name of the dataset in an external aggregator service.
c17362
// Configure the identity field of a collection in a single function call.
c17363
// Append a field definition to this collection.
c17364
// Copies certain collection and field properties from the definition object into this collection // instance. This is useful for collections that are created by parsing the schema as it exists on // the remote datastore, which will have some but not all of the information we need to work with the // data. Definition...
c17365
// Retrieve a single field by name. The second return value will be false if the field does not // exist.
c17366
// Retrieve a single field by its index value. The second return value will be false if a field // at that index does not exist.
c17367
// Return whether a given field name is a key on this Collection.
c17368
// Retrieve all of the fields that comprise the primary key for this Collection. This will always include the identity // field at a minimum.
c17369
// Retrieve the first non-indentity key field, sometimes referred to as the "range", "sort", or "cluster" key.
c17370
// Convert a given value according to the data type of a specific named field.
c17371
// Convert the given record into a map.
c17372
// Validate the given record against all Field and Collection validators.
c17373
// Verifies that the schema passes some basic sanity checks.
c17374
// Retrieves an instance of the model identified by the given ID and populates the value pointed to // by the into parameter. Structs and dal.Record instances can be populated. //
c17375
// Tests whether a record exists for the given ID. //
c17376
// Updates and saves an existing instance of the model from the given struct or dal.Record. //
c17377
// Creates or updates an instance of the model depending on whether it exists or not. //
c17378
// Delete instances of the model identified by the given IDs //
c17379
// Delete all records matching the given query.
c17380
// Perform a query for instances of the model that match the given filter.Filter. // Results will be returned in the slice or array pointed to by the into parameter, or // if into points to a dal.RecordSet, the RecordSet resulting from the query will be returned // as-is. //
c17381
// Perform a query for instances of the model that match the given filter.Filter. // The given callback function will be called once per result. //
c17382
// Generates a V4 UUID value if the existing value is empty.
c17383
// Same as GenerateUUID, but allows for a custom representation of the underlying bytes.
c17384
// Only evaluates the given formatter if the current value of the field is empty.
c17385
// Extracts values from the given Record and generates a deterministic output based on those values.
c17386
// Returns the current time every time the field is persisted.
c17387
// Returns the current time when the field is persisted if the current value is empty.
c17388
// Returns the current time with an added offset when the field is persisted.
c17389
// Validate that the given value matches all of the given regular expressions.
c17390
// Validate that all of the given validator functions pass.
c17391
// Validate that the given value is among the given choices.
c17392
// Validate that the given value is not a zero value, and if it's a string, that the string // does not contain only whitespace.
c17393
// Validate that the given value is an integer > 0.
c17394
// Validate that the value is a URL with a non-empty scheme and host component.
c17395
// wraps the process of borrowing a connection from the pool and running a command
c17396
// DeleteQuery removes records using a filter
c17397
// Takes a slice of structs or maps and fills it with instances populated by the records in this RecordSet // in accordance with the types specified in the given collection definition, as well as which // fields are available in the given struct.
c17398
// Populates a given struct with with the values in this record.
c17399
// NewContext returns a derived context containing the logger.