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