_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c8200 | train | // NetworkGetOper inspects network | {
"resource": ""
} | ||
c8201 | train | // NetworkUpdate updates network | {
"resource": ""
} | ||
c8202 | train | // NetworkDelete deletes network | {
"resource": ""
} | ||
c8203 | train | // NetprofileCreate creates the network rule | {
"resource": ""
} | ||
c8204 | train | // NetprofileUpdate updates the netprofile | {
"resource": ""
} | ||
c8205 | train | // NetprofileDelete deletes netprofile | {
"resource": ""
} | ||
c8206 | train | // PolicyCreate creates policy | {
"resource": ""
} | ||
c8207 | train | // PolicyGetOper inspects policy | {
"resource": ""
} | ||
c8208 | train | // PolicyUpdate updates policy | {
"resource": ""
} | ||
c8209 | train | // PolicyDelete deletes policy | {
"resource": ""
} | ||
c8210 | train | // RuleUpdate updates the rule within a policy | {
"resource": ""
} | ||
c8211 | train | // RuleDelete deletes the rule within a policy | {
"resource": ""
} | ||
c8212 | train | // TenantCreate creates a tenant | {
"resource": ""
} | ||
c8213 | train | // Get all the networks inside tenant | {
"resource": ""
} | ||
c8214 | train | // Get all the EPGs inside tenant | {
"resource": ""
} | ||
c8215 | train | // TenantGetOper inspects tenant | {
"resource": ""
} | ||
c8216 | train | // TenantUpdate updates a tenant | {
"resource": ""
} | ||
c8217 | train | // TenantDelete deletes a tenant | {
"resource": ""
} | ||
c8218 | train | //BgpCreate add bgp neighbor | {
"resource": ""
} | ||
c8219 | train | //BgpDelete deletes bgp neighbor | {
"resource": ""
} | ||
c8220 | train | //BgpUpdate updates bgp config | {
"resource": ""
} | ||
c8221 | train | //BgpGetOper inspects the oper state of bgp object | {
"resource": ""
} | ||
c8222 | train | //ServiceLBCreate creates service object | {
"resource": ""
} | ||
c8223 | train | //ServiceLBUpdate updates service object | {
"resource": ""
} | ||
c8224 | train | //ServiceLBDelete deletes service object | {
"resource": ""
} | ||
c8225 | train | //ServiceLBGetOper inspects the oper state of service lb object | {
"resource": ""
} | ||
c8226 | train | // Init initializes the NetPlugin instance via the configuration string passed. | {
"resource": ""
} | ||
c8227 | train | // Deinit is a destructor for the NetPlugin configuration. | {
"resource": ""
} | ||
c8228 | train | // DeleteNetwork deletes a network provided by the ID. | {
"resource": ""
} | ||
c8229 | train | // FetchNetwork retrieves a network's state given an ID. | {
"resource": ""
} | ||
c8230 | train | // CreateHostAccPort creates a host access port | {
"resource": ""
} | ||
c8231 | train | // DeleteHostAccPort creates a host access port | {
"resource": ""
} | ||
c8232 | train | // DeletePeerHost removes a peer host. | {
"resource": ""
} | ||
c8233 | train | //AddServiceLB adds service | {
"resource": ""
} | ||
c8234 | train | //DeleteServiceLB deletes service | {
"resource": ""
} | ||
c8235 | train | // GetEndpointStats returns all endpoint stats | {
"resource": ""
} | ||
c8236 | train | // InspectState returns current state of the plugin | {
"resource": ""
} | ||
c8237 | train | // InspectBgp returns current state of the plugin | {
"resource": ""
} | ||
c8238 | train | // InspectNameserver returns current state of the nameserver | {
"resource": ""
} | ||
c8239 | train | //GlobalConfigUpdate update global config | {
"resource": ""
} | ||
c8240 | train | //Reinit reinitialize the network driver | {
"resource": ""
} | ||
c8241 | train | //DelSvcSpec deletes k8 service spec | {
"resource": ""
} | ||
c8242 | train | // AddPolicyRule creates a policy rule | {
"resource": ""
} | ||
c8243 | train | // InitK8SServiceWatch monitor k8s services | {
"resource": ""
} | ||
c8244 | train | // MarshalBinary renders the current point to a byte slice.
// Implements the encoding.BinaryMarshaler Interface. | {
"resource": ""
} | ||
c8245 | train | // MarshalJSON renders the current Point to valid JSON.
// Implements the json.Marshaller Interface. | {
"resource": ""
} | ||
c8246 | train | // UnmarshalJSON decodes the current Point from a JSON body.
// Throws an error if the body of the point cannot be interpreted by the JSON body | {
"resource": ""
} | ||
c8247 | train | // HandleWithSQL retrieves the SQL configuration specified in config.yml
// that resides at the root level of the project.
// Returns a pointer to a SQLMapper if successful, or an error
// if there is an issue opening a database connection. | {
"resource": ""
} | ||
c8248 | train | // Geocode returns the first point returned by OpenCage's geocoding service or an error
// if one occurs during the geocoding request. | {
"resource": ""
} | ||
c8249 | train | // Geocode returns the first point returned by MapQuest's geocoding service or an error
// if one occurs during the geocoding request. | {
"resource": ""
} | ||
c8250 | train | // Creates a new SQLConf and returns a pointer to it.
// If it encounters an error during parsing the file,
// it will return an error instead. | {
"resource": ""
} | ||
c8251 | train | // Contains returns whether or not the current Polygon contains the passed in Point. | {
"resource": ""
} | ||
c8252 | train | // New creates a SizedWaitGroup.
// The limit parameter is the maximum amount of
// goroutines which can be started concurrently. | {
"resource": ""
} | ||
c8253 | train | // AddWithContext increments the internal WaitGroup counter.
// It can be blocking if the limit of spawned goroutines
// has been reached. It will stop blocking when Done is
// been called, or when the context is canceled. Returns nil on
// success or an error if the context is canceled before the lock
// is acquired.
... | {
"resource": ""
} | ||
c8254 | train | // PrettyOptions is like Pretty but with customized options. | {
"resource": ""
} | ||
c8255 | train | // Ugly removes insignificant space characters from the input json byte slice
// and returns the compacted result. | {
"resource": ""
} | ||
c8256 | train | // writeBlockSkip writes the current block and uses the number of tokens
// to determine if the block should be stored on no matches, or
// only huffman encoded. | {
"resource": ""
} | ||
c8257 | train | // Try to find a match starting at index whose length is greater than prevSize.
// We only look at chainCount possibilities before giving up.
// pos = d.index, prevHead = d.chainHead-d.hashOffset, prevLength=minMatchLength-1, lookahead | {
"resource": ""
} | ||
c8258 | train | // bulkHash4 will compute hashes using the same
// algorithm as hash4 | {
"resource": ""
} | ||
c8259 | train | // matchLen returns the number of matching bytes in a and b
// up to length 'max'. Both slices must be at least 'max'
// bytes in size. | {
"resource": ""
} | ||
c8260 | train | // fillWindow will fill the buffer with data for huffman-only compression.
// The number of bytes copied is returned. | {
"resource": ""
} | ||
c8261 | train | // write will add input byte to the stream.
// Unless an error occurs all bytes will be consumed. | {
"resource": ""
} | ||
c8262 | train | // reset the state of the compressor. | {
"resource": ""
} | ||
c8263 | train | // NewWriterDict is like NewWriter but initializes the new
// Writer with a preset dictionary. The returned Writer behaves
// as if the dictionary had been written to it without producing
// any compressed output. The compressed data written to w
// can only be decompressed by a Reader initialized with the
// same di... | {
"resource": ""
} | ||
c8264 | train | // Write writes data to w, which will eventually write the
// compressed form of data to its underlying writer. | {
"resource": ""
} | ||
c8265 | train | // Reset discards the writer's state and makes it equivalent to
// the result of NewWriter or NewWriterDict called with dst
// and w's level and dictionary. | {
"resource": ""
} | ||
c8266 | train | // ResetDict discards the writer's state and makes it equivalent to
// the result of NewWriter or NewWriterDict called with dst
// and w's level, but sets a specific dictionary. | {
"resource": ""
} | ||
c8267 | train | // noEOF converts io.EOF to io.ErrUnexpectedEOF. | {
"resource": ""
} | ||
c8268 | train | // NewReader creates a new Reader reading the given reader.
// If r does not also implement io.ByteReader,
// the decompressor may read more data than necessary from r.
//
// It is the caller's responsibility to call Close on the Reader when done.
//
// The Reader.Header fields will be valid in the Reader returned. | {
"resource": ""
} | ||
c8269 | train | // Reset discards the Reader z's state and makes it equivalent to the
// result of its original state from NewReader, but reading from r instead.
// This permits reusing a Reader rather than allocating a new one. | {
"resource": ""
} | ||
c8270 | train | // readHeader reads the GZIP header according to section 2.3.1.
// This method does not set z.err. | {
"resource": ""
} | ||
c8271 | train | // Read implements io.Reader, reading uncompressed bytes from its underlying Reader. | {
"resource": ""
} | ||
c8272 | train | // addBits16NC will add up to 16 bits.
// It will not check if there is space for them,
// so the caller must ensure that it has flushed recently. | {
"resource": ""
} | ||
c8273 | train | // addBits16ZeroNC will add up to 16 bits.
// It will not check if there is space for them,
// so the caller must ensure that it has flushed recently.
// This is fastest if bits can be zero. | {
"resource": ""
} | ||
c8274 | train | // flush32 will flush out, so there are at least 32 bits available for writing. | {
"resource": ""
} | ||
c8275 | train | // flushAlign will flush remaining full bytes and align to next byte boundary. | {
"resource": ""
} | ||
c8276 | train | // reset and continue writing by appending to out. | {
"resource": ""
} | ||
c8277 | train | // NewWriter returns a new Writer.
// Writes to the returned writer are compressed and written to w.
//
// It is the caller's responsibility to call Close on the WriteCloser when done.
// Writes may be buffered and not flushed until Close.
//
// Callers that wish to set the fields in Writer.Header must do so before
// ... | {
"resource": ""
} | ||
c8278 | train | // NewWriterLevel is like NewWriter but specifies the compression level instead
// of assuming DefaultCompression.
//
// The compression level can be DefaultCompression, NoCompression, or any
// integer value between BestSpeed and BestCompression inclusive. The error
// returned will be nil if the level is valid. | {
"resource": ""
} | ||
c8279 | train | // Reset discards the Writer z's state and makes it equivalent to the
// result of its original state from NewWriter or NewWriterLevel, but
// writing to w instead. This permits reusing a Writer rather than
// allocating a new one. | {
"resource": ""
} | ||
c8280 | train | // writeBytes writes a length-prefixed byte slice to z.w. | {
"resource": ""
} | ||
c8281 | train | // Write writes a compressed form of p to the underlying io.Writer. The
// compressed bytes are not necessarily flushed until the Writer is closed. | {
"resource": ""
} | ||
c8282 | train | // Flush flushes any pending compressed data to the underlying writer.
//
// It is useful mainly in compressed network protocols, to ensure that
// a remote reader has enough data to reconstruct a packet. Flush does
// not return until the data has been written. If the underlying
// writer returns an error, Flush retur... | {
"resource": ""
} | ||
c8283 | train | // reset will reset the block.
// Input must be a start of a block and will be at the end of the block when returned. | {
"resource": ""
} | ||
c8284 | train | // sendEOF will make the decoder send EOF on this frame. | {
"resource": ""
} | ||
c8285 | train | // Close will release resources.
// Closed blockDec cannot be reset. | {
"resource": ""
} | ||
c8286 | train | // decodeAsync will prepare decoding the block when it receives input.
// This will separate output and history. | {
"resource": ""
} | ||
c8287 | train | // decodeAsync will prepare decoding the block when it receives the history.
// If history is provided, it will not fetch it from the channel. | {
"resource": ""
} | ||
c8288 | train | // init initializes and resets the bit reader. | {
"resource": ""
} | ||
c8289 | train | // close the bitstream and returns an error if out-of-buffer reads occurred. | {
"resource": ""
} | ||
c8290 | train | // RegisterDecompressor allows custom decompressors for a specified method ID. | {
"resource": ""
} | ||
c8291 | train | // RegisterCompressor registers custom compressors for a specified method ID.
// The common methods Store and Deflate are built in. | {
"resource": ""
} | ||
c8292 | train | // init the state of the decoder with input from stream. | {
"resource": ""
} | ||
c8293 | train | // initialize all 3 decoders from the stream input. | {
"resource": ""
} | ||
c8294 | train | // nextFast will return new states when there are at least 4 unused bytes left on the stream when done. | {
"resource": ""
} | ||
c8295 | train | // mergeHistory will merge history. | {
"resource": ""
} | ||
c8296 | train | // Compress1X will compress the input.
// The output can be decoded using Decompress1X.
// Supply a Scratch object. The scratch object contains state about re-use,
// So when sharing across independent encodes, be sure to set the re-use policy. | {
"resource": ""
} | ||
c8297 | train | // Compress4X will compress the input. The input is split into 4 independent blocks
// and compressed similar to Compress1X.
// The output can be decoded using Decompress4X.
// Supply a Scratch object. The scratch object contains state about re-use,
// So when sharing across independent encodes, be sure to set the re-u... | {
"resource": ""
} | ||
c8298 | train | // compress4Xp will compress 4 streams using separate goroutines. | {
"resource": ""
} | ||
c8299 | train | // minTableLog provides the minimum logSize to safely represent a distribution. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.