_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c16700
train
// Verify verifies the yaml signature.
{ "resource": "" }
c16701
train
// Encrypt returns an encrypted secret.
{ "resource": "" }
c16702
train
// Secret returns a secret by name.
{ "resource": "" }
c16703
train
// SecretList returns a list of all repository secrets.
{ "resource": "" }
c16704
train
// SecretCreate creates a secret.
{ "resource": "" }
c16705
train
// SecretUpdate updates a secret.
{ "resource": "" }
c16706
train
// SecretDelete deletes a secret.
{ "resource": "" }
c16707
train
// OrgSecret returns a secret by name.
{ "resource": "" }
c16708
train
// OrgSecretList returns a list of all repository secrets.
{ "resource": "" }
c16709
train
// OrgSecretListAll returns a list of all repository secrets.
{ "resource": "" }
c16710
train
// OrgSecretCreate creates a registry.
{ "resource": "" }
c16711
train
// OrgSecretDelete deletes a secret.
{ "resource": "" }
c16712
train
// Cron returns a cronjob by name.
{ "resource": "" }
c16713
train
// CronList returns a list of all repository cronjobs.
{ "resource": "" }
c16714
train
// CronCreate creates a cronjob.
{ "resource": "" }
c16715
train
// CronDisable disables a cronjob.
{ "resource": "" }
c16716
train
// CronDelete deletes a cronjob.
{ "resource": "" }
c16717
train
// Queue returns a list of enqueued builds.
{ "resource": "" }
c16718
train
// QueueResume resumes queue operations.
{ "resource": "" }
c16719
train
// QueuePause pauses queue operations.
{ "resource": "" }
c16720
train
// Node returns a node by name.
{ "resource": "" }
c16721
train
// NodeList returns a list of all nodes.
{ "resource": "" }
c16722
train
// NodeCreate creates a node.
{ "resource": "" }
c16723
train
// NodeDelete deletes a node.
{ "resource": "" }
c16724
train
// NodeUpdate updates a node.
{ "resource": "" }
c16725
train
// // autoscaler // // Server returns the named servers details.
{ "resource": "" }
c16726
train
// ServerList returns a list of all active build servers.
{ "resource": "" }
c16727
train
// ServerCreate creates a new server.
{ "resource": "" }
c16728
train
// ServerDelete terminates a server.
{ "resource": "" }
c16729
train
// AutoscalePause pauses the autoscaler.
{ "resource": "" }
c16730
train
// AutoscaleResume resumes the autoscaler.
{ "resource": "" }
c16731
train
// AutoscaleVersion resumes the autoscaler.
{ "resource": "" }
c16732
train
// // http request helper functions // // helper function for making an http GET request.
{ "resource": "" }
c16733
train
// helper function for making an http POST request.
{ "resource": "" }
c16734
train
// helper function for making an http DELETE request.
{ "resource": "" }
c16735
train
// mapValues converts a map to url.Values
{ "resource": "" }
c16736
train
// Client returns a new plugin client.
{ "resource": "" }
c16737
train
// Decrypt decrypts the raw, unencoded cihpertext with the provided key.
{ "resource": "" }
c16738
train
// Key returns an encryption key.
{ "resource": "" }
c16739
train
// Add a sub-group to this group
{ "resource": "" }
c16740
train
// Lookup performs a lookup without actually serving the request or mutating the request or response. // The return values are a LookupResult and a boolean. The boolean will be true when a handler // was found or the lookup resulted in a redirect which will point to a real handler. It is false // for requests which wou...
{ "resource": "" }
c16741
train
// ServeLookupResult serves a request, given a lookup result from the Lookup function.
{ "resource": "" }
c16742
train
// MethodNotAllowedHandler is the default handler for TreeMux.MethodNotAllowedHandler, // which is called for patterns that match, but do not have a handler installed for the // requested method. It simply writes the status code http.StatusMethodNotAllowed and fills // in the `Allow` header value appropriately.
{ "resource": "" }
c16743
train
// SimplePanicHandler just returns error 500.
{ "resource": "" }
c16744
train
// NewContextGroup adds a child context group to its path.
{ "resource": "" }
c16745
train
// ContextParams returns the params map associated with the given context if one exists. Otherwise, an empty map is returned.
{ "resource": "" }
c16746
train
// AddParamsToContext inserts a parameters map into a context using // the package's internal context key. Clients of this package should // really only use this for unit tests.
{ "resource": "" }
c16747
train
// NewContextMux returns a TreeMux preconfigured to work with standard http // Handler functions and context objects.
{ "resource": "" }
c16748
train
// Parse returns an AST representation of TOML. // The toplevel is represented by a table.
{ "resource": "" }
c16749
train
// NewDecoder returns a new Decoder that reads from r. // Note that it reads all from r before parsing it.
{ "resource": "" }
c16750
train
// Decode parses the TOML data from its input and stores it in the value pointed to by v. // See the documentation for Unmarshal for details about the conversion of TOML into a Go value.
{ "resource": "" }
c16751
train
// used for UnmarshalerRec.
{ "resource": "" }
c16752
train
// Encode writes the TOML of v to the stream. // See the documentation for Marshal for details about the conversion of Go values to TOML.
{ "resource": "" }
c16753
train
// NewConsumer Consumer's constructor
{ "resource": "" }
c16754
train
// AutoTag set automatically generated tag like this // fmt.Sprintf(QueueName+"-pid-%d@%s", os.Getpid(), os.Hostname())
{ "resource": "" }
c16755
train
// Cancel this publisher
{ "resource": "" }
c16756
train
// NewPublisher is a Publisher constructor
{ "resource": "" }
c16757
train
// PublishingTemplate Publisher's functional option. Provide template // amqp.Publishing and save typing.
{ "resource": "" }
c16758
train
// DeclareQueue is a way to declare AMQP queue
{ "resource": "" }
c16759
train
// DeclareExchange is a way to declare AMQP exchange
{ "resource": "" }
c16760
train
// DeclareBinding is a way to declare AMQP binding between AMQP queue and exchange
{ "resource": "" }
c16761
train
// Backoff implements Backoffer
{ "resource": "" }
c16762
train
// Consume used to declare consumers
{ "resource": "" }
c16763
train
// Publish used to declare publishers
{ "resource": "" }
c16764
train
// Close shutdown the client
{ "resource": "" }
c16765
train
// NewClient initializes new Client
{ "resource": "" }
c16766
train
// BlockingChan is a functional option, used to initialize blocking reporting // channel in client code, maintaining control over buffering, used in // `NewClient` constructor
{ "resource": "" }
c16767
train
// Config is a functional option, used to setup extended amqp configuration
{ "resource": "" }
c16768
train
// Logger is the logrus logger handler
{ "resource": "" }
c16769
train
// GetSignedAuthnRequest returns a singed XML document that represents a AuthnRequest SAML document
{ "resource": "" }
c16770
train
// GetAuthnRequestURL generate a URL for the AuthnRequest to the IdP with the SAMLRequst parameter encoded
{ "resource": "" }
c16771
train
// LoadCertificate from file system
{ "resource": "" }
c16772
train
// UUID generate a new V4 UUID
{ "resource": "" }
c16773
train
// AddAttribute add strong attribute to the Response
{ "resource": "" }
c16774
train
// GetAttribute by Name or by FriendlyName. Return blank string if not found
{ "resource": "" }
c16775
train
// SignRequest sign a SAML 2.0 AuthnRequest // `privateKeyPath` must be a path on the filesystem, xmlsec1 is run out of process // through `exec`
{ "resource": "" }
c16776
train
// SignResponse sign a SAML 2.0 Response // `privateKeyPath` must be a path on the filesystem, xmlsec1 is run out of process // through `exec`
{ "resource": "" }
c16777
train
// VerifyResponseSignature verify signature of a SAML 2.0 Response document // `publicCertPath` must be a path on the filesystem, xmlsec1 is run out of process // through `exec`
{ "resource": "" }
c16778
train
// VerifyRequestSignature verify signature of a SAML 2.0 AuthnRequest document // `publicCertPath` must be a path on the filesystem, xmlsec1 is run out of process // through `exec`
{ "resource": "" }
c16779
train
// Head issues a HEAD to the specified URL. // // Caller should close resp.Body when done reading from it.
{ "resource": "" }
c16780
train
// Reset all fields to default values
{ "resource": "" }
c16781
train
// Json return Response Body as simplejson.Json
{ "resource": "" }
c16782
train
// Text return Response Body as string
{ "resource": "" }
c16783
train
// URL return finally request url
{ "resource": "" }
c16784
train
// AddPackage adds a package's coverage information to the report.
{ "resource": "" }
c16785
train
// PrintReport prints a coverage report to the given writer.
{ "resource": "" }
c16786
train
// NewClient create a basic client that is configured to be used // with the given machine list.
{ "resource": "" }
c16787
train
// NewTLSClient create a basic client with TLS configuration
{ "resource": "" }
c16788
train
// NewClientFromFile creates a client from a given file path. // The given file is expected to use the JSON format.
{ "resource": "" }
c16789
train
// NewClientFromReader creates a Client configured from a given reader. // The configuration is expected to use the JSON format.
{ "resource": "" }
c16790
train
// Override the Client's HTTP Transport object
{ "resource": "" }
c16791
train
// initHTTPClient initializes a HTTP client for eureka client
{ "resource": "" }
c16792
train
// initHTTPClient initializes a HTTPS client for eureka client
{ "resource": "" }
c16793
train
// Sets the DialTimeout value
{ "resource": "" }
c16794
train
// AddRootCA adds a root CA cert for the eureka client
{ "resource": "" }
c16795
train
// SetCluster updates cluster information using the given machine list.
{ "resource": "" }
c16796
train
// internalSyncCluster syncs cluster information using the given machine list.
{ "resource": "" }
c16797
train
// createHttpPath creates a complete HTTP URL. // serverName should contain both the host name and a port number, if any.
{ "resource": "" }
c16798
train
// dial attempts to open a TCP connection to the provided address, explicitly // enabling keep-alives with a one-second interval.
{ "resource": "" }
c16799
train
// MarshalJSON implements the Marshaller interface // as defined by the standard JSON package.
{ "resource": "" }