_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c156300 | train | // AttachStorage attaches storage to a unit, creating and attaching machine
// storage as necessary. | {
"resource": ""
} | ||
c156301 | train | // DetachStorage ensures that the existing storage attachments of
// the specified unit are removed at some point. | {
"resource": ""
} | ||
c156302 | train | // Remove removes the storage attachment from state, and may remove its storage
// instance as well, if the storage instance is Dying and no other references to
// it exist. It will fail if the storage attachment is not Dying. | {
"resource": ""
} | ||
c156303 | train | // removeStorageInstancesOps returns the transaction operations to remove all
// storage instances owned by the specified entity. | {
"resource": ""
} | ||
c156304 | train | // validateStoragePool validates the storage pool for the model.
// If machineId is non-nil, the storage scope will be validated against
// the machineId; if the storage is not machine-scoped, then the machineId
// will be updated to "". | {
"resource": ""
} | ||
c156305 | train | // storageConstraintsWithDefaults returns a constraints
// derived from cons, with any defaults filled in. | {
"resource": ""
} | ||
c156306 | train | // defaultStoragePool returns the default storage pool for the model.
// The default pool is either user specified, or one that is registered by the provider itself. | {
"resource": ""
} | ||
c156307 | train | // AddStorageForUnit adds storage instances to given unit as specified.
//
// Missing storage constraints are populated based on model defaults.
// Storage store name is used to retrieve existing storage instances
// for this store. Combination of existing storage instances and
// anticipated additional storage instanc... | {
"resource": ""
} | ||
c156308 | train | // addStorage adds storage instances to given unit as specified. | {
"resource": ""
} | ||
c156309 | train | // addUnitStorageOps returns transaction ops to create storage for the given
// unit. If countMin is non-negative, the Count field of the constraints will
// be ignored, and as many storage instances as necessary to make up the
// shortfall will be created. | {
"resource": ""
} | ||
c156310 | train | // hostStorageOps creates txn.Ops for creating volumes, filesystems,
// and attachments to the specified host. The results are the txn.Ops,
// and the tags of volumes and filesystems newly attached to the host. | {
"resource": ""
} | ||
c156311 | train | // addMachineStorageAttachmentsOps returns txn.Ops for adding the IDs of
// attached volumes and filesystems to an existing machine. Filesystem
// mount points are checked against existing filesystem attachments for
// conflicts, with a txn.Op added to prevent concurrent additions as
// necessary. | {
"resource": ""
} | ||
c156312 | train | // OpenSyslog returns a sink used to receive log messages to be forwarded. | {
"resource": ""
} | ||
c156313 | train | // aboutToRestoreMethodsOnly can be used with restrictRoot to restrict
// the API to the methods allowed when the server is in
// state.RestorePreparing mode. | {
"resource": ""
} | ||
c156314 | train | // NewMockServiceAccountInterface creates a new mock instance | {
"resource": ""
} | ||
c156315 | train | // CreateToken mocks base method | {
"resource": ""
} | ||
c156316 | train | // FromNetworkPort is a convenience helper to create a parameter
// out of the network type, here for Port. | {
"resource": ""
} | ||
c156317 | train | // NetworkPort is a convenience helper to return the parameter
// as network type, here for Port. | {
"resource": ""
} | ||
c156318 | train | // FromNetworkPortRange is a convenience helper to create a parameter
// out of the network type, here for PortRange. | {
"resource": ""
} | ||
c156319 | train | // NetworkPortRange is a convenience helper to return the parameter
// as network type, here for PortRange. | {
"resource": ""
} | ||
c156320 | train | // FromNetworkAddress is a convenience helper to create a parameter
// out of the network type, here for Address. | {
"resource": ""
} | ||
c156321 | train | // NetworkAddress is a convenience helper to return the parameter
// as network type, here for Address. | {
"resource": ""
} | ||
c156322 | train | // FromNetworkAddresses is a convenience helper to create a parameter
// out of the network type, here for a slice of Address. | {
"resource": ""
} | ||
c156323 | train | // NetworkAddresses is a convenience helper to return the parameter
// as network type, here for a slice of Address. | {
"resource": ""
} | ||
c156324 | train | // FromNetworkHostPort is a convenience helper to create a parameter
// out of the network type, here for HostPort. | {
"resource": ""
} | ||
c156325 | train | // NetworkHostPort is a convenience helper to return the parameter
// as network type, here for HostPort. | {
"resource": ""
} | ||
c156326 | train | // FromNetworkHostPorts is a helper to create a parameter
// out of the network type, here for a slice of HostPort. | {
"resource": ""
} | ||
c156327 | train | // NetworkHostPorts is a convenience helper to return the parameter
// as network type, here for a slice of HostPort. | {
"resource": ""
} | ||
c156328 | train | // FromNetworkHostsPorts is a helper to create a parameter
// out of the network type, here for a nested slice of HostPort. | {
"resource": ""
} | ||
c156329 | train | // NetworkHostsPorts is a convenience helper to return the parameter
// as network type, here for a nested slice of HostPort. | {
"resource": ""
} | ||
c156330 | train | // stateStepsFor25 returns upgrade steps for Juju 2.5.0 that manipulate state directly. | {
"resource": ""
} | ||
c156331 | train | // newAPIHandler returns a new apiHandler. | {
"resource": ""
} | ||
c156332 | train | // Call takes the object Id and an instance of ParamsType to create an object and place
// a call on its method. It then returns an instance of ResultType. | {
"resource": ""
} | ||
c156333 | train | // newAPIRoot returns a new apiRoot. | {
"resource": ""
} | ||
c156334 | train | // restrictAPIRoot calls restrictAPIRootDuringMaintenance, and
// then restricts the result further to the controller or model
// facades, depending on the type of login. | {
"resource": ""
} | ||
c156335 | train | // ModelPresence implements facade.ModelPresence. | {
"resource": ""
} | ||
c156336 | train | // LeadershipClaimer is part of the facade.Context interface. Getting
// a claimer for an arbitrary model is only supported for raft leases
// - only a claimer for the current model can be obtained with legacy
// leases. | {
"resource": ""
} | ||
c156337 | train | // LeadershipChecker is part of the facade.Context interface. | {
"resource": ""
} | ||
c156338 | train | // LeadershipPinner is part of the facade.Context interface.
// Pinning functionality is only available with the Raft leases implementation. | {
"resource": ""
} | ||
c156339 | train | // LeadershipReader is part of the facade.Context interface.
// It returns a reader that can be used to return all application leaders
// in the model. | {
"resource": ""
} | ||
c156340 | train | // SingularClaimer is part of the facade.Context interface. | {
"resource": ""
} | ||
c156341 | train | // newAdminRoot creates a new AnonRoot which dispatches to the given Admin API implementation. | {
"resource": ""
} | ||
c156342 | train | // AuthMachineAgent returns whether the current client is a machine agent. | {
"resource": ""
} | ||
c156343 | train | // AuthApplicationAgent returns whether the current client is an application operator. | {
"resource": ""
} | ||
c156344 | train | // AuthUnitAgent returns whether the current client is a unit agent. | {
"resource": ""
} | ||
c156345 | train | // AuthOwner returns whether the authenticated user's tag matches the
// given entity tag. | {
"resource": ""
} | ||
c156346 | train | // AuthController returns whether the authenticated user is a
// machine with running the ManageEnviron job. | {
"resource": ""
} | ||
c156347 | train | // AuthClient returns whether the authenticated entity is a client
// user. | {
"resource": ""
} | ||
c156348 | train | // GetAuthTag returns the tag of the authenticated entity, if any. | {
"resource": ""
} | ||
c156349 | train | // DescribeFacades returns the list of available Facades and their Versions | {
"resource": ""
} | ||
c156350 | train | // guiAddr returns an address where the GUI is available. | {
"resource": ""
} | ||
c156351 | train | // checkAvailable ensures the Juju GUI is available on the controller at
// one of the given URLs, returning the successful URL. | {
"resource": ""
} | ||
c156352 | train | // openBrowser opens the Juju GUI at the given URL. | {
"resource": ""
} | ||
c156353 | train | // showCredentials shows the admin username and password. | {
"resource": ""
} | ||
c156354 | train | // volumeAttachmentDevicePath returns the absolute device path for
// a volume attachment. The value is only meaningful in the context
// of the machine that the volume is attached to. | {
"resource": ""
} | ||
c156355 | train | // StorageTags returns the tags that should be set on a volume or filesystem,
// if the provider supports them. | {
"resource": ""
} | ||
c156356 | train | // ClassifyDetachedStorage classifies storage instances into those that will
// be destroyed, and those that will be detached, when their attachment is
// removed. Any storage that is not found will be omitted. | {
"resource": ""
} | ||
c156357 | train | // NewListControllersCommand returns a command to list registered controllers. | {
"resource": ""
} | ||
c156358 | train | // NewStringsWorker starts a new worker running the business logic
// from the handler. The worker loop is started in another goroutine
// as a side effect of calling this. | {
"resource": ""
} | ||
c156359 | train | // Id returns a provider-generated identifier for the Instance. | {
"resource": ""
} | ||
c156360 | train | // Status returns the provider-specific status for the instance. | {
"resource": ""
} | ||
c156361 | train | // Addresses returns a list of hostnames or ip addresses
// associated with the instance. This will supercede DNSName
// which can be implemented by selecting a preferred address. | {
"resource": ""
} | ||
c156362 | train | // OpenPorts opens the given ports on the instance, which
// should have been started with the given machine id. | {
"resource": ""
} | ||
c156363 | train | // IngressRules returns the set of ports open on the instance, which
// should have been started with the given machine id.
// The rules are returned as sorted by SortInstanceRules. | {
"resource": ""
} | ||
c156364 | train | // IsValidAddressConfigMethod returns whether the given value is a valid method
// to configure a link-layer network device's IP address. | {
"resource": ""
} | ||
c156365 | train | // DocID returns the globally unique ID of the IP address, including the model
// UUID as prefix. | {
"resource": ""
} | ||
c156366 | train | // ProviderID returns the provider-specific IP address ID, if set. | {
"resource": ""
} | ||
c156367 | train | // Machine returns the Machine this IP address belongs to. | {
"resource": ""
} | ||
c156368 | train | // Device returns the LinkLayeyDevice this IP address is assigned to. | {
"resource": ""
} | ||
c156369 | train | // String returns a human-readable representation of the IP address. | {
"resource": ""
} | ||
c156370 | train | // Remove removes the IP address, if it exists. No error is returned when the
// address was already removed. | {
"resource": ""
} | ||
c156371 | train | // removeIPAddressDocOpOp returns an operation to remove the ipAddressDoc
// matching the given ipAddressDocID, without asserting it still exists. | {
"resource": ""
} | ||
c156372 | train | // insertIPAddressDocOp returns an operation inserting the given newDoc,
// asserting it does not exist yet. | {
"resource": ""
} | ||
c156373 | train | // updateIPAddressDocOp returns an operation updating the fields of existingDoc
// with the respective values of those fields in newDoc. DocID, ModelUUID,
// Value, MachineID, and DeviceName cannot be changed. ProviderID cannot be
// changed once set. DNSServers and DNSSearchDomains are deleted when nil. In
// all othe... | {
"resource": ""
} | ||
c156374 | train | // AllIPAddresses returns all ip addresses in the model. | {
"resource": ""
} | ||
c156375 | train | // defaultReachableChecker returns a jujussh.ReachableChecker with a connection
// timeout of SSHRetryDelay and an overall timout of SSHTimeout | {
"resource": ""
} | ||
c156376 | train | // initRun initializes the API connection if required, and determines
// if SSH proxying is required. It must be called at the top of the
// command's Run method.
//
// The apiClient, apiAddr and proxy fields are initialized after this call. | {
"resource": ""
} | ||
c156377 | train | // getSSHOptions configures SSH options based on command line
// arguments and the SSH targets specified. | {
"resource": ""
} | ||
c156378 | train | // generateKnownHosts takes the provided targets, retrieves the SSH
// public host keys for them and generates a temporary known_hosts
// file for them. | {
"resource": ""
} | ||
c156379 | train | // setProxyCommand sets the proxy command option. | {
"resource": ""
} | ||
c156380 | train | // initAPIClient initialises the API connection. | {
"resource": ""
} | ||
c156381 | train | // reachableAddressGetter dials all addresses of the given entity, returning the
// first one that succeeds. Only used with SSHClient API facade v2 or later is
// available. It does not try to dial if only one address is available. | {
"resource": ""
} | ||
c156382 | train | // NewVersionedToolsConstraint returns a ToolsConstraint for a tools with a specific version. | {
"resource": ""
} | ||
c156383 | train | // sortString is used by byVersion to sort a list of ToolsMetadata. | {
"resource": ""
} | ||
c156384 | train | // binary returns the tools metadata's binary version, which may be used for
// map lookup. | {
"resource": ""
} | ||
c156385 | train | // Fetch returns a list of tools for the specified cloud matching the constraint.
// The base URL locations are as specified - the first location which has a file is the one used.
// Signed data is preferred, but if there is no signed data available and onlySigned is false,
// then unsigned data is used. | {
"resource": ""
} | ||
c156386 | train | // appendMatchingTools updates matchingTools with tools metadata records from tools which belong to the
// specified series. If a tools record already exists in matchingTools, it is not overwritten. | {
"resource": ""
} | ||
c156387 | train | // MetadataFromTools returns a tools metadata list derived from the
// given tools list. The size and sha256 will not be computed if
// missing. | {
"resource": ""
} | ||
c156388 | train | // ResolveMetadata resolves incomplete metadata
// by fetching the tools from storage and computing
// the size and hash locally. | {
"resource": ""
} | ||
c156389 | train | // ReadMetadata returns the tools metadata from the given storage for the specified stream. | {
"resource": ""
} | ||
c156390 | train | // ReadAllMetadata returns the tools metadata from the given storage for all streams.
// The result is a map of metadata slices, keyed on stream. | {
"resource": ""
} | ||
c156391 | train | // removeMetadataUpdated unmarshalls simplestreams metadata, clears the
// updated attribute, and then marshalls back to a string. | {
"resource": ""
} | ||
c156392 | train | // metadataUnchanged returns true if the content of metadata for stream in stor is the same
// as generatedMetadata, ignoring the "updated" attribute. | {
"resource": ""
} | ||
c156393 | train | // WriteMetadata writes the given tools metadata for the specified streams to the given storage.
// streamMetadata contains all known metadata so that the correct index files can be written.
// Only product files for the specified streams are written. | {
"resource": ""
} | ||
c156394 | train | // fetchToolsHash fetches the tools from storage and calculates
// its size in bytes and computes a SHA256 hash of its contents. | {
"resource": ""
} | ||
c156395 | train | // NewActionData builds a suitable ActionData struct with no nil members.
// this should only be called in the event that an Action hook is being requested. | {
"resource": ""
} | ||
c156396 | train | // Run the command as user libvirt-qemu and return the combined output.
// If dir is non-empty, use it as the working directory. | {
"resource": ""
} | ||
c156397 | train | // GenerateNetplan renders a netplan file for one or more network
// interfaces, using the given non-empty list of interfaces. | {
"resource": ""
} | ||
c156398 | train | // PrepareNetworkConfigFromInterfaces collects the necessary information to
// render a persistent network config from the given slice of
// network.InterfaceInfo. The result always includes the loopback interface. | {
"resource": ""
} | ||
c156399 | train | // Validate returns an error if the config cannot be relied upon to start a worker. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.