_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c162000 | train | // Subscribe registers a channel in which to subscribe to settings updates | {
"resource": ""
} | ||
c162001 | train | // Unsubscribe unregisters a channel from receiving of settings updates | {
"resource": ""
} | ||
c162002 | train | // InitializeSettings is used to initialize empty admin password, signature, certificate etc if missing | {
"resource": ""
} | ||
c162003 | train | // NewServer returns a new instance of the Project service | {
"resource": ""
} | ||
c162004 | train | // CreateToken creates a new token to access a project | {
"resource": ""
} | ||
c162005 | train | // DeleteToken deletes a token in a project | {
"resource": ""
} | ||
c162006 | train | // List returns list of projects | {
"resource": ""
} | ||
c162007 | train | // Get returns a project by name | {
"resource": ""
} | ||
c162008 | train | // Delete deletes a project | {
"resource": ""
} | ||
c162009 | train | // ServeSwaggerUI serves the Swagger UI and JSON spec. | {
"resource": ""
} | ||
c162010 | train | // newAppProjects returns a AppProjects | {
"resource": ""
} | ||
c162011 | train | // NewApplicationResourceActionsCommand returns a new instance of an `argocd app actions` command | {
"resource": ""
} | ||
c162012 | train | // NewApplicationResourceActionsListCommand returns a new instance of an `argocd app actions list` command | {
"resource": ""
} | ||
c162013 | train | // NewApplicationResourceActionsRunCommand returns a new instance of an `argocd app actions run` command | {
"resource": ""
} | ||
c162014 | train | // HasIdentity determines whether a sync operation is identified by a manifest. | {
"resource": ""
} | ||
c162015 | train | // ProjectPoliciesString returns Casbin formated string of a project's policies for each role | {
"resource": ""
} | ||
c162016 | train | // SetCascadedDeletion sets or remove resources finalizer | {
"resource": ""
} | ||
c162017 | train | // GetErrorConditions returns list of application error conditions | {
"resource": ""
} | ||
c162018 | train | // Equals compares two instances of ApplicationSource and return true if instances are equal. | {
"resource": ""
} | ||
c162019 | train | // Equals compares two instances of ApplicationDestination and return true if instances are equal. | {
"resource": ""
} | ||
c162020 | train | // GetProject returns the application's project. This is preferred over spec.Project which may be empty | {
"resource": ""
} | ||
c162021 | train | // IsSourcePermitted validates if the provided application's source is a one of the allowed sources for the project. | {
"resource": ""
} | ||
c162022 | train | // IsDestinationPermitted validates if the provided application's destination is one of the allowed destinations for the project | {
"resource": ""
} | ||
c162023 | train | // RESTConfig returns a go-client REST config from cluster | {
"resource": ""
} | ||
c162024 | train | // NewSessionManager creates a new session manager from Argo CD settings | {
"resource": ""
} | ||
c162025 | train | // Parse tries to parse the provided string and returns the token claims for local superuser login. | {
"resource": ""
} | ||
c162026 | train | // VerifyToken verifies if a token is correct. Tokens can be issued either from us or by an IDP.
// We choose how to verify based on the issuer. | {
"resource": ""
} | ||
c162027 | train | // Username is a helper to extract a human readable username from a context | {
"resource": ""
} | ||
c162028 | train | // PanicLoggerUnaryServerInterceptor returns a new unary server interceptor for recovering from panics and returning error | {
"resource": ""
} | ||
c162029 | train | // PanicLoggerStreamServerInterceptor returns a new streaming server interceptor for recovering from panics and returning error | {
"resource": ""
} | ||
c162030 | train | // UserAgentUnaryServerInterceptor returns a UnaryServerInterceptor which enforces a minimum client
// version in the user agent | {
"resource": ""
} | ||
c162031 | train | // UserAgentStreamServerInterceptor returns a StreamServerInterceptor which enforces a minimum client
// version in the user agent | {
"resource": ""
} | ||
c162032 | train | // verifyPermittedHooks verifies all hooks are permitted in the project | {
"resource": ""
} | ||
c162033 | train | // runHooks iterates & filters the target manifests for resources of the specified hook type, then
// creates the resource. Updates the sc.opRes.hooks with the current status. Returns whether or not
// we should continue to the next hook phase. | {
"resource": ""
} | ||
c162034 | train | // syncNonHookTasks syncs or prunes the objects that are not handled by hooks using an apply sync.
// returns true if the sync was successful | {
"resource": ""
} | ||
c162035 | train | // enforceHookDeletePolicy examines the hook deletion policy of a object and deletes it based on the status | {
"resource": ""
} | ||
c162036 | train | // isHookType tells whether or not the supplied object is a hook of the specified type | {
"resource": ""
} | ||
c162037 | train | // newHookStatus returns a hook status from an _live_ unstructured object | {
"resource": ""
} | ||
c162038 | train | // isRunnable returns if the resource object is a runnable type which needs to be terminated | {
"resource": ""
} | ||
c162039 | train | // updateHookStatus updates the status of a hook. Returns true if the hook was modified | {
"resource": ""
} | ||
c162040 | train | // areHooksCompletedSuccessful checks if all the hooks of the specified type are completed and successful | {
"resource": ""
} | ||
c162041 | train | // Get takes name of the application, and returns the corresponding application object, and an error if there is any. | {
"resource": ""
} | ||
c162042 | train | // List takes label and field selectors, and returns the list of Applications that match those selectors. | {
"resource": ""
} | ||
c162043 | train | // Watch returns a watch.Interface that watches the requested applications. | {
"resource": ""
} | ||
c162044 | train | // Delete takes name of the application and deletes it. Returns an error if one occurs. | {
"resource": ""
} | ||
c162045 | train | // Patch applies the patch and returns the patched application. | {
"resource": ""
} | ||
c162046 | train | // List lists all Applications in the indexer. | {
"resource": ""
} | ||
c162047 | train | // Applications returns an object that can list and get Applications. | {
"resource": ""
} | ||
c162048 | train | // List lists all Applications in the indexer for a given namespace. | {
"resource": ""
} | ||
c162049 | train | // useGRPCProxy ensures that grpc proxy server is started and return closer which stops server when no one uses it | {
"resource": ""
} | ||
c162050 | train | // RegisterSettingsServiceHandler registers the http handlers for service SettingsService to "mux".
// The handlers forward requests to the grpc endpoint over "conn". | {
"resource": ""
} | ||
c162051 | train | // ErrorCodeUnaryServerInterceptor replaces Kubernetes errors with relevant gRPC equivalents, if any. | {
"resource": ""
} | ||
c162052 | train | // ErrorCodeStreamServerInterceptor replaces Kubernetes errors with relevant gRPC equivalents, if any. | {
"resource": ""
} | ||
c162053 | train | // NewService returns a new instance of the Manifest service | {
"resource": ""
} | ||
c162054 | train | // ListDir lists the contents of a GitHub repo | {
"resource": ""
} | ||
c162055 | train | // tempRepoPath returns a formulated temporary directory location to clone a repository | {
"resource": ""
} | ||
c162056 | train | // GetAppSourceType returns explicit application source type or examines a directory and determines its application source type | {
"resource": ""
} | ||
c162057 | train | // checkoutRevision is a convenience function to initialize a repo, fetch, and checkout a revision
// Returns the 40 character commit SHA after the checkout has been performed | {
"resource": ""
} | ||
c162058 | train | // ksShow runs `ks show` in an app directory after setting any component parameter overrides | {
"resource": ""
} | ||
c162059 | train | // findManifests looks at all yaml files in a directory and unmarshals them into a list of unstructured objects | {
"resource": ""
} | ||
c162060 | train | // pathExists reports whether the file or directory at the named concatenation of paths exists. | {
"resource": ""
} | ||
c162061 | train | // newClientResolveRevision is a helper to perform the common task of instantiating a git client
// and resolving a revision to a commit SHA | {
"resource": ""
} | ||
c162062 | train | // HandleEvent handles webhook events for repo push events | {
"resource": ""
} | ||
c162063 | train | // NewReloginCommand returns a new instance of `argocd relogin` command | {
"resource": ""
} | ||
c162064 | train | // AppProjects returns a AppProjectInformer. | {
"resource": ""
} | ||
c162065 | train | // Applications returns a ApplicationInformer. | {
"resource": ""
} | ||
c162066 | train | // DeleteFile is best effort deletion of a file | {
"resource": ""
} | ||
c162067 | train | // MakeSignature generates a cryptographically-secure pseudo-random token, based on a given number of random bytes, for signing purposes. | {
"resource": ""
} | ||
c162068 | train | // RetryUntilSucceed keep retrying given action with specified timeout until action succeed or specified context is done. | {
"resource": ""
} | ||
c162069 | train | // ExecuteHealthLua runs the lua script to generate the health status of a resource | {
"resource": ""
} | ||
c162070 | train | // GetHealthScript attempts to read lua script from config and then filesystem for that resource | {
"resource": ""
} | ||
c162071 | train | // cleanReturnedObj Lua cannot distinguish an empty table as an array or map, and the library we are using choose to
// decoded an empty table into an empty array. This function prevents the lua scripts from unintentionally changing an
// empty struct into empty arrays | {
"resource": ""
} | ||
c162072 | train | // cleanReturnedArray allows Argo CD to recurse into nested arrays when checking for unintentional empty struct to
// empty array conversions. | {
"resource": ""
} | ||
c162073 | train | // GetResourceAction attempts to read lua script from config and then filesystem for that resource | {
"resource": ""
} | ||
c162074 | train | // NewProjectCommand returns a new instance of an `argocd proj` command | {
"resource": ""
} | ||
c162075 | train | // NewProjectCreateCommand returns a new instance of an `argocd proj create` command | {
"resource": ""
} | ||
c162076 | train | // NewProjectSetCommand returns a new instance of an `argocd proj set` command | {
"resource": ""
} | ||
c162077 | train | // NewProjectAddDestinationCommand returns a new instance of an `argocd proj add-destination` command | {
"resource": ""
} | ||
c162078 | train | // NewProjectAllowNamespaceResourceCommand returns a new instance of an `deny-cluster-resources` command | {
"resource": ""
} | ||
c162079 | train | // NewProjectDenyNamespaceResourceCommand returns a new instance of an `argocd proj deny-namespace-resource` command | {
"resource": ""
} | ||
c162080 | train | // NewProjectRemoveSourceCommand returns a new instance of an `argocd proj remove-src` command | {
"resource": ""
} | ||
c162081 | train | // NewProjectDeleteCommand returns a new instance of an `argocd proj delete` command | {
"resource": ""
} | ||
c162082 | train | // NewProjectListCommand returns a new instance of an `argocd proj list` command | {
"resource": ""
} | ||
c162083 | train | // NewDiffNormalizer creates diff normalizer which removes ignored fields according to given application spec and resource overrides | {
"resource": ""
} | ||
c162084 | train | // Normalize removes fields from supplied resource using json paths from matching items of specified resources ignored differences list | {
"resource": ""
} | ||
c162085 | train | // subtractStrings returns set a minus elements of set b. | {
"resource": ""
} | ||
c162086 | train | // PersistSegmentBase persists SegmentBase in the zap file format. | {
"resource": ""
} | ||
c162087 | train | // NewTermRangeQuery creates a new Query for ranges
// of text term values.
// Either, but not both endpoints can be nil.
// The minimum value is inclusive.
// The maximum value is exclusive. | {
"resource": ""
} | ||
c162088 | train | // NewTermRangeInclusiveQuery creates a new Query for ranges
// of numeric values.
// Either, but not both endpoints can be nil.
// Control endpoint inclusion with inclusiveMin, inclusiveMax. | {
"resource": ""
} | ||
c162089 | train | // LevenshteinDistanceMax same as LevenshteinDistance but
// attempts to bail early once we know the distance
// will be greater than max
// in which case the first return val will be the max
// and the second will be true, indicating max was exceeded | {
"resource": ""
} | ||
c162090 | train | // Compare will compare two document matches using the specified sort order
// if both are numbers, we avoid converting back to term | {
"resource": ""
} | ||
c162091 | train | // UpdateVisitor notifies this sort field that in this document
// this field has the specified term | {
"resource": ""
} | ||
c162092 | train | // filterTermsByType attempts to make one pass on the terms
// if we are in auto-mode AND all the terms look like prefix-coded numbers
// return only the terms which had shift of 0
// if we are in explicit number or date mode, return only valid
// prefix coded numbers with shift of 0 | {
"resource": ""
} | ||
c162093 | train | // NewSortGeoDistance creates SearchSort instance for sorting documents by
// their distance from the specified point. | {
"resource": ""
} | ||
c162094 | train | // filterTermsByType attempts to make one pass on the terms
// return only valid prefix coded numbers with shift of 0 | {
"resource": ""
} | ||
c162095 | train | // Deinterleave the 32-bit value starting at position 0
// to get the other 32-bit value, shift it by 1 first | {
"resource": ""
} | ||
c162096 | train | // analyzerNameForPath attempts to first find the field
// described by this path, then returns the analyzer
// configured for that field | {
"resource": ""
} | ||
c162097 | train | // documentMappingForPath only returns EXACT matches for a sub document
// or for an explicitly mapped field, if you want to find the
// closest document mapping to a field not explicitly mapped
// use closestDocMapping | {
"resource": ""
} | ||
c162098 | train | // closestDocMapping findest the most specific document mapping that matches
// part of the provided path | {
"resource": ""
} | ||
c162099 | train | // AddSubDocumentMapping adds the provided DocumentMapping as a sub-mapping
// for the specified named subsection. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.