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