_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c161800 | train | // redeemRefreshToken performs the exchange of a refresh_token for a new id_token and refresh_token | {
"resource": ""
} | ||
c161801 | train | // NewClientOrDie creates a new API client from a set of config options, or fails fatally if the new client creation fails. | {
"resource": ""
} | ||
c161802 | train | // WatchApplicationWithRetry returns a channel of watch events for an application, retrying the
// watch upon errors. Closes the returned channel when the context is cancelled. | {
"resource": ""
} | ||
c161803 | train | // AddMetricsTransportWrapper adds a transport wrapper which increments 'argocd_app_k8s_request_total' counter on each kubernetes request | {
"resource": ""
} | ||
c161804 | train | // ToUnstructured converts a concrete K8s API type to a un unstructured object | {
"resource": ""
} | ||
c161805 | train | // MustToUnstructured converts a concrete K8s API type to a un unstructured object and panics if not successful | {
"resource": ""
} | ||
c161806 | train | // GetAppInstanceLabel returns the application instance name from labels | {
"resource": ""
} | ||
c161807 | train | // UnsetLabel removes our app labels from an unstructured object | {
"resource": ""
} | ||
c161808 | train | // cleanKubectlOutput makes the error output of kubectl a little better to read | {
"resource": ""
} | ||
c161809 | train | // WriteKubeConfig takes a rest.Config and writes it as a kubeconfig at the specified path | {
"resource": ""
} | ||
c161810 | train | // newAuthInfo returns an AuthInfo from a rest config, detecting if the rest.Config is an
// in-cluster config and automatically setting the token path appropriately. | {
"resource": ""
} | ||
c161811 | train | // SplitYAML splits a YAML file into unstructured objects. Returns list of all unstructured objects
// found in the yaml. If any errors occurred, returns the first one | {
"resource": ""
} | ||
c161812 | train | // Remarshal checks resource kind and version and re-marshal using corresponding struct custom marshaller.
// This ensures that expected resource state is formatter same as actual resource state in kubernetes
// and allows to find differences between actual and target states more accurately. | {
"resource": ""
} | ||
c161813 | train | // WatchWithRetry returns channel of watch events or errors of failed to call watch API. | {
"resource": ""
} | ||
c161814 | train | // ListClusters returns list of clusters | {
"resource": ""
} | ||
c161815 | train | // CreateCluster creates a cluster | {
"resource": ""
} | ||
c161816 | train | // WatchClusters allow watching for cluster events | {
"resource": ""
} | ||
c161817 | train | // GetCluster returns a cluster from a query | {
"resource": ""
} | ||
c161818 | train | // UpdateCluster updates a cluster | {
"resource": ""
} | ||
c161819 | train | // serverToSecretName hashes server address to the secret name using a formula.
// Part of the server address is incorporated for debugging purposes | {
"resource": ""
} | ||
c161820 | train | // clusterToData converts a cluster object to string data for serialization to a secret | {
"resource": ""
} | ||
c161821 | train | // secretToCluster converts a secret into a repository object | {
"resource": ""
} | ||
c161822 | train | // HashPasswordWithHashers hashes an entered password using the first hasher in the provided list of hashers. | {
"resource": ""
} | ||
c161823 | train | // NewServer returns a new instance of the Repository service | {
"resource": ""
} | ||
c161824 | train | // List returns list of repositories | {
"resource": ""
} | ||
c161825 | train | // ListApps returns list of apps in the repo | {
"resource": ""
} | ||
c161826 | train | // Create creates a repository | {
"resource": ""
} | ||
c161827 | train | // Update updates a repository | {
"resource": ""
} | ||
c161828 | train | // StartStatsTicker starts a goroutine which dumps stats at a specified interval | {
"resource": ""
} | ||
c161829 | train | // RegisterStackDumper spawns a goroutine which dumps stack trace upon a SIGUSR1 | {
"resource": ""
} | ||
c161830 | train | // RegisterHeapDumper spawns a goroutine which dumps heap profile upon a SIGUSR2 | {
"resource": ""
} | ||
c161831 | train | // LogStats logs runtime statistics | {
"resource": ""
} | ||
c161832 | train | // LogStack will log the current stack | {
"resource": ""
} | ||
c161833 | train | // NewAppStateManager creates new instance of Ksonnet app comparator | {
"resource": ""
} | ||
c161834 | train | // RegisterApplicationServiceHandler registers the http handlers for service ApplicationService to "mux".
// The handlers forward requests to the grpc endpoint over "conn". | {
"resource": ""
} | ||
c161835 | train | // Init initializes a local git repository and sets the remote origin | {
"resource": ""
} | ||
c161836 | train | // Fetch fetches latest updates from origin | {
"resource": ""
} | ||
c161837 | train | // goGitFetch fetches the remote using go-git | {
"resource": ""
} | ||
c161838 | train | // LsFiles lists the local working tree, including only files that are under source control | {
"resource": ""
} | ||
c161839 | train | // Checkout checkout specified git sha | {
"resource": ""
} | ||
c161840 | train | // LsRemote resolves the commit SHA of a specific branch, tag, or HEAD. If the supplied revision
// does not resolve, and "looks" like a 7+ hexadecimal commit SHA, it return the revision string.
// Otherwise, it returns an error indicating that the revision could not be resolved. This method
// runs with in-memory stor... | {
"resource": ""
} | ||
c161841 | train | // CommitSHA returns current commit sha from `git rev-parse HEAD` | {
"resource": ""
} | ||
c161842 | train | // runCmd is a convenience function to run a command in a given directory and return its output | {
"resource": ""
} | ||
c161843 | train | // newApplications returns a Applications | {
"resource": ""
} | ||
c161844 | train | // NewApplicationCommand returns a new instance of an `argocd app` command | {
"resource": ""
} | ||
c161845 | train | // NewApplicationCreateCommand returns a new instance of an `argocd app create` command | {
"resource": ""
} | ||
c161846 | train | // appURL returns the URL of an application | {
"resource": ""
} | ||
c161847 | train | // printParams prints parameters and overrides | {
"resource": ""
} | ||
c161848 | train | // NewApplicationSetCommand returns a new instance of an `argocd app set` command | {
"resource": ""
} | ||
c161849 | train | // targetObjects deserializes the list of target states into unstructured objects | {
"resource": ""
} | ||
c161850 | train | // liveObjects deserializes the list of live states into unstructured objects | {
"resource": ""
} | ||
c161851 | train | // Infer if obj is namespaced or not from corresponding live objects list. If corresponding live object has namespace then target object is also namespaced.
// If live object is missing then it does not matter if target is namespaced or not. | {
"resource": ""
} | ||
c161852 | train | // NewApplicationDeleteCommand returns a new instance of an `argocd app delete` command | {
"resource": ""
} | ||
c161853 | train | // NewApplicationListCommand returns a new instance of an `argocd app list` command | {
"resource": ""
} | ||
c161854 | train | // NewApplicationWaitCommand returns a new instance of an `argocd app wait` command | {
"resource": ""
} | ||
c161855 | train | // printAppResources prints the resources of an application in a tabwriter table
// Optionally prints the message from the operation state | {
"resource": ""
} | ||
c161856 | train | // Key returns a unique-ish key for the resource. | {
"resource": ""
} | ||
c161857 | train | // Merge merges the new state with any different contents from another resourceState.
// Blank fields in the receiver state will be updated to non-blank.
// Non-blank fields in the receiver state will never be updated to blank.
// Returns whether or not any keys were updated. | {
"resource": ""
} | ||
c161858 | train | // NewApplicationHistoryCommand returns a new instance of an `argocd app history` command | {
"resource": ""
} | ||
c161859 | train | // NewApplicationRollbackCommand returns a new instance of an `argocd app rollback` command | {
"resource": ""
} | ||
c161860 | train | // NewApplicationManifestsCommand returns a new instance of an `argocd app manifests` command | {
"resource": ""
} | ||
c161861 | train | // NewApplicationTerminateOpCommand returns a new instance of an `argocd app terminate-op` command | {
"resource": ""
} | ||
c161862 | train | // NewClusterCommand returns a new instance of an `argocd cluster` command | {
"resource": ""
} | ||
c161863 | train | // NewClusterGetCommand returns a new instance of an `argocd cluster get` command | {
"resource": ""
} | ||
c161864 | train | // NewClusterRemoveCommand returns a new instance of an `argocd cluster list` command | {
"resource": ""
} | ||
c161865 | train | // NewClusterListCommand returns a new instance of an `argocd cluster rm` command | {
"resource": ""
} | ||
c161866 | train | // NewServer returns a new instance of the Session service | {
"resource": ""
} | ||
c161867 | train | // UpdatePassword updates the password of the local admin superuser. | {
"resource": ""
} | ||
c161868 | train | // Version returns the version of the API server | {
"resource": ""
} | ||
c161869 | train | // NewProjectRoleCommand returns a new instance of the `argocd proj role` command | {
"resource": ""
} | ||
c161870 | train | // NewProjectRoleAddPolicyCommand returns a new instance of an `argocd proj role add-policy` command | {
"resource": ""
} | ||
c161871 | train | // NewProjectRoleCreateCommand returns a new instance of an `argocd proj role create` command | {
"resource": ""
} | ||
c161872 | train | // NewProjectRoleCreateTokenCommand returns a new instance of an `argocd proj role create-token` command | {
"resource": ""
} | ||
c161873 | train | // NewProjectRoleDeleteTokenCommand returns a new instance of an `argocd proj role delete-token` command | {
"resource": ""
} | ||
c161874 | train | // NewProjectRoleListCommand returns a new instance of an `argocd proj roles list` command | {
"resource": ""
} | ||
c161875 | train | // NewProjectRoleGetCommand returns a new instance of an `argocd proj roles get` command | {
"resource": ""
} | ||
c161876 | train | // NewProjectRoleAddGroupCommand returns a new instance of an `argocd proj role add-group` command | {
"resource": ""
} | ||
c161877 | train | // NewRBACPolicyEnforcer returns a new RBAC Enforcer for the Argo CD API Server | {
"resource": ""
} | ||
c161878 | train | // EnforceClaims is an RBAC claims enforcer specific to the Argo CD API server | {
"resource": ""
} | ||
c161879 | train | // enforceProjectToken will check to see the valid token has not yet been revoked in the project | {
"resource": ""
} | ||
c161880 | train | // Run watches for resource changes annotated with application label on all registered clusters and schedule corresponding app refresh. | {
"resource": ""
} | ||
c161881 | train | // NewOIDCProvider initializes an OIDC provider | {
"resource": ""
} | ||
c161882 | train | // oidcProvider lazily initializes, memoizes, and returns the OIDC provider. | {
"resource": ""
} | ||
c161883 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSAuthConfig. | {
"resource": ""
} | ||
c161884 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppProject. | {
"resource": ""
} | ||
c161885 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppProjectList. | {
"resource": ""
} | ||
c161886 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppProjectSpec. | {
"resource": ""
} | ||
c161887 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Application. | {
"resource": ""
} | ||
c161888 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationCondition. | {
"resource": ""
} | ||
c161889 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationDestination. | {
"resource": ""
} | ||
c161890 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationList. | {
"resource": ""
} | ||
c161891 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSource. | {
"resource": ""
} | ||
c161892 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSourceDirectory. | {
"resource": ""
} | ||
c161893 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSourceHelm. | {
"resource": ""
} | ||
c161894 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSourceJsonnet. | {
"resource": ""
} | ||
c161895 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSourceKsonnet. | {
"resource": ""
} | ||
c161896 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSourceKustomize. | {
"resource": ""
} | ||
c161897 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSourcePlugin. | {
"resource": ""
} | ||
c161898 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSpec. | {
"resource": ""
} | ||
c161899 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationStatus. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.