_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c157300 | train | // SetSLA sets the SLA on the current connected model. | {
"resource": ""
} | ||
c157301 | train | // SetModelMeterStatus sets the meter status for the current connected model. | {
"resource": ""
} | ||
c157302 | train | // ModelMeterStatus returns the meter status for the current connected model. | {
"resource": ""
} | ||
c157303 | train | // SLALevel returns the SLA level of the current connected model. | {
"resource": ""
} | ||
c157304 | train | // SLACredential returns the SLA credential of the current connected model. | {
"resource": ""
} | ||
c157305 | train | // stateStepsFor254 returns the upgrade steps for Juju 2.5.4 that manipulates
// state directly. | {
"resource": ""
} | ||
c157306 | train | // DefaultNetplanBridger returns a Bridger instance that can parse a set
// of netplan yaml files to transform existing devices into bridged devices. | {
"resource": ""
} | ||
c157307 | train | // match returns true if itype can satisfy the supplied constraints. If so,
// it also returns a copy of itype with any arches that do not match the
// constraints filtered out. | {
"resource": ""
} | ||
c157308 | train | // filterArches returns every element of src that also exists in filter. | {
"resource": ""
} | ||
c157309 | train | // matchingTypesForConstraint returns instance types from allTypes which match cons. | {
"resource": ""
} | ||
c157310 | train | // tagsMatch returns if the tags in wanted all exist in have.
// Note that duplicates of tags are disregarded in both lists | {
"resource": ""
} | ||
c157311 | train | // Validate reports whether or not the configuration is valid. | {
"resource": ""
} | ||
c157312 | train | // setMachineAddresses sets the addresses for this machine to all of the
// host's non-loopback interface IP addresses. | {
"resource": ""
} | ||
c157313 | train | // NewAPI implements the API used by the machine undertaker worker to
// find out what provider-level resources need to be cleaned up when a
// machine goes away. | {
"resource": ""
} | ||
c157314 | train | // AllMachineRemovals returns tags for all of the machines that have
// been marked for removal in the requested model. | {
"resource": ""
} | ||
c157315 | train | // GetMachineProviderInterfaceInfo returns the provider details for
// all network interfaces attached to the machines requested. | {
"resource": ""
} | ||
c157316 | train | // CompleteMachineRemovals removes the specified machines from the
// model database. It should only be called once any provider-level
// cleanup has been done for those machines. | {
"resource": ""
} | ||
c157317 | train | // WatchMachineRemovals returns a watcher that will signal each time a
// machine is marked for removal. | {
"resource": ""
} | ||
c157318 | train | // NewWorker returns a new worker that watches for changes to restore
// info, and reports the status to the provided function. | {
"resource": ""
} | ||
c157319 | train | // RestoreStatus returns the most recently observed restore status. | {
"resource": ""
} | ||
c157320 | train | // WatchActionNotifications returns a StringsWatcher for observing the
// IDs of Actions added to the Machine. The initial event will contain the
// IDs of any Actions pending at the time the Watcher is made. | {
"resource": ""
} | ||
c157321 | train | // RunningActions returns a list of actions running for the given machine tag. | {
"resource": ""
} | ||
c157322 | train | // newSecurityRule returns a security rule with the given parameters. | {
"resource": ""
} | ||
c157323 | train | // networkTemplateResources returns resource definitions for creating network
// resources shared by all machines in a model.
//
// If apiPort is -1, then there should be no controller subnet created, and
// no network security rule allowing Juju API traffic. | {
"resource": ""
} | ||
c157324 | train | // nextSecurityRulePriority returns the next available priority in the given
// security group within a specified range. | {
"resource": ""
} | ||
c157325 | train | // machineSubnetIP returns the private IP address to use for the given
// subnet prefix. | {
"resource": ""
} | ||
c157326 | train | // networkSecurityRules returns the network security rules for the internal
// network security group in the specified resource group. If the network
// security group has not been created, this function will return an error
// satisfying errors.IsNotFound. | {
"resource": ""
} | ||
c157327 | train | // CharmURL returns the charm url string for this application. | {
"resource": ""
} | ||
c157328 | train | // Config returns a copy of the current application config. | {
"resource": ""
} | ||
c157329 | train | // WatchConfig creates a watcher for the application config. | {
"resource": ""
} | ||
c157330 | train | // stateStepsFor23 returns upgrade steps for Juju 2.3.0 that manipulate state directly. | {
"resource": ""
} | ||
c157331 | train | // stateStepsFor231 returns upgrade steps for Juju 2.3.1 that manipulate state directly. | {
"resource": ""
} | ||
c157332 | train | // MarshalImageMetadataJSON marshals image metadata to index and products JSON.
//
// updated is the time at which the JSON file was updated. | {
"resource": ""
} | ||
c157333 | train | // MarshalImageMetadataIndexJSON marshals image metadata to index JSON.
//
// updated is the time at which the JSON file was updated. | {
"resource": ""
} | ||
c157334 | train | // MarshalImageMetadataProductsJSON marshals image metadata to products JSON.
//
// updated is the time at which the JSON file was updated. | {
"resource": ""
} | ||
c157335 | train | // NewMockInterface creates a new mock instance | {
"resource": ""
} | ||
c157336 | train | // Admissionregistration mocks base method | {
"resource": ""
} | ||
c157337 | train | // Admissionregistration indicates an expected call of Admissionregistration | {
"resource": ""
} | ||
c157338 | train | // AdmissionregistrationV1alpha1 mocks base method | {
"resource": ""
} | ||
c157339 | train | // Apps mocks base method | {
"resource": ""
} | ||
c157340 | train | // AppsV1beta1 mocks base method | {
"resource": ""
} | ||
c157341 | train | // AppsV1beta2 mocks base method | {
"resource": ""
} | ||
c157342 | train | // Authentication mocks base method | {
"resource": ""
} | ||
c157343 | train | // AuthenticationV1beta1 mocks base method | {
"resource": ""
} | ||
c157344 | train | // AuthorizationV1 mocks base method | {
"resource": ""
} | ||
c157345 | train | // AuthorizationV1beta1 mocks base method | {
"resource": ""
} | ||
c157346 | train | // Autoscaling mocks base method | {
"resource": ""
} | ||
c157347 | train | // AutoscalingV2beta1 mocks base method | {
"resource": ""
} | ||
c157348 | train | // BatchV1beta1 mocks base method | {
"resource": ""
} | ||
c157349 | train | // BatchV2alpha1 mocks base method | {
"resource": ""
} | ||
c157350 | train | // Certificates mocks base method | {
"resource": ""
} | ||
c157351 | train | // CoordinationV1beta1 mocks base method | {
"resource": ""
} | ||
c157352 | train | // Core mocks base method | {
"resource": ""
} | ||
c157353 | train | // Extensions mocks base method | {
"resource": ""
} | ||
c157354 | train | // Networking mocks base method | {
"resource": ""
} | ||
c157355 | train | // Policy mocks base method | {
"resource": ""
} | ||
c157356 | train | // Rbac mocks base method | {
"resource": ""
} | ||
c157357 | train | // RbacV1alpha1 mocks base method | {
"resource": ""
} | ||
c157358 | train | // RbacV1beta1 mocks base method | {
"resource": ""
} | ||
c157359 | train | // Scheduling mocks base method | {
"resource": ""
} | ||
c157360 | train | // SchedulingV1alpha1 mocks base method | {
"resource": ""
} | ||
c157361 | train | // SettingsV1alpha1 mocks base method | {
"resource": ""
} | ||
c157362 | train | // Storage mocks base method | {
"resource": ""
} | ||
c157363 | train | // StorageV1alpha1 mocks base method | {
"resource": ""
} | ||
c157364 | train | // StorageV1beta1 mocks base method | {
"resource": ""
} | ||
c157365 | train | // readResource extracts the relevant info from the request. | {
"resource": ""
} | ||
c157366 | train | // updateResource returns a copy of the provided resource, updated with
// the given information. | {
"resource": ""
} | ||
c157367 | train | // extractUploadRequest pulls the required info from the HTTP request. | {
"resource": ""
} | ||
c157368 | train | // New returns a new API facade for the hostkeyreporter worker. | {
"resource": ""
} | ||
c157369 | train | // ReportKeys sets the SSH host keys for one or more entities. | {
"resource": ""
} | ||
c157370 | train | // setParams sets parameters based on the environment configuration
// for those which have not been explicitly specified. | {
"resource": ""
} | ||
c157371 | train | // Helper method to create a firewall rule string for the given port | {
"resource": ""
} | ||
c157372 | train | // Helper method to check if a firewall rule string already exist | {
"resource": ""
} | ||
c157373 | train | // Helper method to get port from the given firewall rules | {
"resource": ""
} | ||
c157374 | train | // NewAddCredentialCommand returns a command to add credential information. | {
"resource": ""
} | ||
c157375 | train | // ValidateImageMetadata attempts to load image metadata for the specified cloud attributes and stream
// and returns any image ids found, or an error if the metadata could not be loaded. | {
"resource": ""
} | ||
c157376 | train | // NewBody returns an HTTP request body and content type
// suitable for using to make an HTTP request containing
// the given attached body data and JSON-marshaled metadata.
//
// The name parameter is used to identify the attached "file", so
// a filename is an appropriate value. | {
"resource": ""
} | ||
c157377 | train | // Read implements io.Seeker.Seek. It can only be used to seek to the
// start. | {
"resource": ""
} | ||
c157378 | train | // Get extracts the attached file and its metadata from the multipart
// data in the request. The metadata is JSON-unmarshaled into the value
// pointed to by metaResult. | {
"resource": ""
} | ||
c157379 | train | // NewStateFromFacade creates a new provisioner facade using the input
// facade caller. | {
"resource": ""
} | ||
c157380 | train | // machineLife requests the lifecycle of the given machine from the server. | {
"resource": ""
} | ||
c157381 | train | // Machine provides access to methods of a state.Machine through the facade
// for the given tags. | {
"resource": ""
} | ||
c157382 | train | // MachinesWithTransientErrors returns a slice of machines and corresponding status information
// for those machines which have transient provisioning errors. | {
"resource": ""
} | ||
c157383 | train | // FindTools returns al ist of tools matching the specified version number and
// series, and, arch. If arch is blank, a default will be used. | {
"resource": ""
} | ||
c157384 | train | // ReleaseContainerAddresses releases a static IP address allocated to a
// container. | {
"resource": ""
} | ||
c157385 | train | // SetHostMachineNetworkConfig sets the network configuration of the
// machine with netConfig | {
"resource": ""
} | ||
c157386 | train | // DistributionGroupByMachineId returns a slice of machine.Ids
// that belong to the same distribution group as the given
// Machine. The provisioner may use this information
// to distribute instances for high availability. | {
"resource": ""
} | ||
c157387 | train | // CACert returns the certificate used to validate the API and state connections. | {
"resource": ""
} | ||
c157388 | train | // GetContainerProfileInfo returns a slice of ContainerLXDProfile, 1 for each unit's charm
// which contains an lxd-profile.yaml. | {
"resource": ""
} | ||
c157389 | train | // OpenPorts implements instances.Instance.OpenPorts. | {
"resource": ""
} | ||
c157390 | train | // initCAASVersions collects state relevant to an upgrade decision. The returned
// agent and client versions, and the list of currently available operator images, will
// always be accurate; the chosen version, and the flag indicating development
// mode, may remain blank until uploadTools or validate is called. | {
"resource": ""
} | ||
c157391 | train | // NewHookContextFacade returns a new payloads hook context facade for
// the State and Unit given. It is used for facade registration. | {
"resource": ""
} | ||
c157392 | train | // Track stores a payload to be tracked in state. | {
"resource": ""
} | ||
c157393 | train | // List builds the list of payload being tracked for
// the given unit and IDs. If no IDs are provided then all tracked
// payloads for the unit are returned. | {
"resource": ""
} | ||
c157394 | train | // LookUp identifies the payload with the provided name and raw ID. | {
"resource": ""
} | ||
c157395 | train | // SetStatus sets the raw status of a payload. | {
"resource": ""
} | ||
c157396 | train | // Untrack marks the identified payload as no longer being tracked. | {
"resource": ""
} | ||
c157397 | train | // newPayloadResult builds a new PayloadResult from the provided tag
// and error. NotFound is also set based on the error. | {
"resource": ""
} | ||
c157398 | train | // Result2api converts the payload.Result into a PayloadResult. | {
"resource": ""
} | ||
c157399 | train | // NewListCharmResourcesCommand returns a new command that lists resources defined
// by a charm. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.