_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c3800 | train | // InstanceStatus implements MachineProvisioner.InstanceStatus. | {
"resource": ""
} | ||
c3801 | train | // SetModificationStatus implements MachineProvisioner.SetModificationStatus. | {
"resource": ""
} | ||
c3802 | train | // AvailabilityZone implements MachineProvisioner.AvailabilityZone. | {
"resource": ""
} | ||
c3803 | train | // SetInstanceInfo implements MachineProvisioner.SetInstanceInfo. | {
"resource": ""
} | ||
c3804 | train | // WatchContainers implements MachineProvisioner.WatchContainers. | {
"resource": ""
} | ||
c3805 | train | // WatchAllContainers implements MachineProvisioner.WatchAllContainers. | {
"resource": ""
} | ||
c3806 | train | // SetSupportedContainers implements MachineProvisioner.SetSupportedContainers. | {
"resource": ""
} | ||
c3807 | train | // SupportedContainers implements MachineProvisioner.SupportedContainers. | {
"resource": ""
} | ||
c3808 | train | // SetCharmProfiles implements MachineProvisioner.SetCharmProfiles. | {
"resource": ""
} | ||
c3809 | train | // Init read and verifies the arguments. | {
"resource": ""
} | ||
c3810 | train | // LeadershipClaimer returns a leadership.Claimer for units and applications in the
// state's model. | {
"resource": ""
} | ||
c3811 | train | // LeadershipChecker returns a leadership.Checker for units and applications in the
// state's model. | {
"resource": ""
} | ||
c3812 | train | // buildTxnWithLeadership returns a transaction source that combines the supplied source
// with checks and asserts on the supplied token. | {
"resource": ""
} | ||
c3813 | train | // InitDbLogs sets up the indexes for the logs collection. It should
// be called as state is opened. It is idempotent. | {
"resource": ""
} | ||
c3814 | train | // NewLastSentLogTracker returns a new tracker that records and retrieves
// the timestamps of the most recent log records forwarded to the
// identified log sink for the current model. | {
"resource": ""
} | ||
c3815 | train | // Set records the timestamp. | {
"resource": ""
} | ||
c3816 | train | // Get retrieves the id and timestamp. | {
"resource": ""
} | ||
c3817 | train | // Log writes log messages to the database. Log records
// are written to the database in bulk; callers should
// buffer log records to and call Log with a batch to
// minimise database writes.
//
// The ModelUUID and ID fields of records are ignored;
// DbLogger is scoped to a single model, and ID is
// controlled by ... | {
"resource": ""
} | ||
c3818 | train | // Close cleans up resources used by the DbLogger instance. | {
"resource": ""
} | ||
c3819 | train | // NewLogTailer returns a LogTailer which filters according to the
// parameters given. | {
"resource": ""
} | ||
c3820 | train | // Stop implements the LogTailer interface. | {
"resource": ""
} | ||
c3821 | train | // initLogsSession creates a new session suitable for logging updates,
// returning the session and a logs mgo.Collection connected to that
// session. | {
"resource": ""
} | ||
c3822 | train | // getCollectionTotalMB returns the total size of the log collections
// passed. | {
"resource": ""
} | ||
c3823 | train | // getLogCollections returns all of the log collections in the DB by
// model UUID. | {
"resource": ""
} | ||
c3824 | train | // findModelWithMostLogs returns the modelUUID and row count for the
// collection with the most logs in the logs DB. | {
"resource": ""
} | ||
c3825 | train | // getRowCountForCollection returns the number of log records stored for a
// given model log collection. | {
"resource": ""
} | ||
c3826 | train | // SetUpGroups creates the security groups for the new machine, and
// returns them.
//
// Instances are tagged with a group so they can be distinguished from
// other instances that might be running on the same OpenStack account.
// In addition, a specific machine security group is created for each
// machine, so that... | {
"resource": ""
} | ||
c3827 | train | // ensureGroup returns the security group with name and perms.
// If a group with name does not exist, one will be created.
// If it exists, its permissions are set to perms. | {
"resource": ""
} | ||
c3828 | train | // DeleteAllModelGroups implements Firewaller interface. | {
"resource": ""
} | ||
c3829 | train | // DeleteGroups implements Firewaller interface. | {
"resource": ""
} | ||
c3830 | train | // ruleMatchesPortRange checks if supplied nova security group rule matches the port range | {
"resource": ""
} | ||
c3831 | train | // List provides the implementation of the API method. | {
"resource": ""
} | ||
c3832 | train | // AuthorisedKeys returns the authorised ssh keys for the machine specified by machineTag. | {
"resource": ""
} | ||
c3833 | train | // WatchAuthorisedKeys returns a notify watcher that looks for changes in the
// authorised ssh keys for the machine specified by machineTag. | {
"resource": ""
} | ||
c3834 | train | // precheckInstance calls the state's assigned policy, if non-nil, to obtain
// a Prechecker, and calls PrecheckInstance if a non-nil Prechecker is returned. | {
"resource": ""
} | ||
c3835 | train | // ResolveConstraints combines the given constraints with the environ constraints to get
// a constraints which will be used to create a new instance. | {
"resource": ""
} | ||
c3836 | train | // validateConstraints returns an error if the given constraints are not valid for the
// current model, and also any unsupported attributes. | {
"resource": ""
} | ||
c3837 | train | // validate calls the state's assigned policy, if non-nil, to obtain
// a config.Validator, and calls Validate if a non-nil config.Validator is
// returned. | {
"resource": ""
} | ||
c3838 | train | // Id returns the id string of this machine. | {
"resource": ""
} | ||
c3839 | train | // InstanceId returns the provider specific instance id for this machine and
// returns not provisioned if instance id is empty | {
"resource": ""
} | ||
c3840 | train | // CharmProfiles returns the cached list of charm profiles for the machine | {
"resource": ""
} | ||
c3841 | train | // Units returns all the units that have been assigned to the machine
// including subordinates. | {
"resource": ""
} | ||
c3842 | train | // newInstanceType creates an InstanceType based on a VirtualMachineSize. | {
"resource": ""
} | ||
c3843 | train | // If you specify no constraints at all, you're going to get the smallest
// instance type available. In practice that one's a bit small, so unless
// the constraints are deliberately set lower, this gives you a set of
// baseline constraints that are just slightly more ambitious than that. | {
"resource": ""
} | ||
c3844 | train | // NewFirewallerFacade creates a firewaller API facade. | {
"resource": ""
} | ||
c3845 | train | // NewWorker creates a firewaller worker. | {
"resource": ""
} | ||
c3846 | train | // crossmodelFirewallerFacadeFunc returns a function that
// can be used to construct instances which manage remote relation
// firewall changes for a given model.
// For now we use a facade, but in future this may evolve into a REST caller. | {
"resource": ""
} | ||
c3847 | train | // NewWorker returns a new global clock updater worker, using the given
// configuration. | {
"resource": ""
} | ||
c3848 | train | // SetStatus updates the status of the relation. | {
"resource": ""
} | ||
c3849 | train | // Endpoint returns the endpoint of the relation for the application the
// uniter's managed unit belongs to. | {
"resource": ""
} | ||
c3850 | train | // NewListCommand returns a new command that lists resources defined
// by a charm. | {
"resource": ""
} | ||
c3851 | train | // NewMachinerAPI creates a new instance of the Machiner API. | {
"resource": ""
} | ||
c3852 | train | // Jobs returns the jobs assigned to the given entities. | {
"resource": ""
} | ||
c3853 | train | // GetCollection is part of the lease.Mongo interface. | {
"resource": ""
} | ||
c3854 | train | // RunTransaction is part of the lease.Mongo interface. | {
"resource": ""
} | ||
c3855 | train | // SetUpgradeMongoMode writes a value in the state server to be picked up
// by api servers to know that there is an upgrade ready to happen. | {
"resource": ""
} | ||
c3856 | train | // ResumeReplication will add all passed members to replicaset. | {
"resource": ""
} | ||
c3857 | train | // NewCleanerAPI creates a new instance of the Cleaner API. | {
"resource": ""
} | ||
c3858 | train | // WatchChanges watches for cleanups to be perfomed in state | {
"resource": ""
} | ||
c3859 | train | // ChangeAgentTools does the actual agent upgrade.
// It should be called just before an agent exits, so that
// it will restart running the new tools. | {
"resource": ""
} | ||
c3860 | train | // IsAuthorisationFailure reports whether the error is related to
// attempting to access the provider with invalid or expired credentials. | {
"resource": ""
} | ||
c3861 | train | // HandleCredentialError marks the current credentials as invalid internally
// if Oracle believes that they are expired | {
"resource": ""
} | ||
c3862 | train | // Manifold returns a dependency manifold that runs a log forwarding
// worker, using the resource names defined in the supplied config. | {
"resource": ""
} | ||
c3863 | train | // Open implements environs.EnvironProvider. | {
"resource": ""
} | ||
c3864 | train | // Validate implements config.Validator. | {
"resource": ""
} | ||
c3865 | train | // NewMockLinkLayerDevice creates a new mock instance | {
"resource": ""
} | ||
c3866 | train | // Addresses mocks base method | {
"resource": ""
} | ||
c3867 | train | // Addresses indicates an expected call of Addresses | {
"resource": ""
} | ||
c3868 | train | // EthernetDeviceForBridge mocks base method | {
"resource": ""
} | ||
c3869 | train | // EthernetDeviceForBridge indicates an expected call of EthernetDeviceForBridge | {
"resource": ""
} | ||
c3870 | train | // IsUp mocks base method | {
"resource": ""
} | ||
c3871 | train | // MTU mocks base method | {
"resource": ""
} | ||
c3872 | train | // ParentDevice mocks base method | {
"resource": ""
} | ||
c3873 | train | // NewMockUnit creates a new mock instance | {
"resource": ""
} | ||
c3874 | train | // NewMockApplication creates a new mock instance | {
"resource": ""
} | ||
c3875 | train | // NewMockCharm creates a new mock instance | {
"resource": ""
} | ||
c3876 | train | // AddFlags injects common agent flags into f. | {
"resource": ""
} | ||
c3877 | train | // CheckArgs reports whether the given args are valid for this agent. | {
"resource": ""
} | ||
c3878 | train | // ReadConfig reads the agent's config from its config file. | {
"resource": ""
} | ||
c3879 | train | // ChangeConfig modifies this configuration using the given mutator. | {
"resource": ""
} | ||
c3880 | train | // CurrentConfig returns the agent config for this agent. | {
"resource": ""
} | ||
c3881 | train | // GetJujuVersion gets the version of the agent from agent's config file | {
"resource": ""
} | ||
c3882 | train | // NewMockRunner creates a new mock instance | {
"resource": ""
} | ||
c3883 | train | // MaybePruneTransactions mocks base method | {
"resource": ""
} | ||
c3884 | train | // ResumeTransactions mocks base method | {
"resource": ""
} | ||
c3885 | train | // ResumeTransactions indicates an expected call of ResumeTransactions | {
"resource": ""
} | ||
c3886 | train | // Run mocks base method | {
"resource": ""
} | ||
c3887 | train | // Run indicates an expected call of Run | {
"resource": ""
} | ||
c3888 | train | // NewMockEnviron creates a new mock instance | {
"resource": ""
} | ||
c3889 | train | // AllInstances mocks base method | {
"resource": ""
} | ||
c3890 | train | // Bootstrap mocks base method | {
"resource": ""
} | ||
c3891 | train | // ControllerInstances mocks base method | {
"resource": ""
} | ||
c3892 | train | // DestroyController indicates an expected call of DestroyController | {
"resource": ""
} | ||
c3893 | train | // Provider indicates an expected call of Provider | {
"resource": ""
} | ||
c3894 | train | // NewK8sBroker returns a kubernetes client for the specified k8s cluster. | {
"resource": ""
} | ||
c3895 | train | // addAnnotations set an annotation to current namespace's annotations. | {
"resource": ""
} | ||
c3896 | train | // Config returns environ config. | {
"resource": ""
} | ||
c3897 | train | // PrepareForBootstrap prepares for bootstraping a controller. | {
"resource": ""
} | ||
c3898 | train | // Create implements environs.BootstrapEnviron. | {
"resource": ""
} | ||
c3899 | train | // Bootstrap deploys controller with mongoDB together into k8s cluster. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.