_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c8500 | //Rotate rotate text or image
// angle is angle in degrees.
// x, y is rotation center | |
c8501 | // UnitsToPoints converts the units to the documents unit type | |
c8502 | // UnitsToPointsVar converts the units to the documents unit type for all variables passed in | |
c8503 | // PointsToUnits converts the points to the documents unit type | |
c8504 | //PointsToUnitsVar converts the points to the documents unit type for all variables passed in | |
c8505 | // PointsToUnits converts the rectanlges width and height to Units. When this is called it is assumed the values of the rectangle are in Points | |
c8506 | // UnitsToPoints converts the rectanlges width and height to Points. When this is called it is assumed the values of the rectangle are in Units | |
c8507 | //ImgReactagleToWH Rectangle to W and H | |
c8508 | // URL returns the stow url for this item | |
c8509 | // Metadata returns additional item metadata fields that were set when the file was uploaded | |
c8510 | // Open downloads the item | |
c8511 | // ETag returns an etag for an item. In this implementation we use the file's last modified timestamp | |
c8512 | // CreateContainer creates a new container with the given name while returning a
// container instance with the given information. | |
c8513 | // Containers returns a collection of containers based on the given prefix and cursor. | |
c8514 | // Container utilizes the client to retrieve container information based on its
// name. | |
c8515 | // RemoveContainer attempts to remove a container. Nonempty containers cannot
// be removed. | |
c8516 | // Register adds a Location implementation, with two helper functions.
// makefn should make a Location with the given Config.
// kindmatchfn should inspect a URL and return whether it represents a Location
// of this kind or not. Code can call KindByURL to get a kind string
// for any given URL and all registered impl... | |
c8517 | // Dial gets a new Location with the given kind and
// configuration. | |
c8518 | // Validate validates the config for a location | |
c8519 | // KindByURL gets the kind represented by the given URL.
// It consults all registered locations.
// Error returned if no match is found. | |
c8520 | // Config gets a string configuration value and a
// bool indicating whether the value was present or not. | |
c8521 | // Open opens the file for reading. | |
c8522 | // URL returns a formatted string which follows the predefined format
// that every S3 asset is given. | |
c8523 | // Open retrieves specic information about an item based on the container name
// and path of the file within the container. This response includes the body of
// resource which is returned along with an error. | |
c8524 | // Tags returns a map of tags on an Item | |
c8525 | // ensureInfo checks the fields that may be empty when an item is PUT.
// Verify if the fields are empty, get information on the item, fill in
// the missing fields. | |
c8526 | // Open is a method that returns an io.ReadCloser which represents the content
// of the CloudStorage object. | |
c8527 | // LastMod returns a time.Time object representing information on the date
// of the last time the CloudStorage object was modified. | |
c8528 | // Keys are returned as all lowercase, dashes are allowed | |
c8529 | // Items returns a collection of CloudStorage objects based on a matching
// prefix string and cursor information. | |
c8530 | // Put creates or updates a CloudStorage object within the given container. | |
c8531 | // prepUrl takes a MediaLink string and returns a url | |
c8532 | // Containers lists all containers in the location | |
c8533 | // Container returns a stow.Contaner given a container id. In this case, the 'id'
// is really the bucket name | |
c8534 | // ItemByURL returns a stow.Item given a b2 stow url | |
c8535 | // RemoveContainer removes the specified bucket. In this case, the 'id'
// is really the bucket name | |
c8536 | // Items sends a request to retrieve a list of items that are prepended with
// the prefix argument. The 'cursor' variable facilitates pagination. | |
c8537 | // A request to retrieve a single item includes information that is more specific than
// a PUT. Instead of doing a request within the PUT, make this method available so that the
// request can be made by the field retrieval methods when necessary. This is the case for
// fields that are left out, such as the object's ... | |
c8538 | // The first letter of a dash separated key value is capitalized, so perform a ToLower on it.
// This Key transformation of returning lowercase is consistent with other locations.. | |
c8539 | // flatdirs walks the entire tree returning a list of
// os.FileInfo for all items encountered. | |
c8540 | // determineChunkSize determines the chunk size for a multi-part upload. | |
c8541 | // multipartUpload performs a multi-part upload by chunking the data, putting each chunk, then
// assembling the chunks into a blob | |
c8542 | // CreateContainer creates a new container, in this case an S3 bucket.
// The bare minimum needed is a container name, but there are many other
// options that can be provided. | |
c8543 | // Containers returns a slice of the Container interface, a cursor, and an error.
// This doesn't seem to exist yet in the API without doing a ton of manual work.
// Get the list of buckets, query every single one to retrieve region info, and finally
// return the list of containers that have a matching region against ... | |
c8544 | // Walk walks all Items in the Container.
// Returns the first error returned by the WalkFunc or
// nil if no errors were returned.
// The pageSize is the number of Items to get per request. | |
c8545 | // WalkContainers walks all Containers in the Location.
// Returns the first error returned by the WalkContainersFunc or
// nil if no errors were returned.
// The pageSize is the number of Containers to get per request. | |
c8546 | // Item returns a stow.Item instance of a container based on the
// name of the container | |
c8547 | // Items retrieves a list of items that are prepended with
// the prefix argument. The 'cursor' variable facilitates pagination. | |
c8548 | // Put sends a request to upload content to the container. The arguments
// received are the name of the item, a reader representing the
// content, and the size of the file. | |
c8549 | // Items retreives a list of items from b2. Since the b2 ListFileNames operation
// does not natively support a prefix, we fake it ourselves | |
c8550 | // Put uploads a file | |
c8551 | // RemoveItem identifies the file by it's ID, then removes all versions of that file | |
c8552 | // filesToContainers takes a list of files and turns it into a
// stow.ContainerList. | |
c8553 | // CreateContainer creates a new container, in this case a bucket. | |
c8554 | // Containers returns a slice of the Container interface, a cursor, and an error. | |
c8555 | // Register registers a new mock in the current mocks stack. | |
c8556 | // Exists checks if the given Mock is already registered. | |
c8557 | // Remove removes a registered mock by reference. | |
c8558 | // Clean cleans the mocks store removing disabled or obsolete mocks. | |
c8559 | // Add adds a new function matcher. | |
c8560 | // Match matches the given http.Request with a mock request
// returning true in case that the request matches, otherwise false. | |
c8561 | // MatchMock is a helper function that matches the given http.Request
// in the list of registered mocks, returning it if matches or error if it fails. | |
c8562 | // NewRequest creates a new Request instance. | |
c8563 | // URL defines the mock URL to match. | |
c8564 | // SetURL defines the url.URL struct to be used for matching. | |
c8565 | // method is a DRY shortcut used to declare the expected HTTP method and URL path. | |
c8566 | // BodyString defines the body to match based on a given string. | |
c8567 | // File defines the body to match based on the given file path string. | |
c8568 | // Compression defines the request compression scheme, and enables automatic body decompression.
// Supports only the "gzip" scheme so far. | |
c8569 | // JSON defines the JSON body to match based on a given structure. | |
c8570 | // BasicAuth defines a username and password for HTTP Basic Authentication | |
c8571 | // MatchHeader defines a new key and value header to match. | |
c8572 | // HeaderPresent defines that a header field must be present in the request. | |
c8573 | // MatchHeaders defines a map of key-value headers to match. | |
c8574 | // MatchParam defines a new key and value URL query param to match. | |
c8575 | // MatchParams defines a map of URL query param key-value to match. | |
c8576 | // ParamPresent matches if the given query param key is present in the URL. | |
c8577 | // Times defines the number of times that the current HTTP mock should remain active. | |
c8578 | // AddMatcher adds a new matcher function to match the request. | |
c8579 | // SetMatcher sets a new matcher function to match the request. | |
c8580 | // Map adds a new request mapper function to map http.Request before the matching process. | |
c8581 | // EnableNetworking enables the use real networking for the current mock. | |
c8582 | // Reply defines the Response status code and returns the mock Response DSL. | |
c8583 | // ReplyError defines the Response simulated error. | |
c8584 | // ReplyFunc allows the developer to define the mock response via a custom function. | |
c8585 | // Responder builds a mock http.Response based on the given Response mock. | |
c8586 | // createResponse creates a new http.Response with default fields. | |
c8587 | // mergeHeaders copies the mock headers. | |
c8588 | // createReadCloser creates an io.ReadCloser from a byte slice that is suitable for use as an
// http response body. | |
c8589 | // Starts a local HTTP server in background | |
c8590 | // MatchMethod matches the HTTP method of the given request. | |
c8591 | // MatchScheme matches the request URL protocol scheme. | |
c8592 | // MatchHost matches the HTTP host header field of the given request. | |
c8593 | // MatchPath matches the HTTP URL path of the given request. | |
c8594 | // MatchHeaders matches the headers fields of the given request. | |
c8595 | // MatchQueryParams matches the URL query params fields of the given request. | |
c8596 | // MatchPathParams matches the URL path parameters of the given request. | |
c8597 | // Status defines the desired HTTP status code to reply in the current response. | |
c8598 | // SetHeader sets a new header field in the mock response. | |
c8599 | // AddHeader adds a new header field in the mock response
// with out removing an existent one. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.