_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c180800
test
// Format formats the values into the provided string
{ "resource": "" }
c180801
test
// Fix coerces types that cannot be formatted by messageformat to string
{ "resource": "" }
c180802
test
// GRPCCode returns the corresponding http status code from an error type
{ "resource": "" }
c180803
test
// GRPCCodeToType converts the gRPC error code to an error type or returns the // Unknown type if not possible.
{ "resource": "" }
c180804
test
// GRPCCode returns the corresponding http status code from an error
{ "resource": "" }
c180805
test
// FromGRPC parses a gRPC error and returns an Error
{ "resource": "" }
c180806
test
// ToGRPC turns an error into a gRPC error
{ "resource": "" }
c180807
test
// isEnabled checks wether or not the namespace is enabled
{ "resource": "" }
c180808
test
// Set updates the namespaces
{ "resource": "" }
c180809
test
// Cause returns the cause of an error
{ "resource": "" }
c180810
test
// pareCode parses a string into a Code or returns 0 if the parse failed
{ "resource": "" }
c180811
test
// UnaryServerInterceptor applies fn to errors returned by server.
{ "resource": "" }
c180812
test
// StreamServerInterceptor applies fn to errors returned by server.
{ "resource": "" }
c180813
test
// UnaryClientInterceptor applies fn to errors recieved by client.
{ "resource": "" }
c180814
test
// StreamClientInterceptor applies fn to errors recieved by client.
{ "resource": "" }
c180815
test
// Interceptor automatically restarts streams on non-expected errors // To do so, the application should create a for-loop around RecvMsg, which // returns the same errors that are received from the server. // // An io.EOF indicates the end of the stream // // To stop the reconnect behaviour, you have to cancel the con...
{ "resource": "" }
c180816
test
// Wrap logrus.Logger
{ "resource": "" }
c180817
test
// NewCounter returns a new rate counter with the given bucket size and retention
{ "resource": "" }
c180818
test
// NewRedisCounter returns a new redis-based counter
{ "resource": "" }
c180819
test
// NewLimiter returns a new limiter
{ "resource": "" }
c180820
test
// WithInsecure returns a copy of the TokenCredentials, allowing insecure transport
{ "resource": "" }
c180821
test
// WithTokenFunc returns TokenCredentials that execute the tokenFunc on each request // The value of v sent to the tokenFunk is the MD value of the supplied k
{ "resource": "" }
c180822
test
// GetRequestMetadata implements credentials.PerRPCCredentials
{ "resource": "" }
c180823
test
// FieldsFromIncomingContext returns peer information and MDLogFields from the given context
{ "resource": "" }
c180824
test
// UnmarshalText implements TextUnmarsheler
{ "resource": "" }
c180825
test
// fromString parses a string into an error type. If the type is invalid, the // Unknown type will be returned as well as an error.
{ "resource": "" }
c180826
test
// Start starts the stat process that will log relevant memory-related stats // to ctx, at an interval determined by interval.
{ "resource": "" }
c180827
test
// NewSimple returns a new Simple Queue
{ "resource": "" }
c180828
test
// Wrap wraps an existing logger, filtering the fields as it goes along // using the provided filters
{ "resource": "" }
c180829
test
// WithFilter creates a new Filtered that will use the extra filters
{ "resource": "" }
c180830
test
// WithField filters the field and passes it on to the wrapped loggers WithField
{ "resource": "" }
c180831
test
// WithFields filters the fields and passes them on to the wrapped loggers WithFields
{ "resource": "" }
c180832
test
// FilterSensitive creates a Filter that filters most sensitive data like passwords, // keys, access_tokens, etc. and replaces them with the elided value
{ "resource": "" }
c180833
test
// SliceFilter lifts the filter to also work on slices. It loses the // type information of the slice elements
{ "resource": "" }
c180834
test
// MapFilter lifts the filter to also work on maps. It loses the type // information of the map fields
{ "resource": "" }
c180835
test
// RestrictFilter restricts the filter to only work on a certain field
{ "resource": "" }
c180836
test
// LowerCaseFilter creates a filter that only get passed lowercase field names
{ "resource": "" }
c180837
test
// newBatchPoints creates new influxdb.BatchPoints with specified bpConf. // Panics on errors.
{ "resource": "" }
c180838
test
// NewSinglePointWriter creates new SinglePointWriter
{ "resource": "" }
c180839
test
// Write creates new influxdb.BatchPoints containing p and delegates that to the writer
{ "resource": "" }
c180840
test
// WithInstanceLimit sets a limit on amount of additional instances spawned by BatchingWriter
{ "resource": "" }
c180841
test
// NewBatchingWriter creates new BatchingWriter. If WithScalingInterval is not specified, DefaultScalingInterval value is used. If WithInstanceLimit is not specified, DefaultInstanceLimit is used.
{ "resource": "" }
c180842
test
// Write delegates p to a running instance of BatchingWriter and spawns new instances as required.
{ "resource": "" }
c180843
test
// MustParseLevel is a convience function that parses the passed in string // as a log level and sets the log level of the apexInterfaceWrapper to the // parsed level. If an error occurs it will handle it with w.Fatal
{ "resource": "" }
c180844
test
// New returns a new Stream with the given buffer size and setup function.
{ "resource": "" }
c180845
test
// SetLogger sets the logger for this streambuffer
{ "resource": "" }
c180846
test
// CloseRecv closes the receive channel
{ "resource": "" }
c180847
test
// Stats of the stream
{ "resource": "" }
c180848
test
// Run the stream. // // This calls the underlying grpc.ClientStreams methods to send and receive messages over the stream. // Run returns the error returned by any of those functions, or context.Canceled if the context is canceled.
{ "resource": "" }
c180849
test
// ServerOptions for logging RPCs
{ "resource": "" }
c180850
test
// ClientOptions for logging RPCs
{ "resource": "" }
c180851
test
// UnaryServerInterceptor logs unary RPCs on the server side
{ "resource": "" }
c180852
test
// StreamServerInterceptor logs streaming RPCs on the server side
{ "resource": "" }
c180853
test
// UnaryClientInterceptor logs unary RPCs on the client side
{ "resource": "" }
c180854
test
// StreamClientInterceptor logs streaming RPCs on the client side
{ "resource": "" }
c180855
test
// defaults applies defaults to the config.
{ "resource": "" }
c180856
test
// Flush the current `batch`.
{ "resource": "" }
c180857
test
// New handler.
{ "resource": "" }
c180858
test
// HandleLog implements log.Handler.
{ "resource": "" }
c180859
test
// New returns a new Random, in most cases you can also just use the global funcs
{ "resource": "" }
c180860
test
// Names returns the names of all variables within the template.
{ "resource": "" }
c180861
test
// String returns the string representation of a PerfDatum, suitable for // check output.
{ "resource": "" }
c180862
test
// RenderPerfdata accepts a slice of PerfDatum objects and returns their // concatenated string representations in a form suitable to append to // the first line of check output.
{ "resource": "" }
c180863
test
// Exit is a standalone exit function for simple checks without multiple results // or perfdata.
{ "resource": "" }
c180864
test
// NewCheckWithOptions returns an empty Check object with // caller-specified behavioural modifications. See CheckOptions.
{ "resource": "" }
c180865
test
// AddResult adds a check result. This will not terminate the check. If // status is the highest yet reported, this will update the check's // final return status.
{ "resource": "" }
c180866
test
// AddResultf functions as AddResult, but takes a printf-style format // string and arguments.
{ "resource": "" }
c180867
test
// String representation of the check results, suitable for output and // parsing by Nagios.
{ "resource": "" }
c180868
test
// Exitf takes a status plus a format string, and a list of // parameters to pass to Sprintf. It then immediately outputs and exits.
{ "resource": "" }
c180869
test
// Criticalf is a shorthand function which exits the check with status // CRITICAL and the message provided.
{ "resource": "" }
c180870
test
// Unknownf is a shorthand function which exits the check with status // UNKNOWN and the message provided.
{ "resource": "" }
c180871
test
// NewDefaultStatusPolicy returns a status policy that assigns relative // severity in accordance with conventional Nagios plugin return codes. // Statuses associated with higher return codes are more severe.
{ "resource": "" }
c180872
test
// NewStatusPolicy returns a status policy that assigns relative // severity in accordance with a user-configurable prioritised slice. // Check statuses must be listed in ascending severity order.
{ "resource": "" }
c180873
test
// ParseRange returns a new range object and nil if the given range definition was // valid, or nil and an error if it was invalid.
{ "resource": "" }
c180874
test
// Check returns true if an alert should be raised based on the range (if the // value is outside the range for normal semantics, or if the value is // inside the range for inverted semantics ('@-semantics')).
{ "resource": "" }
c180875
test
// CheckInt is a convenience method which does an unchecked type // conversion from an int to a float64.
{ "resource": "" }
c180876
test
// CheckUint64 is a convenience method which does an unchecked type // conversion from an uint64 to a float64.
{ "resource": "" }
c180877
test
// NewClient returns a configured Rundeck client.
{ "resource": "" }
c180878
test
// GetKeyMeta returns the metadata for the key at the given keystore path.
{ "resource": "" }
c180879
test
// GetKeysInDirMeta returns the metadata for the keys and subdirectories within // the directory at the given keystore path.
{ "resource": "" }
c180880
test
// GetKeyContent retrieves and returns the content of the key at the given keystore path. // Private keys are write-only, so they cannot be retrieved via this interface.
{ "resource": "" }
c180881
test
// GetJobSummariesForProject returns summaries of the jobs belonging to the named project.
{ "resource": "" }
c180882
test
// GetJobsForProject returns the full job details of the jobs belonging to the named project.
{ "resource": "" }
c180883
test
// GetJob returns the full job details of the job with the given id.
{ "resource": "" }
c180884
test
// CreateJob creates a new job based on the provided structure.
{ "resource": "" }
c180885
test
// CreateOrUpdateJob takes a job detail structure which has its ID set and either updates // an existing job with the same id or creates a new job with that id.
{ "resource": "" }
c180886
test
// DeleteJob deletes the job with the given id.
{ "resource": "" }
c180887
test
// JobSummary produces a JobSummary instance with values populated from the import result. // The summary object won't have its Description populated, since import results do not // include descriptions.
{ "resource": "" }
c180888
test
// GetSystemInfo retrieves and returns miscellaneous system information about the Rundeck server // and the machine it's running on.
{ "resource": "" }
c180889
test
// DateTime produces a time.Time object from a SystemTimestamp object.
{ "resource": "" }
c180890
test
// GetAllProjects retrieves and returns all of the projects defined in the Rundeck server.
{ "resource": "" }
c180891
test
// GetProject retrieves and returns the named project.
{ "resource": "" }
c180892
test
// CreateProject creates a new, empty project.
{ "resource": "" }
c180893
test
// DeleteProject deletes a project and all of its jobs.
{ "resource": "" }
c180894
test
// SetProjectConfig replaces the configuration of the named project.
{ "resource": "" }
c180895
test
//NewClient is a constructor for Client object
{ "resource": "" }
c180896
test
// NewClientbyToken is a constructor for Client object using bearer tokens for // authentication instead of username, password
{ "resource": "" }
c180897
test
// SetDepth sets depth parameter for api calls
{ "resource": "" }
c180898
test
//ListDatacenters lists all data centers
{ "resource": "" }
c180899
test
//CreateDatacenter creates a data center
{ "resource": "" }