_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c182000
// Render returns the map as an encoded image.
c182001
// RenderImage returns the map as an unencoded image.Image.
c182002
// RenderToFile writes the map as an encoded image to the file system.
c182003
// SetBufferSize sets the pixel buffer at the map image edges where Mapnik should not render any labels.
c182004
// Search the network for SSDP devices using the given search string and duration // to discover new devices. This function will return an array of SearchReponses // discovered.
c182005
//Get blocks for an available connection.
c182006
//put puts the connection back to the pool. If the pool is closed, put simply close //any connections received and return immediately. A nil net.Conn is illegal and will be rejected.
c182007
// MonoToStereoF32 converts a mono stream into a stereo one // by copying the mono signal to both channels in an interleaved // signal.
c182008
// Gain applies the multiplier to the passed buffer. // A multipler of 1 would increase the amplitude of the signal by 100% // while a multiplier of 0 would not do anything. // Note that this is a very very naive implementation and we will more // than add a more useful DB gain transform.
c182009
// PCMScale converts a buffer with audio content from -1 to 1 into // the PCM scale based on the passed bitdepth. // Note that while the PCM data is scaled, the PCM format is not changed.
c182010
// StereoPan changes the balance of the input buffer by "panning" // more to the left or the right. The pan value must be between // 0 and 1 where 0 is full first channel, 0.5 center and 1 full second channel. // Note that the signal from 1 channel is not sent to the other, this transform // only reduces the balance of one of the 2 channels.
c182011
// Leader returns the current leader.
c182012
// IsLeader returns true if the candidate is currently a leader.
c182013
//NewResponse returns a new OAuth2Response
c182014
// GetRequestID returns a request ID from the given context if one is present. // Returns the empty string if a request ID cannot be found.
c182015
//replace ResponseWriter with a monitorable one, return logger
c182016
// SendMailSSL envoie un email par SSL
c182017
//Send envoie un email
c182018
// WaitForIt waits for a service or URL to become online
c182019
// Get a config
c182020
// Read in config file and ENV variables if set.
c182021
// WritePluginResultsToDatabase upserts plugin results into Database
c182022
//NewAuthController constructs new AuthController
c182023
//Authenticate controls authorizations
c182024
//NewOAuth2Controller constructs new AuthController
c182025
//Refresh returns a new access token
c182026
//Token returns a new access token
c182027
//Logging logs http requests
c182028
//SingleFile returns a handler
c182029
// Write Satisfy the http.ResponseWriter interface
c182030
//Hijack Satisfy the http.ResponseWriter interface
c182031
//NewMongo creates a newinstance of Mongo
c182032
//Disconnect a Mongo client
c182033
// New - Creates a new table.
c182034
// PrintTable - Prints table.
c182035
// PrintHorizontal - Prints horizontal table from a map.
c182036
// PrintRow - Prints table with only one row.
c182037
// AddRow - Adds row to the table.
c182038
// Print - Prints table.
c182039
// String - Ouput table as a string.
c182040
// getHead - Returns table header containing fields names.
c182041
// rowString - Creates a string row.
c182042
// fieldString - Creates field value string.
c182043
// stringTableDash - output table dash. Markdown or not depending on settings.
c182044
// printMarkdownDash - Prints dash in middle of table.
c182045
// stringMarkdownDash - output dash in middle of table.
c182046
//HashPassword hash un mot de passe
c182047
//EncodeOAuth2Code generate an OAuth2 code
c182048
//DecodeOAuth2Code inverse of EncodeOAuth2Code
c182049
//NewServer create a new instance of Server
c182050
//Start the server.
c182051
//Stop the server.
c182052
// NewLoggingServeMux allocates and returns a new LoggingServeMux
c182053
// Handler sastisfy interface
c182054
//Handle register handler
c182055
// Init initalizes ElasticSearch for use with malice
c182056
// WaitForConnection waits for connection to Elasticsearch to be ready
c182057
// StoreFileInfo inserts initial sample info into database creating a placeholder for it
c182058
// StorePluginResults stores a plugin's results in the database by updating // the placeholder created by the call to StoreFileInfo
c182059
// CamelCase converts strings to their camel case equivalent
c182060
// Getopt reads environment variables. // If not found will return a supplied default value
c182061
// Getopts reads from user input then environment variable and finally a sane default.
c182062
// GetSHA256 calculates a file's sha256sum
c182063
// RunCommand runs cmd on file
c182064
// RemoveDuplicates removes duplicate items from a list
c182065
// Unzip unzips archive to target location
c182066
// SliceContainsString returns if slice contains substring
c182067
//NewSMTP create new SMTP
c182068
//SendMail send an email
c182069
//GetEnvironment returns a SMTP Server configuration for the specified environment in parameter
c182070
//GetSMTP returns a SMTP Server configurations
c182071
//GetConfig returns a Server configurations
c182072
//GetEnvironment returns a Mongo configuration for the specified environment in parameter
c182073
//GetMongo returns a Mongo configurations
c182074
//TokenHandler manage authorizations
c182075
// Receive waits to receive the next incoming messages from the CCS connection.
c182076
// Send sends a message to GCM CCS server and returns the number of bytes written and any error encountered. // If empty message ID is given, it's auto-generated and message object is modified with the generated ID.
c182077
// allBoshReleaseNames returns a union of unique BOSH release names across all // contained BOSH releases.
c182078
// AddedProperty adds a new "added" job property to the list of differences
c182079
// RemovedProperty adds a new "removed" job property to the list of differences
c182080
// AddDeltaJob adds a new delta for a specific job
c182081
// Concat adds the other result to this result
c182082
// Read downloads the specified Release to the local cache dir and returns a // reader to the underyling release package.
c182083
// Pull downloads the specified Release to the local cache dir
c182084
//BuildJob - function to create a compiled version of the current job
c182085
// LoadBoshRelease creates an initialized boshRelease instance from the // specifed local or remote .tgz file
c182086
// readBoshRelease creates an initialized boshRelease instance from the // specifed .tgz reader
c182087
// readBoshRelease reads a bosh release out of the given reader into a new // boshRelease struct
c182088
// readBoshJob reads a BOSH job manifest out of the given reader into a new // JobManifest struct
c182089
// NewRequest is like http.NewRequest, with the exception that it will add // basic auth headers if the client is configured for basic auth.
c182090
// PushCloudConfig uploads a cloud config to bosh.
c182091
//Generate - used to generate a struct for a given job
c182092
//CreateNewRecord - creates a record from a given period delimited property and enaml.JobManifestProperty
c182093
// NewShowCmd creates a new ShowCmd instance.
c182094
// All writes out all the release data to writer.
c182095
// GetDefaultTaskImageResource - convenience helper to output default object for // task images
c182096
//AddRawJob helper to add a job to the pipeline manifest
c182097
//AddGroup helper to add a group to the pipeline manifest
c182098
//GetResourceByName convenience method to find and return a resource by name
c182099
//AddRawResource helper to add a resource to the pipeline manifest