_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c161700
train
// MarshalLocalYAMLFile writes JSON or YAML to a file on disk. // The caller is responsible for checking error return values.
{ "resource": "" }
c161701
train
// UnmarshalLocalFile retrieves JSON or YAML from a file on disk. // The caller is responsible for checking error return values.
{ "resource": "" }
c161702
train
// UnmarshalRemoteFile retrieves JSON or YAML through a GET request. // The caller is responsible for checking error return values.
{ "resource": "" }
c161703
train
// ReadRemoteFile issues a GET request to retrieve the contents of the specified URL as a byte array. // The caller is responsible for checking error return values.
{ "resource": "" }
c161704
train
// FormatAppConditions returns string representation of give app condition list
{ "resource": "" }
c161705
train
// FilterByProjects returns applications which belongs to the specified project
{ "resource": "" }
c161706
train
// RefreshApp updates the refresh annotation of an application to coerce the controller to process it
{ "resource": "" }
c161707
train
// WaitForRefresh watches an application until its comparison timestamp is after the refresh timestamp // If refresh timestamp is not present, will use current timestamp at time of call
{ "resource": "" }
c161708
train
// GetAppProject returns a project from an application
{ "resource": "" }
c161709
train
// verifyAppYAML verifies that a ksonnet app.yaml is functional
{ "resource": "" }
c161710
train
// verifyHelmChart verifies a helm chart is functional // verifyHelmChart verifies a helm chart is functional
{ "resource": "" }
c161711
train
// verifyGenerateManifests verifies a repo path can generate manifests
{ "resource": "" }
c161712
train
// SetAppOperation updates an application with the specified operation, retrying conflict errors
{ "resource": "" }
c161713
train
// ContainsSyncResource determines if the given resource exists in the provided slice of sync operation resources.
{ "resource": "" }
c161714
train
// Get takes name of the appProject, and returns the corresponding appProject object, and an error if there is any.
{ "resource": "" }
c161715
train
// List takes label and field selectors, and returns the list of AppProjects that match those selectors.
{ "resource": "" }
c161716
train
// Watch returns a watch.Interface that watches the requested appProjects.
{ "resource": "" }
c161717
train
// Delete takes name of the appProject and deletes it. Returns an error if one occurs.
{ "resource": "" }
c161718
train
// Patch applies the patch and returns the patched appProject.
{ "resource": "" }
c161719
train
// NewMetricsServer returns a new prometheus server which collects application metrics
{ "resource": "" }
c161720
train
// IncSync increments the sync counter for an application
{ "resource": "" }
c161721
train
// IncKubernetesRequest increments the kubernetes requests counter for an application
{ "resource": "" }
c161722
train
// IncReconcile increments the reconcile counter for an application
{ "resource": "" }
c161723
train
// NewAppRegistry creates a new prometheus registry that collects applications
{ "resource": "" }
c161724
train
// Claims returns the standard claims from the JWT claims
{ "resource": "" }
c161725
train
// ReadLocalConfig loads up the local configuration file. Returns nil if config does not exist
{ "resource": "" }
c161726
train
// WriteLocalConfig writes a new local configuration file.
{ "resource": "" }
c161727
train
// ResolveContext resolves the specified context. If unspecified, resolves the current context
{ "resource": "" }
c161728
train
// DefaultConfigDir returns the local configuration path for settings such as cached authentication tokens.
{ "resource": "" }
c161729
train
// DefaultLocalConfigPath returns the local configuration path for settings such as cached authentication tokens.
{ "resource": "" }
c161730
train
// BestEffortSystemCertPool returns system cert pool as best effort, otherwise an empty cert pool
{ "resource": "" }
c161731
train
// generatePEM generates a new certificate and key and returns it as PEM encoded bytes
{ "resource": "" }
c161732
train
// GenerateX509KeyPair generates a X509 key pair
{ "resource": "" }
c161733
train
// EncodeX509KeyPair encodes a TLS Certificate into its pem encoded format for storage
{ "resource": "" }
c161734
train
// EncodeX509KeyPairString encodes a TLS Certificate into its pem encoded string format
{ "resource": "" }
c161735
train
// NewExportCommand defines a new command for exporting Kubernetes and Argo CD resources.
{ "resource": "" }
c161736
train
// getReferencedSecrets examines the argocd-cm config for any referenced repo secrets and returns a // map of all referenced secrets.
{ "resource": "" }
c161737
train
// export writes the unstructured object and removes extraneous cruft from output before writing
{ "resource": "" }
c161738
train
// NewClusterConfig returns a new instance of `argocd-util kubeconfig` command
{ "resource": "" }
c161739
train
// NewServer returns a new instance of the Application service
{ "resource": "" }
c161740
train
// appRBACName formats fully qualified application name for RBAC check
{ "resource": "" }
c161741
train
// List returns list of applications
{ "resource": "" }
c161742
train
// Create creates an application
{ "resource": "" }
c161743
train
// GetManifests returns application manifests
{ "resource": "" }
c161744
train
// Get returns an application by name
{ "resource": "" }
c161745
train
// ListResourceEvents returns a list of event resources
{ "resource": "" }
c161746
train
// Update updates an application
{ "resource": "" }
c161747
train
// UpdateSpec updates an application spec and filters out any invalid parameter overrides
{ "resource": "" }
c161748
train
// Patch patches an application
{ "resource": "" }
c161749
train
// Delete removes an application and all associated resources
{ "resource": "" }
c161750
train
// PatchResource patches a resource
{ "resource": "" }
c161751
train
// DeleteResource deletes a specificed resource
{ "resource": "" }
c161752
train
// Sync syncs an application to its target state
{ "resource": "" }
c161753
train
// resolveRevision resolves the git revision specified either in the sync request, or the // application source, into a concrete commit SHA that will be used for a sync operation.
{ "resource": "" }
c161754
train
// replaceMapSecrets takes a json object and recursively looks for any secret key references in the // object and replaces the value with the secret value
{ "resource": "" }
c161755
train
// initializeDefaultProject creates the default project if it does not already exist
{ "resource": "" }
c161756
train
// NewServer returns a new instance of the Argo CD API server
{ "resource": "" }
c161757
train
// Shutdown stops the Argo CD server
{ "resource": "" }
c161758
train
// watchSettings watches the configmap and secret for any setting updates that would warrant a // restart of the API server.
{ "resource": "" }
c161759
train
// TranslateGrpcCookieHeader conditionally sets a cookie on the response.
{ "resource": "" }
c161760
train
// registerDexHandlers will register dex HTTP handlers, creating the the OAuth client app
{ "resource": "" }
c161761
train
// newRedirectServer returns an HTTP server which does a 307 redirect to the HTTPS server
{ "resource": "" }
c161762
train
// newAPIServerMetricsServer returns HTTP server which serves prometheus metrics on gRPC requests
{ "resource": "" }
c161763
train
// newStaticAssetsHandler returns an HTTP handler to serve UI static assets
{ "resource": "" }
c161764
train
// mustRegisterGWHandler is a convenience function to register a gateway handler
{ "resource": "" }
c161765
train
// Authenticate checks for the presence of a valid token when accessing server-side resources.
{ "resource": "" }
c161766
train
// getToken extracts the token from gRPC metadata or cookie headers
{ "resource": "" }
c161767
train
// MakeCookieMetadata generates a string representing a Web cookie. Yum!
{ "resource": "" }
c161768
train
// Destination returns the deployment destination for an environment in app spec data
{ "resource": "" }
c161769
train
// KsonnetVersion returns the version of ksonnet used when running ksonnet commands
{ "resource": "" }
c161770
train
// NewKsonnetApp tries to create a new wrapper to run commands on the `ks` command-line tool.
{ "resource": "" }
c161771
train
// Show generates a concatenated list of Kubernetes manifests in the given environment.
{ "resource": "" }
c161772
train
// Destination returns the deployment destination for an environment
{ "resource": "" }
c161773
train
// ListParams returns list of ksonnet parameters
{ "resource": "" }
c161774
train
// SetComponentParams updates component parameter in specified environment.
{ "resource": "" }
c161775
train
// Get returns Argo CD settings
{ "resource": "" }
c161776
train
// AuthFuncOverride disables authentication for settings service
{ "resource": "" }
c161777
train
// NewDecoder implements gwruntime.Marshaler.
{ "resource": "" }
c161778
train
// NewEncoder implements gwruntime.Marshaler.
{ "resource": "" }
c161779
train
// Unmarshal implements gwruntime.Marshaler.
{ "resource": "" }
c161780
train
// RemoveMapFields remove all non-existent fields in the live that don't exist in the config
{ "resource": "" }
c161781
train
// MustMarshal is a convenience function to marshal an object successfully or panic
{ "resource": "" }
c161782
train
// NewApplicationInformer constructs a new informer for Application type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server.
{ "resource": "" }
c161783
train
// NewFilteredApplicationInformer constructs a new informer for Application type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server.
{ "resource": "" }
c161784
train
// NewDB returns a new instance of the argo database
{ "resource": "" }
c161785
train
// removeSuffix idempotently removes a given suffix
{ "resource": "" }
c161786
train
// IsSSHURL returns true if supplied URL is SSH URL
{ "resource": "" }
c161787
train
// NewAppProjectInformer constructs a new informer for AppProject type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server.
{ "resource": "" }
c161788
train
// RegisterVersionServiceHandler registers the http handlers for service VersionService to "mux". // The handlers forward requests to the grpc endpoint over "conn".
{ "resource": "" }
c161789
train
// ListHelmRepoURLs lists configured helm repositories
{ "resource": "" }
c161790
train
// RegisterProjectServiceHandler registers the http handlers for service ProjectService to "mux". // The handlers forward requests to the grpc endpoint over "conn".
{ "resource": "" }
c161791
train
// startMissingWatches lists supported cluster resources and start watching for changes unless watch is already running
{ "resource": "" }
c161792
train
// NewServer returns a new instance of the Cluster service
{ "resource": "" }
c161793
train
// List returns list of clusters
{ "resource": "" }
c161794
train
// Get returns a cluster from a query
{ "resource": "" }
c161795
train
// Update updates a cluster
{ "resource": "" }
c161796
train
// Generate OpenAPI spec definitions for Rollout Resource
{ "resource": "" }
c161797
train
// NewClient creates a new API client from a set of config options.
{ "resource": "" }
c161798
train
// OIDCConfig returns OAuth2 client config and a OpenID Provider based on Argo CD settings // ctx can hold an appropriate http.Client to use for the exchange
{ "resource": "" }
c161799
train
// HTTPClient returns a HTTPClient appropriate for performing OAuth, based on TLS settings
{ "resource": "" }