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