_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c21400 | train | // Open implements hgfs.FileHandler.Open | {
"resource": ""
} | ||
c21401 | train | // NewProcessFunc creates a new Process, where the Start function calls the given run function within a goroutine.
// The Wait function waits for the goroutine to finish and returns the error returned by run.
// The run ctx param may be used to return early via the ProcessManager.Kill method.
// The run args command is... | {
"resource": ""
} | ||
c21402 | train | // NewProcessRoundTrip starts a Go function to implement a toolbox backed http.RoundTripper | {
"resource": ""
} | ||
c21403 | train | // Read calls the Read function on the underlying io.Reader. Additionally,
// every read causes a progress report to be sent to the progress reader's
// underlying channel. | {
"resource": ""
} | ||
c21404 | train | // Done marks the progress reader as done, optionally including an error in the
// progress report. After sending it, the underlying channel is closed. | {
"resource": ""
} | ||
c21405 | train | // newBpsLoop returns a sink that monitors and stores throughput. | {
"resource": ""
} | ||
c21406 | train | // stat looks at the vmdk header to make sure the format is streamOptimized and
// extracts the disk capacity required to properly generate the ovf descriptor. | {
"resource": ""
} | ||
c21407 | train | // ovf returns an expanded descriptor template | {
"resource": ""
} | ||
c21408 | train | // getEnvString returns string from environment variable. | {
"resource": ""
} | ||
c21409 | train | // getEnvBool returns boolean from environment variable. | {
"resource": ""
} | ||
c21410 | train | // NewClient creates a govmomi.Client for use in the examples | {
"resource": ""
} | ||
c21411 | train | // Wait waits for a task to finish with either success or failure. It does so
// by waiting for the "info" property of task managed object to change. The
// function returns when it finds the task in the "success" or "error" state.
// In the former case, the return value is nil. In the latter case the return
// value i... | {
"resource": ""
} | ||
c21412 | train | // Open opens the named file relative to the Datastore. | {
"resource": ""
} | ||
c21413 | train | // Close closes the DatastoreFile. | {
"resource": ""
} | ||
c21414 | train | // Seek sets the offset for the next Read on the DatastoreFile. | {
"resource": ""
} | ||
c21415 | train | // Stat returns the os.FileInfo interface describing file. | {
"resource": ""
} | ||
c21416 | train | // Tail seeks to the position of the last N lines of the file. | {
"resource": ""
} | ||
c21417 | train | // TailFunc will seek backwards in the datastore file until it hits a line that does
// not satisfy the supplied `include` function. | {
"resource": ""
} | ||
c21418 | train | // Close will stop Follow polling and close the underlying DatastoreFile. | {
"resource": ""
} | ||
c21419 | train | // Follow returns an io.ReadCloser to stream the file contents as data is appended. | {
"resource": ""
} | ||
c21420 | train | // FromCertificate converts x509.Certificate to HostCertificateInfo | {
"resource": ""
} | ||
c21421 | train | // FromURL connects to the given URL.Host via tls.Dial with the given tls.Config and populates the HostCertificateInfo
// via tls.ConnectionState. If the certificate was verified with the given tls.Config, the Err field will be nil.
// Otherwise, Err will be set to the x509.UnknownAuthorityError or x509.HostnameError.... | {
"resource": ""
} | ||
c21422 | train | // SubjectName parses Subject into a pkix.Name | {
"resource": ""
} | ||
c21423 | train | // IssuerName parses Issuer into a pkix.Name | {
"resource": ""
} | ||
c21424 | train | // Write outputs info similar to the Chrome Certificate Viewer. | {
"resource": ""
} | ||
c21425 | train | // MarshalBinary is a wrapper around binary.Write | {
"resource": ""
} | ||
c21426 | train | // UnmarshalBinary is a wrapper around binary.Read | {
"resource": ""
} | ||
c21427 | train | // C14N returns the canonicalized form of LoginBody.Req, for use by sts.Signer | {
"resource": ""
} | ||
c21428 | train | // ESX is the default Model for a standalone ESX instance | {
"resource": ""
} | ||
c21429 | train | // VPX is the default Model for a vCenter instance | {
"resource": ""
} | ||
c21430 | train | // Count returns a Model with total number of each existing type | {
"resource": ""
} | ||
c21431 | train | // Remove cleans up items created by the Model, such as local datastore directories | {
"resource": ""
} | ||
c21432 | train | // VirtualMachines returns list of virtual machine objects based on the
// arguments specified on the command line. This helper is defined in
// flags.SearchFlag as well, but that pulls in other virtual machine flags that
// are not relevant here. | {
"resource": ""
} | ||
c21433 | train | // Retry wraps the specified soap.RoundTripper and invokes the
// specified RetryFunc. The RetryFunc returns whether or not to
// retry the call, and if so, how long to wait before retrying. If
// the result of this function is to not retry, the original error
// is returned from the RoundTrip function. | {
"resource": ""
} | ||
c21434 | train | // GetCustomFieldsManager wraps NewCustomFieldsManager, returning ErrNotSupported
// when the client is not connected to a vCenter instance. | {
"resource": ""
} | ||
c21435 | train | // Seek to log position starting at the last nlines of the log | {
"resource": ""
} | ||
c21436 | train | // Copy log starting from l.Start to the given io.Writer
// Returns on error or when end of log is reached. | {
"resource": ""
} | ||
c21437 | train | // FindByDatastorePath finds a virtual machine by its location on a datastore. | {
"resource": ""
} | ||
c21438 | train | // FindByDnsName finds a virtual machine or host by DNS name. | {
"resource": ""
} | ||
c21439 | train | // FindByInventoryPath finds a managed entity based on its location in the inventory. | {
"resource": ""
} | ||
c21440 | train | // FindByUuid finds a virtual machine or host by UUID. | {
"resource": ""
} | ||
c21441 | train | // FindChild finds a particular child based on a managed entity name. | {
"resource": ""
} | ||
c21442 | train | // This example can be run on a VM hosted by ESX, Fusion or Workstation | {
"resource": ""
} | ||
c21443 | train | // configure TLS and retry settings before making any connections | {
"resource": ""
} | ||
c21444 | train | // apiVersionValid returns whether or not the API version supported by the
// server the client is connected to is not recent enough. | {
"resource": ""
} | ||
c21445 | train | // Environ returns the govc environment variables for this connection | {
"resource": ""
} | ||
c21446 | train | // WithCancel calls the given function, returning when complete or canceled via SIGINT. | {
"resource": ""
} | ||
c21447 | train | // Tee works like Unix tee; it forwards all progress reports it receives to the
// specified sinks | {
"resource": ""
} | ||
c21448 | train | // CreateStandaloneHost uses esx.HostSystem as a template, applying the given spec
// and creating the ComputeResource parent and ResourcePool sibling. | {
"resource": ""
} | ||
c21449 | train | // CreateLibraryItemUpdateSession creates a new library item | {
"resource": ""
} | ||
c21450 | train | // GetLibraryItemUpdateSession gets the update session information with status | {
"resource": ""
} | ||
c21451 | train | // ListLibraryItemUpdateSession gets the list of update sessions | {
"resource": ""
} | ||
c21452 | train | // DeleteLibraryItemUpdateSession deletes an update session | {
"resource": ""
} | ||
c21453 | train | // FailLibraryItemUpdateSession fails an update session | {
"resource": ""
} | ||
c21454 | train | // WaitOnLibraryItemUpdateSession blocks until the update session is no longer
// in the ACTIVE state. | {
"resource": ""
} | ||
c21455 | train | // toString returns an XML encoded RequestSecurityToken.
// When c14n is true, returns the canonicalized ActAs.Assertion which is required to sign the Issue request.
// When c14n is false, returns the original content of the ActAs.Assertion.
// The original content must be used within the request Body, as it has its ow... | {
"resource": ""
} | ||
c21456 | train | // Marshal panics if xml.Marshal returns an error | {
"resource": ""
} | ||
c21457 | train | // mkns prepends the given namespace to xml.Name.Local and returns obj encoded as xml.
// Note that the namespace is required when encoding, but the namespace prefix must not be
// present when decoding as Go's decoding does not handle namespace prefix. | {
"resource": ""
} | ||
c21458 | train | // Retrieve populates dst as property.Collector.Retrieve does, for all entities in the view of types specified by kind. | {
"resource": ""
} | ||
c21459 | train | // Find returns object references for entities of type kind, matching the given filter. | {
"resource": ""
} | ||
c21460 | train | // Updates both vm.Layout.Disk and vm.LayoutEx.Disk | {
"resource": ""
} | ||
c21461 | train | // Log outputs the specified string, prefixed with the current time.
// A newline is not automatically added. If the specified string
// starts with a '\r', the current line is cleared first. | {
"resource": ""
} | ||
c21462 | train | // ObjectContentToType loads an ObjectContent value into the value it
// represents. If the ObjectContent value has a non-empty 'MissingSet' field,
// it returns the first fault it finds there as error. If the 'MissingSet'
// field is empty, it returns a pointer to a reflect.Value. It handles contain
// nested properti... | {
"resource": ""
} | ||
c21463 | train | // ApplyPropertyChange converts the response of a call to WaitForUpdates
// and applies it to the given managed object. | {
"resource": ""
} | ||
c21464 | train | // LoadRetrievePropertiesResponse converts the response of a call to
// RetrieveProperties to one or more managed objects. | {
"resource": ""
} | ||
c21465 | train | // RetrievePropertiesForRequest calls the RetrieveProperties method with the
// specified request and decodes the response struct into the value pointed to
// by dst. | {
"resource": ""
} | ||
c21466 | train | // RetrieveProperties retrieves the properties of the managed object specified
// as obj and decodes the response struct into the value pointed to by dst. | {
"resource": ""
} | ||
c21467 | train | // NewServer creates a new Server instance with the default handlers | {
"resource": ""
} | ||
c21468 | train | // RegisterFileHandler enables dispatch to handler for the given scheme. | {
"resource": ""
} | ||
c21469 | train | // Dispatch unpacks the given request packet and dispatches to the appropriate handler | {
"resource": ""
} | ||
c21470 | train | // urlParse attempts to convert the given name to a URL with scheme for use as FileHandler dispatch. | {
"resource": ""
} | ||
c21471 | train | // OpenFile selects the File implementation based on file type and mode. | {
"resource": ""
} | ||
c21472 | train | // CreateSessionV4 handls OpCreateSessionV4 requests | {
"resource": ""
} | ||
c21473 | train | // DestroySessionV4 handls OpDestroySessionV4 requests | {
"resource": ""
} | ||
c21474 | train | // Stat maps os.FileInfo to AttrV2 | {
"resource": ""
} | ||
c21475 | train | // GetattrV2 handles OpGetattrV2 requests | {
"resource": ""
} | ||
c21476 | train | // SetattrV2 handles OpSetattrV2 requests | {
"resource": ""
} | ||
c21477 | train | // Open handles OpOpen requests | {
"resource": ""
} | ||
c21478 | train | // Close handles OpClose requests | {
"resource": ""
} | ||
c21479 | train | // OpenV3 handles OpOpenV3 requests | {
"resource": ""
} | ||
c21480 | train | // ReadV3 handles OpReadV3 requests | {
"resource": ""
} | ||
c21481 | train | // WriteV3 handles OpWriteV3 requests | {
"resource": ""
} | ||
c21482 | train | // NewServer starts and returns a new Server.
// The caller should call Close when finished, to shut it down. | {
"resource": ""
} | ||
c21483 | train | // NewUnstartedServer returns a new Server but doesn't start it.
//
// After changing its configuration, the caller should call Start or
// StartTLS.
//
// The caller should call Close when finished, to shut it down.
// serve allows the server's listen address to be specified. | {
"resource": ""
} | ||
c21484 | train | // Start starts a server from NewUnstartedServer. | {
"resource": ""
} | ||
c21485 | train | // StartTLS starts TLS on a server from NewUnstartedServer. | {
"resource": ""
} | ||
c21486 | train | // NewTLSServer starts and returns a new Server using TLS.
// The caller should call Close when finished, to shut it down. | {
"resource": ""
} | ||
c21487 | train | // CloseClientConnections closes any open HTTP connections to the test Server. | {
"resource": ""
} | ||
c21488 | train | // wrap installs the connection state-tracking hook to know which
// connections are idle. | {
"resource": ""
} | ||
c21489 | train | // closeConnChan is like closeConn, but takes an optional channel to receive a value
// when the goroutine closing c is done. | {
"resource": ""
} | ||
c21490 | train | // forgetConn removes c from the set of tracked conns and decrements it from the
// waitgroup, unless it was previously removed.
// s.mu must be held. | {
"resource": ""
} | ||
c21491 | train | // matches returns true if the change matches one of the filter Spec.PropSet | {
"resource": ""
} | ||
c21492 | train | // apply the PropertyFilter.Spec to the given ObjectUpdate | {
"resource": ""
} | ||
c21493 | train | // getTypeInfo returns the typeInfo structure with details necessary
// for marshalling and unmarshalling typ. | {
"resource": ""
} | ||
c21494 | train | // lookupXMLName returns the fieldInfo for typ's XMLName field
// in case it exists and has a valid xml field tag, otherwise
// it returns nil. | {
"resource": ""
} | ||
c21495 | train | // ListLibraryItemFiles returns a list of all the files for a library item. | {
"resource": ""
} | ||
c21496 | train | // GetLibraryItemFile returns a file with the provided name for a library item. | {
"resource": ""
} | ||
c21497 | train | // File converts the FileItem.OvfFileItem to an OvfFile | {
"resource": ""
} | ||
c21498 | train | // hasMultiplePaths returns whether or not the slice of search results contains
// results from more than one folder path. | {
"resource": ""
} | ||
c21499 | train | // Patch merges Category changes from the given src.
// AssociableTypes can only be appended to and cannot shrink. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.