_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c3500
// DestroyController mocks base method
c3501
// InstanceTypes mocks base method
c3502
// Instances mocks base method
c3503
// MaintainInstance mocks base method
c3504
// PrecheckInstance mocks base method
c3505
// PrepareForBootstrap mocks base method
c3506
// Provider mocks base method
c3507
// SetConfig mocks base method
c3508
// StopInstances mocks base method
c3509
// StorageProvider mocks base method
c3510
// StorageProvider indicates an expected call of StorageProvider
c3511
// StorageProviderTypes mocks base method
c3512
// NewStorageAddCommand makes a jujuc storage-add command.
c3513
// IAASManifolds returns a set of co-configured manifolds covering the // various responsibilities of a IAAS machine agent.
c3514
// CAASManifolds returns a set of co-configured manifolds covering the // various responsibilities of a CAAS machine agent.
c3515
// OpenPorts is not supported.
c3516
// IngressRules returns the port ranges opened for the whole environment. // Must only be used if the environment was setup with the // FwGlobal firewall mode.
c3517
// DeleteGroups implements OpenstackFirewaller interface.
c3518
// DeleteAllControllerGroups implements OpenstackFirewaller interface.
c3519
// GetSecurityGroups implements OpenstackFirewaller interface.
c3520
// SetUpGroups implements OpenstackFirewaller interface.
c3521
// filesystemsChanged is called when the lifecycle states of the filesystems // with the provided IDs have been seen to have changed.
c3522
// filesystemAttachmentsChanged is called when the lifecycle states of the filesystem // attachments with the provided IDs have been seen to have changed.
c3523
// processDyingFilesystems processes the FilesystemResults for Dying filesystems, // removing them from provisioning-pending as necessary.
c3524
// updatePendingFilesystemAttachment adds the given filesystem attachment params to // either the incomplete set or the schedule. If the params are incomplete // due to a missing instance ID, updatePendingFilesystemAttachment will request // that the machine be watched so its instance ID can be learned.
c3525
// processDeadFilesystems processes the FilesystemResults for Dead filesystems, // deprovisioning filesystems and removing from state as necessary.
c3526
// processDyingFilesystemAttachments processes the FilesystemAttachmentResults for // Dying filesystem attachments, detaching filesystems and updating state as necessary.
c3527
// processAliveFilesystems processes the FilesystemResults for Alive filesystems, // provisioning filesystems and setting the info in state as necessary.
c3528
// processAliveFilesystemAttachments processes the FilesystemAttachmentResults // for Alive filesystem attachments, attaching filesystems and setting the info // in state as necessary.
c3529
// filesystemAttachmentParams obtains the specified attachments' parameters.
c3530
// filesystemParams obtains the specified filesystems' parameters.
c3531
// removeFilesystemParams obtains the specified filesystems' destruction parameters.
c3532
// extractCatalogsForProducts gives you just those catalogs from a // cloudImageMetadata that are for the given product IDs. They are kept in // the order of the parameter.
c3533
// extractIndexes returns just the array of indexes, in arbitrary order.
c3534
// hasCloud tells you whether an IndexMetadata has the given cloud in its // Clouds list. If IndexMetadata has no clouds defined, then hasCloud // returns true regardless so that the corresponding product records // are searched.
c3535
// hasProduct tells you whether an IndexMetadata provides any of the given // product IDs.
c3536
// filter returns those entries from an IndexMetadata array for which the given // match function returns true. It preserves order.
c3537
// UnsignedIndex returns an unsigned index file name for streamsVersion.
c3538
// getMaybeSignedMetadata returns metadata records matching the specified constraint in params.
c3539
// fetchIndex attempts to load the index file at indexPath in source.
c3540
// fetchData gets all the data from the given source located at the specified path. // It returns the data found and the full URL used.
c3541
// GetIndexWithFormat returns a simplestreams index of the specified format. // Exported for testing.
c3542
// getMirrorRefs parses and returns a simplestreams mirror reference.
c3543
// getMirror returns a mirror info struct matching the specified content and cloud.
c3544
// GetProductsPath returns the path to the metadata file containing products for the specified constraint. // Exported for testing.
c3545
// extractMirrorRefs returns just the array of MirrorRef structs for the contentId, in arbitrary order.
c3546
// hasCloud tells you whether a MirrorReference has the given cloud in its // Clouds list.
c3547
// getMirrorReference returns the reference to the metadata file containing mirrors for the specified content and cloud.
c3548
// getMirrorInfo returns mirror information from the mirror file at the given path for the specified content and cloud.
c3549
// GetMirrorMetadataWithFormat returns simplestreams mirror data of the specified format. // Exported for testing.
c3550
// hasCloud tells you whether an MirrorInfo has the given cloud in its // Clouds list.
c3551
// getMirrorInfo returns the mirror metadata for the specified content and cloud.
c3552
// utility function to see if element exists in values slice.
c3553
// processAliases looks through the struct fields to see if // any aliases apply, and sets attributes appropriately if so.
c3554
// Apply any attribute aliases to the metadata records.
c3555
// construct iterates over the metadata records and replaces the generic maps of values // with structs of the required type.
c3556
// GetCloudMetadataWithFormat loads the entire cloud metadata encoded using the specified format. // Exported for testing.
c3557
// ParseCloudMetadata parses the given bytes into simplestreams metadata.
c3558
// paramsFromProviderSpaceInfo converts a ProviderSpaceInfo into the // equivalent params.RemoteSpace.
c3559
// spaceInfoFromState converts a state.Space into the equivalent // network.SpaceInfo.
c3560
// findInstanceSpec returns an image and instance type satisfying the constraint. // The instance type comes from querying the flavors supported by the deployment.
c3561
// NewClient creates a new client for accessing the undertaker API.
c3562
// WatchModelResources starts a watcher for changes to the model's // machines and applications.
c3563
// NewFirewall returns a new Firewall
c3564
// OpenPorts is specified on the environ.Firewaller interface.
c3565
// ClosePorts is specified on the environ.Firewaller interface.
c3566
// IngressRules is specified on the environ.Firewaller interface.
c3567
// MachineIngressRules returns all ingress rules from the machine specific sec list
c3568
// OpenPortsOnInstance will open ports corresponding to the supplied rules // on the given instance
c3569
// ClosePortsOnInstnace will close ports corresponding to the supplied rules // for a given instance.
c3570
// CreateMachineSecLists creates a security list for the given instance. // It's worth noting that this function also ensures that the default environment // sec list is also present, and has the appropriate default rules. // The port parameter is the API port for the state machine, for which we need // to create rules.
c3571
// DeleteMachineSecList will delete the security list on the given machine
c3572
// RemoveACLAndRules will remove the ACL and any associated rules.
c3573
// GlobalIngressRules returns the ingress rules applied to the whole environment.
c3574
// getDefaultIngressRules will create the default ingressRules given an api port
c3575
// closePortsOnList on list will close all ports corresponding to the supplied ingress rules // on a particular list
c3576
// deleteAllSecRulesOnList will delete all security rules from a give // security list
c3577
// maybeDeleteList tries to delete a security list. Lists that are still in use // may not be deleted. When deleting an environment, we want to also cleanup the // environment level sec list. This function attempts to delete a sec list. If the // sec list still has some associations to any instance, we simply return and assume // the last VM to get killed as part of the tear-down, will also remove the global // list as well
c3578
// getAllApplications returns all security applications known to the // oracle compute cloud. These are used as part of security rules
c3579
// getAllApplicationsAsMap returns all sec applications as a map
c3580
// convertToSecRules converts network.IngressRules to api.SecRuleParams
c3581
// convertApplicationToPortRange takes a SecApplication and // converts it to a network.PortRange type
c3582
// convertFromSecRules takes a slice of security rules and creates a map of them
c3583
// globalGroupName returns the global group name // derived from the model UUID
c3584
// machineGroupName returns the machine group name // derived from the model UUID and the machine ID
c3585
// resourceName returns the resource name // derived from the model UUID and the name of the resource
c3586
// get all security rules associated with an ACL
c3587
// getSecRules retrieves the security rules associated with a particular security list
c3588
// ensureSecRules ensures that the list passed has all the rules // that it needs, if one is missing it will create it inside the oracle // cloud environment and it will return nil // if none rule is missing then it will return nil
c3589
// ensureSecList creates a new seclist if one does not already exist. // this function is idempotent
c3590
// getAllIPListsAsMap returns all IP lists as a map, with the key being // the resource name
c3591
// ensureSecIpList ensures that a sec ip list with the provided cidr list // exists. If one does not, it gets created. This function is idempotent.
c3592
// sendError sends a JSON-encoded error response. // Note the difference from the error response sent by // the sendError function - the error is encoded directly // rather than in the Error field.
c3593
// Get returns the resource for the given id, or // nil if there is no such resource.
c3594
// Register registers the given resource. It returns a unique // identifier for the resource which can then be used in // subsequent API requests to refer to the resource.
c3595
// Stop stops the resource with the given id and unregisters it. // It returns any error from the underlying Stop call. // It does not return an error if the resource has already // been unregistered.
c3596
// StopAll stops all the resources.
c3597
// Count returns the number of resources currently held.
c3598
// ProviderId returns the provider id of the space. This will be the empty // string except on substrates that directly support spaces.
c3599
// Subnets returns all the subnets associated with the Space.