_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c8900 | // New makes a new Mocker for the specified package directory. | |
c8901 | // Mock generates a mock for the specified interface name. | |
c8902 | // Stop stops the Supervisor.
//
// This function will not return until either all Services have stopped, or
// they timeout after the timeout value given to the Supervisor at
// creation. | |
c8903 | // NewClient initializes a client from a client config. | |
c8904 | // NewInClusterClient returns a client that uses the service account bearer token mounted
// into Kubernetes pods. | |
c8905 | // createConfigMap creates a configmap in the client's default namespace
// but does not return an error if a configmap of the same name already
// exists. | |
c8906 | // Eq selects labels which have the key and the key has the provide value. | |
c8907 | // In selects labels which have the key and the key has one of the provided values. | |
c8908 | // QueryParam can be used to manually set a URL query parameter by name. | |
c8909 | // Timeout declares the timeout for list and watch operations. Timeout
// is only accurate to the second. | |
c8910 | // loadClient parses a kubeconfig from a file and returns a Kubernetes
// client. It does not support extensions or client auth providers. | |
c8911 | // marshal encodes an object and returns the content type of that resource
// and the marshaled representation.
//
// marshal prefers protobuf encoding, but falls back to JSON. | |
c8912 | // unmarshal decoded an object given the content type of the encoded form. | |
c8913 | // Next decodes the next event from the watch stream. Errors are fatal, and
// indicate that the watcher should no longer be used, and must be recreated. | |
c8914 | // JSON marshaling logic for the Time type so it can be used for custom
// resources, which serialize to JSON. | |
c8915 | // Has returns true if the tree contains an element whose order is the same as that of key. | |
c8916 | // Get retrieves an element from the tree whose order is the same as that of key. | |
c8917 | // Min returns the minimum element in the tree. | |
c8918 | // Max returns the maximum element in the tree. | |
c8919 | // ReplaceOrInsert inserts item into the tree. If an existing
// element has the same order, it is removed from the tree and returned. | |
c8920 | // InsertNoReplace inserts item into the tree. If an existing
// element has the same order, both elements remain in the tree. | |
c8921 | // Rotation driver routines for 2-3-4 algorithm | |
c8922 | // DeleteMin deletes the minimum element in the tree and returns the
// deleted item or nil otherwise. | |
c8923 | // deleteMin code for LLRB 2-3 trees | |
c8924 | // DeleteMax deletes the maximum element in the tree and returns
// the deleted item or nil otherwise | |
c8925 | // Delete deletes an item from the tree whose key equals key.
// The deleted item is return, otherwise nil is returned. | |
c8926 | // AscendGreaterOrEqual will call iterator once for each element greater or equal to
// pivot in ascending order. It will stop whenever the iterator returns false. | |
c8927 | // DescendLessOrEqual will call iterator once for each element less than the
// pivot in descending order. It will stop whenever the iterator returns false. | |
c8928 | // WithValue adds custom state variables to the runtime context. | |
c8929 | // UnmarshalPayload has docs in request.go for UnmarshalPayload. | |
c8930 | // UnmarshalManyPayload has docs in request.go for UnmarshalManyPayload. | |
c8931 | // UnmarshalManyPayload converts an io into a set of struct instances using
// jsonapi tags on the type's struct fields. | |
c8932 | // assign will take the value specified and assign it to the field; if
// field is expecting a ptr assign will assign a ptr. | |
c8933 | // assign assigns the specified value to the field,
// expecting both values not to be pointer types. | |
c8934 | // Marshal does the same as MarshalPayload except it just returns the payload
// and doesn't write out results. Useful if you use your own JSON rendering
// library. | |
c8935 | // marshalOne does the same as MarshalOnePayload except it just returns the
// payload and doesn't write out results. Useful is you use your JSON rendering
// library. | |
c8936 | // marshalMany does the same as MarshalManyPayload except it just returns the
// payload and doesn't write out results. Useful is you use your JSON rendering
// library. | |
c8937 | // JSONAPILinks implements the Linkable interface for a blog | |
c8938 | // JSONAPIRelationshipLinks implements the RelationshipLinkable interface for a blog | |
c8939 | // JSONAPIRelationshipMeta implements the RelationshipMetable interface for a blog | |
c8940 | // Apply given transformation func for each line in string | |
c8941 | // Move cursor to given position | |
c8942 | // Move string to possition | |
c8943 | // Return carrier to start of line | |
c8944 | // Get console width | |
c8945 | // Get console height | |
c8946 | // Flush buffer and ensure that it will not overflow screen | |
c8947 | // DataTable can contain data for multiple graphs, we need to extract only 1 | |
c8948 | // Save stores the CSRF token in the session cookie. | |
c8949 | // RequestHeader allows you to change the request header the CSRF middleware
// inspects. The default is X-CSRF-Token. | |
c8950 | // CookieName changes the name of the CSRF cookie issued to clients.
//
// Note that cookie names should not contain whitespace, commas, semicolons,
// backslashes or control characters as per RFC6265. | |
c8951 | // parseOptions parses the supplied options functions and returns a configured
// csrf handler. | |
c8952 | // FailureReason makes CSRF validation errors available in the request context.
// This is useful when you want to log the cause of the error or report it to
// client. | |
c8953 | // envError stores a CSRF error in the request context. | |
c8954 | // Implements http.Handler for the csrf type. | |
c8955 | // unauthorizedhandler sets a HTTP 403 Forbidden status and writes the
// CSRF failure reason to the response. | |
c8956 | // json -> sexp. env is needed to handle symbols correctly | |
c8957 | // sexp -> json | |
c8958 | // json -> go | |
c8959 | // go -> json | |
c8960 | // msgpack -> sexp | |
c8961 | // msgpack -> go | |
c8962 | // with block comments, we've got to tell
// the parser about them, so it can recognize
// when another line is needed to finish a
// block comment. | |
c8963 | // SexpString satisfies the Sexp interface, producing a string presentation of the value. | |
c8964 | // LookupSymbolNonGlobal - closures use this to only find symbols below the global scope, to avoid copying globals it'll always be-able to ref | |
c8965 | // declare a new record type | |
c8966 | // detect SexpEnd values and return false on them to filter them out. | |
c8967 | // MergeFuncMap returns the union of the two given maps | |
c8968 | // CoreFunctions returns all of the core logic | |
c8969 | // handles arrays or hashes | |
c8970 | // the assignment function, = | |
c8971 | // helper used by dotGetSetHelper and sub-calls to check for private | |
c8972 | // "." dot operator | |
c8973 | // coerce numbers to uint64 | |
c8974 | // works over hashes and arrays | |
c8975 | // CloneFrom copys all the internals of src into p, effectively
// blanking out whatever p held and replacing it with a copy of src. | |
c8976 | // Starts launches a background goroutine that runs an
// infinite parsing loop. | |
c8977 | // reads Stdin only | |
c8978 | // time-stamped printf | |
c8979 | // complete phrases that start with '(' | |
c8980 | // Assignment creates a new assignment operator for infix
// processing. | |
c8981 | // PostfixAssign creates a new postfix assignment operator for infix
// processing. | |
c8982 | // Advance sets p.NextToken | |
c8983 | // chase parent pointers up the chain and check each of their immediate closures. | |
c8984 | // detect if inteface is holding anything | |
c8985 | // import a package, analagous to Golang. | |
c8986 | // like begin, but puts its contents in a new scope | |
c8987 | // set ShellCmd as used by SystemFunction | |
c8988 | // sys is a builder. shell out, return the combined output. | |
c8989 | // if pc is -1, don't show it. | |
c8990 | // scan the instruction stream to locate loop start | |
c8991 | // SplitStringFunction splits a string based on an arbitrary delimiter | |
c8992 | // NB at the moment this doesn't track comment and strings state,
// so it will fail if unbalanced '(' are found in either. | |
c8993 | // liner reads Stdin only. If noLiner, then we read from reader. | |
c8994 | // string -> time.Time | |
c8995 | // alternative. simpler, currently panics. | |
c8996 | // existing
// SourceExpressions, this should be called from a user func context | |
c8997 | // helper for SourceFileFunction recursion | |
c8998 | // pretty print a struct | |
c8999 | // compute key and value widths to assist alignment |