_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c168100
validation
// Restart reboots the existing VM instance.
{ "resource": "" }
c168101
validation
// Remove destroys the VM instance and the associated SSH key.
{ "resource": "" }
c168102
validation
// Build a cloud-init user data string that will install and run // docker.
{ "resource": "" }
c168103
validation
// GenerateCACertificate generates a new certificate authority from the specified org // and bit size and stores the resulting certificate and key file // in the arguments.
{ "resource": "" }
c168104
validation
// GenerateCert generates a new certificate signed using the provided // certificate authority files and stores the result in the certificate // file and key provided. The provided host names are set to the // appropriate certificate fields.
{ "resource": "" }
c168105
validation
// ReadTLSConfig reads the tls config for a machine.
{ "resource": "" }
c168106
validation
// ValidateCertificate validate the certificate installed on the vm.
{ "resource": "" }
c168107
validation
// IsVTXDisabled checks if VT-x is disabled in the CPU.
{ "resource": "" }
c168108
validation
// NewVBoxManager creates a VBoxManager instance.
{ "resource": "" }
c168109
validation
// driverPath finds the path of a driver binary by its name. // + If the driver is a core driver, there is no separate driver binary. We reuse current binary if it's `docker-machine` // or we assume `docker-machine` is in the PATH. // + If the driver is NOT a core driver, then the separate binary must be in the PATH ...
{ "resource": "" }
c168110
validation
// AuthenticateDeviceFlow fetches a token from the local file cache or initiates a consent // flow and waits for token to be obtained. Obtained token is stored in a file cache for // future use and refreshing.
{ "resource": "" }
c168111
validation
// AuthenticateServicePrincipal uses given service principal credentials to return a // service principal token. Generated token is not stored in a cache file or refreshed.
{ "resource": "" }
c168112
validation
// deviceFlowAuth prints a message to the screen for user to take action to // consent application on a browser and in the meanwhile the authentication // endpoint is polled until user gives consent, denies or the flow times out. // Returned token must be saved.
{ "resource": "" }
c168113
validation
// tenantIDPath returns the full path the tenant ID for the given subscription // should be saved at.f
{ "resource": "" }
c168114
validation
// NewFmtMachineLogger creates a MachineLogger implementation used by the drivers
{ "resource": "" }
c168115
validation
// NewComputeUtil creates and initializes a ComputeUtil.
{ "resource": "" }
c168116
validation
// disk returns the persistent disk attached to the vm.
{ "resource": "" }
c168117
validation
// staticAddress returns the external static IP address.
{ "resource": "" }
c168118
validation
// openFirewallPorts configures the firewall to open docker and swarm ports.
{ "resource": "" }
c168119
validation
// instance retrieves the instance.
{ "resource": "" }
c168120
validation
// configureInstance configures an existing instance for use with Docker Machine.
{ "resource": "" }
c168121
validation
// addFirewallTag adds a tag to the instance to match the firewall rule.
{ "resource": "" }
c168122
validation
// uploadSSHKey updates the instance metadata with the given ssh key.
{ "resource": "" }
c168123
validation
// parseTags computes the tags for the instance.
{ "resource": "" }
c168124
validation
// startInstance starts the instance.
{ "resource": "" }
c168125
validation
// waitForOp waits for the operation to finish.
{ "resource": "" }
c168126
validation
// waitForRegionalOp waits for the regional operation to finish.
{ "resource": "" }
c168127
validation
// waitForGlobalOp waits for the global operation to finish.
{ "resource": "" }
c168128
validation
// ip retrieves and returns the external IP address of the instance.
{ "resource": "" }
c168129
validation
// cmdOutput runs a shell command and returns its output.
{ "resource": "" }
c168130
validation
// detect the vmrun and vmware-vdiskmanager cmds' path if needed
{ "resource": "" }
c168131
validation
// RegisterResourceProviders registers current subscription to the specified // resource provider namespaces if they are not already registered. Namespaces // are case-insensitive.
{ "resource": "" }
c168132
validation
// CreateResourceGroup creates a Resource Group if not exists
{ "resource": "" }
c168133
validation
// CleanupVirtualNetworkIfExists removes a subnet if there are no subnets // attached to it. Note that this method is not safe for multiple concurrent // writers, in case of races, deployment of a machine could fail or resource // might not be cleaned up.
{ "resource": "" }
c168134
validation
// CreateSubnet creates or updates a subnet if it does not already exist.
{ "resource": "" }
c168135
validation
// CleanupAvailabilitySetIfExists removes an availability set if there are no // virtual machines attached to it. Note that this method is not safe for // multiple concurrent writers, in case of races, deployment of a machine could // fail or resource might not be cleaned up.
{ "resource": "" }
c168136
validation
// GetPublicIPAddress attempts to get public IP address from the Public IP // resource. If IP address is not allocated yet, returns empty string. If // useFqdn is set to true, the a FQDN hostname will be returned.
{ "resource": "" }
c168137
validation
// GetPrivateIPAddress attempts to retrieve private IP address of the specified // network interface name. If IP address is not allocated yet, returns empty // string.
{ "resource": "" }
c168138
validation
// deleteResourceIfExists is an utility method to determine if a resource exists // from the error returned from its Get response. If so, deletes it. name is // used only for logging purposes.
{ "resource": "" }
c168139
validation
// waitVMPowerState polls the Virtual Machine instance view until it reaches the // specified goal power state or times out. If checking for virtual machine // state fails or waiting times out, an error is returned.
{ "resource": "" }
c168140
validation
// checkExistsFromError inspects an error and returns a true if err is nil, // false if error is an autorest.Error with StatusCode=404 and will return the // error back if error is another status code or another type of error.
{ "resource": "" }
c168141
validation
// osDiskStorageBlobURL gives the full url of the VHD blob where the OS disk for // the given VM should be stored.
{ "resource": "" }
c168142
validation
// osDiskStorageContainerURL crafts a URL with a trailing slash pointing // to the full Azure Blob Container URL for given VM name.
{ "resource": "" }
c168143
validation
// NewKeyPair generates a new SSH keypair // This will return a private & public key encoded as DER.
{ "resource": "" }
c168144
validation
// Fingerprint calculates the fingerprint of the public key
{ "resource": "" }
c168145
validation
// GenerateSSHKey generates SSH keypair based on path of the private key // The public key would be generated to the same path with ".pub" added
{ "resource": "" }
c168146
validation
// loadOrFindTenantID figures out the AAD tenant ID of the subscription by first // looking at the cache file, if not exists, makes a network call to load it and // cache it for future use.
{ "resource": "" }
c168147
validation
// findTenantID figures out the AAD tenant ID of the subscription by making an // unauthenticated request to the Get Subscription Details endpoint and parses // the value from WWW-Authenticate header.
{ "resource": "" }
c168148
validation
// saveTenantID performs an atomic write to the path with given tenantID contents.
{ "resource": "" }
c168149
validation
// Send sends a crash report to bugsnag via an http call.
{ "resource": "" }
c168150
validation
// Create a host using the driver's config
{ "resource": "" }
c168151
validation
// DriverName returns the name of the driver as it is registered
{ "resource": "" }
c168152
validation
// GetCreateFlags returns the mcnflag.Flag slice representing the flags // that can be set, their descriptions and defaults.
{ "resource": "" }
c168153
validation
// GetMachineName returns the name of the machine
{ "resource": "" }
c168154
validation
// GetSSHHostname returns hostname for use with ssh
{ "resource": "" }
c168155
validation
// GetSSHKeyPath returns key path for use with ssh
{ "resource": "" }
c168156
validation
// GetSSHUsername returns username for use with ssh
{ "resource": "" }
c168157
validation
// Remove a host
{ "resource": "" }
c168158
validation
// Start a host
{ "resource": "" }
c168159
validation
// Stop a host gracefully
{ "resource": "" }
c168160
validation
// In the 0.1.0 => 0.2.0 transition, the JSON representation of // machines changed from a "flat" to a more "nested" structure // for various options and configuration settings. To preserve // compatibility with existing machines, these migration functions // have been introduced. They preserve backwards compat at th...
{ "resource": "" }
c168161
validation
// MigrateHostMetadataV0ToHostMetadataV1 fills nested host metadata and modifies if needed // this is used for configuration updates
{ "resource": "" }
c168162
validation
// getNameAndItsPpid returns the exe file name its parent process id.
{ "resource": "" }
c168163
validation
// NewDriver creates a Driver with the specified storePath.
{ "resource": "" }
c168164
validation
// SetConfigFromFlags initializes the driver based on the command line flags.
{ "resource": "" }
c168165
validation
// PreCreateCheck is called to enforce pre-creation steps
{ "resource": "" }
c168166
validation
// Create creates a GCE VM instance acting as a docker host.
{ "resource": "" }
c168167
validation
// GetIP returns the IP address of the GCE instance.
{ "resource": "" }
c168168
validation
// GetState returns a docker.hosts.state.State value representing the current state of the host.
{ "resource": "" }
c168169
validation
// Start starts an existing GCE instance or create an instance with an existing disk.
{ "resource": "" }
c168170
validation
// Stop stops an existing GCE instance.
{ "resource": "" }
c168171
validation
// Remove deletes the GCE instance and the disk.
{ "resource": "" }
c168172
validation
// NewDriver returns a new driver instance.
{ "resource": "" }
c168173
validation
// SetConfigFromFlags initializes driver values from the command line values // and checks if the arguments have values.
{ "resource": "" }
c168174
validation
// PreCreateCheck validates if driver values are valid to create the machine.
{ "resource": "" }
c168175
validation
// Create creates the virtual machine.
{ "resource": "" }
c168176
validation
// Remove deletes the virtual machine and resources associated to it.
{ "resource": "" }
c168177
validation
// GetIP returns public IP address or hostname of the machine instance.
{ "resource": "" }
c168178
validation
// GetURL returns a socket address to connect to Docker engine of the machine // instance.
{ "resource": "" }
c168179
validation
// GetState returns the state of the virtual machine role instance.
{ "resource": "" }
c168180
validation
// Start issues a power on for the virtual machine instance.
{ "resource": "" }
c168181
validation
// Stop issues a power off for the virtual machine instance.
{ "resource": "" }
c168182
validation
// Restart reboots the virtual machine instance.
{ "resource": "" }
c168183
validation
// Sample Virtualbox create independent of Machine CLI.
{ "resource": "" }
c168184
validation
// Streaming the output of an SSH session in virtualbox.
{ "resource": "" }
c168185
validation
// NewDriver creates a new Hyper-v driver with default settings.
{ "resource": "" }
c168186
validation
// waitForIP waits until the host has a valid IP
{ "resource": "" }
c168187
validation
// waitStopped waits until the host is stopped
{ "resource": "" }
c168188
validation
// Start starts an host
{ "resource": "" }
c168189
validation
// Stop stops an host
{ "resource": "" }
c168190
validation
// Remove removes an host
{ "resource": "" }
c168191
validation
// generateDiskImage creates a small fixed vhd, put the tar in, convert to dynamic, then resize
{ "resource": "" }
c168192
validation
// GetIP returns the ip
{ "resource": "" }
c168193
validation
// GetSSHKeyPath returns the ssh key path
{ "resource": "" }
c168194
validation
// GetSSHPort returns the ssh port, 22 if not specified
{ "resource": "" }
c168195
validation
// GetSSHUsername returns the ssh user name, root if not specified
{ "resource": "" }
c168196
validation
// ResolveStorePath returns the store path where the machine is
{ "resource": "" }
c168197
validation
// SetSwarmConfigFromFlags configures the driver for swarm
{ "resource": "" }
c168198
validation
// IsVTXDisabledInTheVM checks if VT-X is disabled in the started vm.
{ "resource": "" }
c168199
validation
// getReleaseTag gets the release tag of Boot2Docker from apiURL.
{ "resource": "" }