_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c165000 | train | // Get network adapter address | {
"resource": ""
} | ||
c165001 | train | //Set the vlan to use for switch | {
"resource": ""
} | ||
c165002 | train | //Set the vlan to use for machine | {
"resource": ""
} | ||
c165003 | train | // Connect connects to a VM specified by the name given. | {
"resource": ""
} | ||
c165004 | train | // NewRunner returns a multistep.Runner that runs steps augmented with support
// for -debug and -on-error command line arguments. | {
"resource": ""
} | ||
c165005 | train | // NewRunnerWithPauseFn returns a multistep.Runner that runs steps augmented
// with support for -debug and -on-error command line arguments. With -debug it
// puts the multistep.DebugPauseFn that will pause execution between steps into
// the state under the key "pauseFn". | {
"resource": ""
} | ||
c165006 | train | // decodeError replaces encoded authorization messages with the
// decoded results | {
"resource": ""
} | ||
c165007 | train | // DecodeAuthZMessages enables automatic decoding of any
// encoded authorization messages | {
"resource": ""
} | ||
c165008 | train | // Prepare performs basic validation on the AccessConfig and ensures we can sign
// a request. | {
"resource": ""
} | ||
c165009 | train | // Destroy the CloudStack template represented by the artifact. | {
"resource": ""
} | ||
c165010 | train | // Run executes the Packer build step that gathers GCE instance info.
// This adds "instance_ip" to the multistep state. | {
"resource": ""
} | ||
c165011 | train | // Run reads the instance metadata and looks for the log entry
// indicating the startup script finished. | {
"resource": ""
} | ||
c165012 | train | // Generates the final command to send to the communicator, using either the
// user-provided ExecuteCommand or defaulting to something that makes sense for
// the host OS | {
"resource": ""
} | ||
c165013 | train | // Calls "vagrant init" | {
"resource": ""
} | ||
c165014 | train | // Calls "vagrant up" | {
"resource": ""
} | ||
c165015 | train | // Calls "vagrant halt" | {
"resource": ""
} | ||
c165016 | train | // Calls "vagrant package" | {
"resource": ""
} | ||
c165017 | train | // Verify makes sure that Vagrant exists at the given path | {
"resource": ""
} | ||
c165018 | train | // Version reads the version of VirtualBox that is installed. | {
"resource": ""
} | ||
c165019 | train | // waitForDropletUnlocked waits for the Droplet to be unlocked to
// avoid "pending" errors when making state changes. | {
"resource": ""
} | ||
c165020 | train | // Encode everything except for + signs | {
"resource": ""
} | ||
c165021 | train | // Following are wrapper functions that use Packer's environment-variables to
// determing retry logic, then call the AWS SDK's built-in waiters. | {
"resource": ""
} | ||
c165022 | train | // This function works for both requesting and cancelling spot instances. | {
"resource": ""
} | ||
c165023 | train | // Wrappers for our custom AWS waiters | {
"resource": ""
} | ||
c165024 | train | // Run shuts down the VM. | {
"resource": ""
} | ||
c165025 | train | // TrackProgress returns stream | {
"resource": ""
} | ||
c165026 | train | // Prepare sets the default value of "Prlctl" property. | {
"resource": ""
} | ||
c165027 | train | // Output runs the PowerShell command and returns its standard output. | {
"resource": ""
} | ||
c165028 | train | // Upload uses docker exec to copy the file from the host to the container | {
"resource": ""
} | ||
c165029 | train | // Download pulls a file out of a container using `docker cp`. We have a source
// path and want to write to an io.Writer | {
"resource": ""
} | ||
c165030 | train | // DeprecatedTemplateFunc wraps a template func to warn users that it's
// deprecated. The deprecation warning is called only once. | {
"resource": ""
} | ||
c165031 | train | // NewDriverOCI Creates a new driverOCI with a connected compute client and a connected vcn client. | {
"resource": ""
} | ||
c165032 | train | // DeleteImage deletes a custom image. | {
"resource": ""
} | ||
c165033 | train | // WaitForResourceToReachState checks the response of a request through a
// polled get and waits until the desired state or until the max retried has
// been reached. | {
"resource": ""
} | ||
c165034 | train | // stringSliceContains loops through a slice of strings returning a boolean
// based on whether a given value is contained in the slice. | {
"resource": ""
} | ||
c165035 | train | // Server waits for a connection to this plugin and returns a Packer
// RPC server that you can use to register components and serve them. | {
"resource": ""
} | ||
c165036 | train | // waitForMachineState uses the supplied client to wait for the state of
// the machine with the given ID to reach the state described in state.
// If timeout is reached before the machine reaches the required state, an
// error is returned. If the machine reaches the target state within the
// timeout, nil is returned... | {
"resource": ""
} | ||
c165037 | train | // waitForMachineDeletion uses the supplied client to wait for the machine
// with the given ID to be deleted. It is expected that the API call to delete
// the machine has already been issued at this point. | {
"resource": ""
} | ||
c165038 | train | /** low-level parsing */
// strip the comments and extraneous newlines from a byte channel | {
"resource": ""
} | ||
c165039 | train | // convert a channel of pseudo-tokens into an tkParameter struct | {
"resource": ""
} | ||
c165040 | train | // convert a channel of pseudo-tokens into an tkGroup tree */ | {
"resource": ""
} | ||
c165041 | train | // networking command entry parsers | {
"resource": ""
} | ||
c165042 | train | // Constructor for networking file | {
"resource": ""
} | ||
c165043 | train | /** generic async file reader */ | {
"resource": ""
} | ||
c165044 | train | // Run executes the Packer build step that checks if the image already exists. | {
"resource": ""
} | ||
c165045 | train | // Retrieve the specific ImageVisibility using the exported const from images | {
"resource": ""
} | ||
c165046 | train | // Prepare performs basic validation on a SourceMachineConfig struct. | {
"resource": ""
} | ||
c165047 | train | // Runs the hook with the given name by dispatching it to the proper
// hooks if a mapping exists. If a mapping doesn't exist, then nothing
// happens. | {
"resource": ""
} | ||
c165048 | train | // Reads the first non-loopback interface's IP address from the VM.
// qemu-guest-agent package must be installed on the VM | {
"resource": ""
} | ||
c165049 | train | // ConfigTmpDir returns the configuration tmp directory for Docker | {
"resource": ""
} | ||
c165050 | train | // Prepare validates & sets up configuration options related to Parallels Tools. | {
"resource": ""
} | ||
c165051 | train | // NewArtifact returns a hyperv artifact containing the files
// in the given directory. | {
"resource": ""
} | ||
c165052 | train | // Upload uploads a file to the docker container | {
"resource": ""
} | ||
c165053 | train | // uploadReader writes an io.Reader to a temporary file before uploading | {
"resource": ""
} | ||
c165054 | train | // uploadFile uses docker cp to copy the file from the host to the container | {
"resource": ""
} | ||
c165055 | train | // Download pulls a file out of a container using `docker cp`. We have a source
// path and want to write to an io.Writer, not a file. We use - to make docker
// cp to write to stdout, and then copy the stream to our destination io.Writer. | {
"resource": ""
} | ||
c165056 | train | // Runs the given command and blocks until completion | {
"resource": ""
} | ||
c165057 | train | // amiRegionCopy does a copy for the given AMI to the target region and
// returns the resulting ID and snapshot IDs, or error. | {
"resource": ""
} | ||
c165058 | train | // Takes the inline scripts, concatenates them into a temporary file and
// returns a string containing the location of said file. | {
"resource": ""
} | ||
c165059 | train | // Environment variables required within the remote environment are uploaded
// within a PS script and then enabled by 'dot sourcing' the script
// immediately prior to execution of the main command | {
"resource": ""
} | ||
c165060 | train | // NewCore creates a new Core. | {
"resource": ""
} | ||
c165061 | train | // BuildNames returns the builds that are available in this configured core. | {
"resource": ""
} | ||
c165062 | train | // Context returns an interpolation context. | {
"resource": ""
} | ||
c165063 | train | // WaitForImage waits for the given Image ID to become ready. | {
"resource": ""
} | ||
c165064 | train | // NewDriver returns a new driver implementation for this operating
// system, or an error if the driver couldn't be initialized. | {
"resource": ""
} | ||
c165065 | train | // read the dhcp configuration out of the specified path | {
"resource": ""
} | ||
c165066 | train | // read the VMX configuration from the specified path | {
"resource": ""
} | ||
c165067 | train | // read the connection type out of a vmx configuration | {
"resource": ""
} | ||
c165068 | train | // Prepare configures the output directory or returns an error if it already exists. | {
"resource": ""
} | ||
c165069 | train | // Run uploads the Parallels Tools ISO to the VM. | {
"resource": ""
} | ||
c165070 | train | // NewStepCreateBlockStorageInstance make StepCreateBlockStorage struct to make extra block storage | {
"resource": ""
} | ||
c165071 | train | // CommHost looks up the host for the communicator. | {
"resource": ""
} | ||
c165072 | train | // listDirectories recursively lists directories under the specified path | {
"resource": ""
} | ||
c165073 | train | // discoverTypesInPath searches for types of typeID in path and returns a list
// of plugins it finds. | {
"resource": ""
} | ||
c165074 | train | // ReadSSHPrivateKeyFile returns the SSH private key bytes | {
"resource": ""
} | ||
c165075 | train | // SSHConfigFunc returns a function that can be used for the SSH communicator
// config for connecting to the instance created over SSH using the private key
// or password. | {
"resource": ""
} | ||
c165076 | train | // Port returns the port that will be used for access based on config. | {
"resource": ""
} | ||
c165077 | train | // Host returns the port that will be used for access based on config. | {
"resource": ""
} | ||
c165078 | train | // User returns the port that will be used for access based on config. | {
"resource": ""
} | ||
c165079 | train | // Password returns the port that will be used for access based on config. | {
"resource": ""
} | ||
c165080 | train | // Do executes every expression in the sequence and then flushes remaining
// scancodes. | {
"resource": ""
} | ||
c165081 | train | // Validate tells us if every expression in the sequence is valid. | {
"resource": ""
} | ||
c165082 | train | // GenerateExpressionSequence generates a sequence of expressions from the
// given command. This is the primary entry point to the boot command parser. | {
"resource": ""
} | ||
c165083 | train | // Do waits the amount of time described by the expression. It is cancellable
// through the context. | {
"resource": ""
} | ||
c165084 | train | // Validate returns an error if the time is <= 0 | {
"resource": ""
} | ||
c165085 | train | // Do sends the special command to the driver, along with the key action. | {
"resource": ""
} | ||
c165086 | train | // Do sends the key to the driver, along with the key action. | {
"resource": ""
} | ||
c165087 | train | // Prepare sets default values to the VM shutdown configuration. | {
"resource": ""
} | ||
c165088 | train | // Runs the step required to collate all build artifacts under the
// specified output directory | {
"resource": ""
} | ||
c165089 | train | // NewServer returns a new Packer RPC server. | {
"resource": ""
} | ||
c165090 | train | // ServeConn serves a single connection over the RPC server. It is up
// to the caller to obtain a proper io.ReadWriteCloser. | {
"resource": ""
} | ||
c165091 | train | // postProcessors converts the variable structure of the template to a list | {
"resource": ""
} | ||
c165092 | train | // Run adds a virtual FDD device to the VM and attaches the image.
// If the image is not specified, then this step will be skipped. | {
"resource": ""
} | ||
c165093 | train | // Cleanup removes the virtual FDD device attached to the VM. | {
"resource": ""
} | ||
c165094 | train | // Flush send all scanecodes. | {
"resource": ""
} | ||
c165095 | train | // send stores the codes in an internal buffer. Use Flush to send them. | {
"resource": ""
} | ||
c165096 | train | // NewKeyPair generates a new SSH key pair using the specified
// CreateKeyPairConfig. | {
"resource": ""
} | ||
c165097 | train | // newEcdsaKeyPair returns a new ECDSA SSH key pair. | {
"resource": ""
} | ||
c165098 | train | // newRsaKeyPair returns a new RSA SSH key pair. | {
"resource": ""
} | ||
c165099 | train | // rawPemBlock encodes a pem.Block to a slice of bytes. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.