_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c180800 | // Format formats the values into the provided string | |
c180801 | // Fix coerces types that cannot be formatted by messageformat to string | |
c180802 | // GRPCCode returns the corresponding http status code from an error type | |
c180803 | // GRPCCodeToType converts the gRPC error code to an error type or returns the
// Unknown type if not possible. | |
c180804 | // GRPCCode returns the corresponding http status code from an error | |
c180805 | // FromGRPC parses a gRPC error and returns an Error | |
c180806 | // ToGRPC turns an error into a gRPC error | |
c180807 | // isEnabled checks wether or not the namespace is enabled | |
c180808 | // Set updates the namespaces | |
c180809 | // Cause returns the cause of an error | |
c180810 | // pareCode parses a string into a Code or returns 0 if the parse failed | |
c180811 | // UnaryServerInterceptor applies fn to errors returned by server. | |
c180812 | // StreamServerInterceptor applies fn to errors returned by server. | |
c180813 | // UnaryClientInterceptor applies fn to errors recieved by client. | |
c180814 | // StreamClientInterceptor applies fn to errors recieved by client. | |
c180815 | // 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... | |
c180816 | // Wrap logrus.Logger | |
c180817 | // NewCounter returns a new rate counter with the given bucket size and retention | |
c180818 | // NewRedisCounter returns a new redis-based counter | |
c180819 | // NewLimiter returns a new limiter | |
c180820 | // WithInsecure returns a copy of the TokenCredentials, allowing insecure transport | |
c180821 | // 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 | |
c180822 | // GetRequestMetadata implements credentials.PerRPCCredentials | |
c180823 | // FieldsFromIncomingContext returns peer information and MDLogFields from the given context | |
c180824 | // UnmarshalText implements TextUnmarsheler | |
c180825 | // fromString parses a string into an error type. If the type is invalid, the
// Unknown type will be returned as well as an error. | |
c180826 | // Start starts the stat process that will log relevant memory-related stats
// to ctx, at an interval determined by interval. | |
c180827 | // NewSimple returns a new Simple Queue | |
c180828 | // Wrap wraps an existing logger, filtering the fields as it goes along
// using the provided filters | |
c180829 | // WithFilter creates a new Filtered that will use the extra filters | |
c180830 | // WithField filters the field and passes it on to the wrapped loggers WithField | |
c180831 | // WithFields filters the fields and passes them on to the wrapped loggers WithFields | |
c180832 | // FilterSensitive creates a Filter that filters most sensitive data like passwords,
// keys, access_tokens, etc. and replaces them with the elided value | |
c180833 | // SliceFilter lifts the filter to also work on slices. It loses the
// type information of the slice elements | |
c180834 | // MapFilter lifts the filter to also work on maps. It loses the type
// information of the map fields | |
c180835 | // RestrictFilter restricts the filter to only work on a certain field | |
c180836 | // LowerCaseFilter creates a filter that only get passed lowercase field names | |
c180837 | // newBatchPoints creates new influxdb.BatchPoints with specified bpConf.
// Panics on errors. | |
c180838 | // NewSinglePointWriter creates new SinglePointWriter | |
c180839 | // Write creates new influxdb.BatchPoints containing p and delegates that to the writer | |
c180840 | // WithInstanceLimit sets a limit on amount of additional instances spawned by BatchingWriter | |
c180841 | // NewBatchingWriter creates new BatchingWriter. If WithScalingInterval is not specified, DefaultScalingInterval value is used. If WithInstanceLimit is not specified, DefaultInstanceLimit is used. | |
c180842 | // Write delegates p to a running instance of BatchingWriter and spawns new instances as required. | |
c180843 | // 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 | |
c180844 | // New returns a new Stream with the given buffer size and setup function. | |
c180845 | // SetLogger sets the logger for this streambuffer | |
c180846 | // CloseRecv closes the receive channel | |
c180847 | // Stats of the stream | |
c180848 | // 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. | |
c180849 | // ServerOptions for logging RPCs | |
c180850 | // ClientOptions for logging RPCs | |
c180851 | // UnaryServerInterceptor logs unary RPCs on the server side | |
c180852 | // StreamServerInterceptor logs streaming RPCs on the server side | |
c180853 | // UnaryClientInterceptor logs unary RPCs on the client side | |
c180854 | // StreamClientInterceptor logs streaming RPCs on the client side | |
c180855 | // defaults applies defaults to the config. | |
c180856 | // Flush the current `batch`. | |
c180857 | // New handler. | |
c180858 | // HandleLog implements log.Handler. | |
c180859 | // New returns a new Random, in most cases you can also just use the global funcs | |
c180860 | // Names returns the names of all variables within the template. | |
c180861 | // String returns the string representation of a PerfDatum, suitable for
// check output. | |
c180862 | // 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. | |
c180863 | // Exit is a standalone exit function for simple checks without multiple results
// or perfdata. | |
c180864 | // NewCheckWithOptions returns an empty Check object with
// caller-specified behavioural modifications. See CheckOptions. | |
c180865 | // 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. | |
c180866 | // AddResultf functions as AddResult, but takes a printf-style format
// string and arguments. | |
c180867 | // String representation of the check results, suitable for output and
// parsing by Nagios. | |
c180868 | // Exitf takes a status plus a format string, and a list of
// parameters to pass to Sprintf. It then immediately outputs and exits. | |
c180869 | // Criticalf is a shorthand function which exits the check with status
// CRITICAL and the message provided. | |
c180870 | // Unknownf is a shorthand function which exits the check with status
// UNKNOWN and the message provided. | |
c180871 | // 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. | |
c180872 | // 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. | |
c180873 | // ParseRange returns a new range object and nil if the given range definition was
// valid, or nil and an error if it was invalid. | |
c180874 | // 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')). | |
c180875 | // CheckInt is a convenience method which does an unchecked type
// conversion from an int to a float64. | |
c180876 | // CheckUint64 is a convenience method which does an unchecked type
// conversion from an uint64 to a float64. | |
c180877 | // NewClient returns a configured Rundeck client. | |
c180878 | // GetKeyMeta returns the metadata for the key at the given keystore path. | |
c180879 | // GetKeysInDirMeta returns the metadata for the keys and subdirectories within
// the directory at the given keystore path. | |
c180880 | // 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. | |
c180881 | // GetJobSummariesForProject returns summaries of the jobs belonging to the named project. | |
c180882 | // GetJobsForProject returns the full job details of the jobs belonging to the named project. | |
c180883 | // GetJob returns the full job details of the job with the given id. | |
c180884 | // CreateJob creates a new job based on the provided structure. | |
c180885 | // 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. | |
c180886 | // DeleteJob deletes the job with the given id. | |
c180887 | // 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. | |
c180888 | // GetSystemInfo retrieves and returns miscellaneous system information about the Rundeck server
// and the machine it's running on. | |
c180889 | // DateTime produces a time.Time object from a SystemTimestamp object. | |
c180890 | // GetAllProjects retrieves and returns all of the projects defined in the Rundeck server. | |
c180891 | // GetProject retrieves and returns the named project. | |
c180892 | // CreateProject creates a new, empty project. | |
c180893 | // DeleteProject deletes a project and all of its jobs. | |
c180894 | // SetProjectConfig replaces the configuration of the named project. | |
c180895 | //NewClient is a constructor for Client object | |
c180896 | // NewClientbyToken is a constructor for Client object using bearer tokens for
// authentication instead of username, password | |
c180897 | // SetDepth sets depth parameter for api calls | |
c180898 | //ListDatacenters lists all data centers | |
c180899 | //CreateDatacenter creates a data center |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.