_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c175800 | // Namespace returns a copy of the client pointing at the specified namespace. | |
c175801 | // NewFakeClient creates a client that doesn't do anything. If you provide a
// deck URL then the client will hit that for the supported calls. | |
c175802 | // NewClientInCluster creates a Client that works from within a pod. | |
c175803 | // NewClientFromFile reads a Cluster object at clusterPath and returns an
// authenticated client using the keys within. | |
c175804 | // NewClient returns an authenticated Client using the keys in the Cluster. | |
c175805 | // ReplaceConfigMap puts the configmap into name.
//
// Analogous to kubectl replace configmap
//
// If config.Namespace is empty, the client's specified namespace is used.
// Returns the content returned by the apiserver | |
c175806 | // GetDiskUsage wraps syscall.Statfs for usage in GCing the disk | |
c175807 | // GetATime the atime for a file, logging errors instead of failing
// and returning defaultTime instead | |
c175808 | // RegisterLens registers new viewers | |
c175809 | // GetLens returns a Lens by name, if it exists; otherwise it returns an error. | |
c175810 | // LastNLines reads the last n lines from an artifact. | |
c175811 | // NewClient creates a slack client with an API token. | |
c175812 | // WriteMessage adds text to channel | |
c175813 | // MarkAndSweep looks at the provided set, and removes resources older than its TTL that have been previously tagged. | |
c175814 | // ListAll populates a set will all available NATGateway resources. | |
c175815 | // NewClient creates a Boskos client for the specified URL and resource owner.
//
// Clients created with this function default to retrying failed connection
// attempts three times with a ten second pause between each attempt. | |
c175816 | // public method
// Acquire asks boskos for a resource of certain type in certain state, and set the resource to dest state.
// Returns the resource on success. | |
c175817 | // AcquireWait blocks until Acquire returns the specified resource or the
// provided context is cancelled or its deadline exceeded. | |
c175818 | // AcquireByState asks boskos for a resources of certain type, and set the resource to dest state.
// Returns a list of resources on success. | |
c175819 | // ReleaseAll returns all resources hold by the client back to boskos and set them to dest state. | |
c175820 | // ReleaseOne returns one of owned resources back to boskos and set it to dest state. | |
c175821 | // UpdateAll signals update for all resources hold by the client. | |
c175822 | // SyncAll signals update for all resources hold by the client. | |
c175823 | // UpdateOne signals update for one of the resources hold by the client. | |
c175824 | // Metric will query current metric for target resource type.
// Return a common.Metric object on success. | |
c175825 | // HasResource tells if current client holds any resources | |
c175826 | // DialContext connects to the address on the named network using the provided context. | |
c175827 | // NewDashboardAgent creates a new user dashboard agent . | |
c175828 | // QueryPullRequests is a query function that returns a list of open pull requests owned by the user whose access token
// is consumed by the github client. | |
c175829 | // GetHeadContexts returns the status checks' contexts of the head commit of the PR. | |
c175830 | // ConstructSearchQuery returns the GitHub search query string for PRs that are open and authored
// by the user passed. The search is scoped to repositories that are configured with either Prow or
// Tide. | |
c175831 | // NewBundledStates is the constructor for BundledStates | |
c175832 | // ReceiveEvent is called when something happens on an issue. The state
// for that issue is updated. | |
c175833 | // ages return the age of each active states | |
c175834 | // Percentile returns given percentile for age of all active states at time t | |
c175835 | // NewMetrics creates a new set of metrics for the Jenkins operator. | |
c175836 | // NewDiskCache creates a GitHub cache RoundTripper that is backed by a disk
// cache. | |
c175837 | // NewMemCache creates a GitHub cache RoundTripper that is backed by a memory
// cache. | |
c175838 | // NewFromCache creates a GitHub cache RoundTripper that is backed by the
// specified httpcache.Cache implementation. | |
c175839 | // ProwV1 retrieves the ProwV1Client | |
c175840 | // Prow retrieves the ProwV1Client | |
c175841 | // NewOwners consturcts a new Owners instance. filenames is the slice of files changed. | |
c175842 | // GetApprovers returns a map from ownersFiles -> people that are approvers in them | |
c175843 | // GetAllPotentialApprovers returns the people from relevant owners files needed to get the PR approved | |
c175844 | // GetReverseMap returns a map from people -> OWNERS files for which they are an approver | |
c175845 | // temporaryUnapprovedFiles returns the list of files that wouldn't be
// approved by the given set of approvers. | |
c175846 | // KeepCoveringApprovers finds who we should keep as suggested approvers given a pre-selection
// knownApprovers must be a subset of potentialApprovers. | |
c175847 | // GetSuggestedApprovers solves the exact cover problem, finding an approver capable of
// approving every OWNERS file in the PR | |
c175848 | // GetOwnersSet returns a set containing all the Owners files necessary to get the PR approved | |
c175849 | // GetShuffledApprovers shuffles the potential approvers so that we don't
// always suggest the same people. | |
c175850 | // String creates a link for the approval. Use `Login` if you just want the name. | |
c175851 | // IntersectSetsCase runs the intersection between to sets.String in a
// case-insensitive way. It returns the name with the case of "one". | |
c175852 | // NewApprovers create a new "Approvers" with no approval. | |
c175853 | // AddLGTMer adds a new LGTM Approver | |
c175854 | // RemoveApprover removes an approver from the list. | |
c175855 | // AddAssignees adds assignees to the list | |
c175856 | // GetCurrentApproversSetCased returns the set of approvers logins with the original cases. | |
c175857 | // GetFilesApprovers returns a map from files -> list of current approvers. | |
c175858 | // NoIssueApprovers returns the list of people who have "no-issue"
// approved the pull-request. They are included in the list iff they can
// approve one of the files. | |
c175859 | // UnapprovedFiles returns owners files that still need approval | |
c175860 | // GetFiles returns owners files that still need approval. | |
c175861 | // IsApproved returns a bool indicating whether the PR is fully approved.
// If a human manually added the approved label, this returns true, ignoring normal approval rules. | |
c175862 | // ListApprovals returns the list of approvals | |
c175863 | // ListNoIssueApprovals returns the list of "no-issue" approvals | |
c175864 | // GenerateTemplate takes a template, name and data, and generates
// the corresponding string. | |
c175865 | // Writes the golang text template at templatePath to outputPath using the given data | |
c175866 | // Labels returns a sorted list of labels unique by name | |
c175867 | // LabelsForTarget returns labels that have a given target | |
c175868 | // LoadConfig reads the yaml config at path | |
c175869 | // loadLabels returns what labels exist in github | |
c175870 | // Delete the label | |
c175871 | // Create the label | |
c175872 | // classifyLabels will put labels into the required, archaic, dead maps as appropriate. | |
c175873 | // linkify transforms a string into a markdown anchor link
// I could not find a proper doc, so rules here a mostly empirical | |
c175874 | // NewCache returns a new Cache given the root directory that should be used
// on disk for cache storage | |
c175875 | // KeyToPath converts a cache entry key to a path on disk | |
c175876 | // file path helper | |
c175877 | // Put copies the content reader until the end into the cache at key
// if contentSHA256 is not "" then the contents will only be stored in the
// cache if the content's hex string SHA256 matches | |
c175878 | // Get provides your readHandler with the contents at key | |
c175879 | // Delete deletes the file at key | |
c175880 | // NewGCSArtifact returns a new GCSArtifact with a given handle, canonical link, and path within the job | |
c175881 | // Size returns the size of the artifact in GCS | |
c175882 | // ReadAll will either read the entire file or throw an error if file size is too big | |
c175883 | // ReadTail reads the last n bytes from a file in GCS | |
c175884 | // gzipped returns whether the file is gzip-encoded in GCS | |
c175885 | // optionsForRepo gets the plugins.Welcome struct that is applicable to the indicated repo. | |
c175886 | // List lists all ProwJobs in the indexer. | |
c175887 | // ProwJobs returns an object that can list and get ProwJobs. | |
c175888 | // List lists all ProwJobs in the indexer for a given namespace. | |
c175889 | // RunsAgainstAllBranch returns true if there are both branches and skip_branches are unset | |
c175890 | // Intersects checks if other Brancher would trigger for the same branch. | |
c175891 | // ShouldRun determines if we can know for certain that the job should run. We can either
// know for certain that the job should or should not run based on the matcher, or we can
// not be able to determine that fact at all. | |
c175892 | // RunsAgainstChanges returns true if any of the changed input paths match the run_if_changed regex. | |
c175893 | // CouldRun determines if the postsubmit could run against a specific
// base ref | |
c175894 | // ShouldRun determines if the postsubmit should run in response to a
// set of changes. This is evaluated lazily, if necessary. | |
c175895 | // CouldRun determines if the presubmit could run against a specific
// base ref | |
c175896 | // ShouldRun determines if the presubmit should run against a specific
// base ref, or in response to a set of changes. The latter mechanism
// is evaluated lazily, if necessary. | |
c175897 | // GetPresubmit returns the presubmit job for the provided repo and job name. | |
c175898 | // SetPresubmits updates c.Presubmits to jobs, after compiling and validating their regexes. | |
c175899 | // SetPostsubmits updates c.Postsubmits to jobs, after compiling and validating their regexes. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.