_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c155300 | train | // New returns a new Config with no options set. | {
"resource": ""
} | ||
c155301 | train | // NewConfig returns a new config instance with the given attributes and
// allowing for the extra provider attributes. | {
"resource": ""
} | ||
c155302 | train | // KnownConfigKeys returns the valid application config keys. | {
"resource": ""
} | ||
c155303 | train | // Attributes returns all the config attributes. | {
"resource": ""
} | ||
c155304 | train | // Get gets the specified attribute. | {
"resource": ""
} | ||
c155305 | train | // GetInt gets the specified bool attribute. | {
"resource": ""
} | ||
c155306 | train | // GetInt gets the specified int attribute. | {
"resource": ""
} | ||
c155307 | train | // GetString gets the specified string attribute. | {
"resource": ""
} | ||
c155308 | train | // MetricsManager returns an existing metricsmanager, or a new one if non exists. | {
"resource": ""
} | ||
c155309 | train | // SetLastSuccessfulSend sets the last successful send time to the input time. | {
"resource": ""
} | ||
c155310 | train | // IncrementConsecutiveErrors adds 1 to the consecutive errors count. | {
"resource": ""
} | ||
c155311 | train | // MeterStatus returns the overall state of the MetricsManager as a meter status summary. | {
"resource": ""
} | ||
c155312 | train | // NewImagesManagerClient returns a imagemanager client for the root api endpoint
// that the environment command returns. | {
"resource": ""
} | ||
c155313 | train | // NewDiskManagerAPI creates a new server-side DiskManager API facade. | {
"resource": ""
} | ||
c155314 | train | // GetMacAndIp is a helper function that returns a mac and an IP,
// given a list of strings containing both. This type of array
// is returned by the oracle API as part of instance details. | {
"resource": ""
} | ||
c155315 | train | // Filter applies the provided predicates to the payloads and returns
// only those that matched. | {
"resource": ""
} | ||
c155316 | train | // Match determines if the given payload matches the pattern. | {
"resource": ""
} | ||
c155317 | train | // New returns a new structured hub using yaml marshalling with an origin
// specified. The post processing ensures that the maps all have string keys
// so they messages can be marshalled between apiservers. | {
"resource": ""
} | ||
c155318 | train | // Unmarshal implements Marshaller. | {
"resource": ""
} | ||
c155319 | train | // ConfigSchema returns the valid fields for a CAAS application config. | {
"resource": ""
} | ||
c155320 | train | // ConfigDefaults returns the default values for a CAAS application config. | {
"resource": ""
} | ||
c155321 | train | // GetOrDetectCredential returns a credential to use for given cloud. This
// function first calls modelcmd.GetCredentials, and returns its results if it
// finds credentials. If modelcmd.GetCredentials cannot find a credential, and a
// credential has not been specified by name, then this function will attempt to
// d... | {
"resource": ""
} | ||
c155322 | train | // OutputUpdateCredentialModelResult prints detailed results of UpdateCredentialsCheckModels. | {
"resource": ""
} | ||
c155323 | train | // Init validates the application name and any other options. | {
"resource": ""
} | ||
c155324 | train | // Run grabs the Actions spec from the api. It then sets up a sensible
// output format for the map. | {
"resource": ""
} | ||
c155325 | train | // printTabular prints the list of actions in tabular format | {
"resource": ""
} | ||
c155326 | train | // NewCachingClient returns a Juju charm store client that stores and retrieves
// macaroons for calls in the given cache. The client will use server as the
// charmstore url. | {
"resource": ""
} | ||
c155327 | train | // makeMetadataHeader takes the input model and charm metadata and transforms
// it into a header suitable for supply with a "Latest" request via the client. | {
"resource": ""
} | ||
c155328 | train | // ResourceInfo returns the metadata for the given resource from the charmstore. | {
"resource": ""
} | ||
c155329 | train | // ListResources returns a list of resources for each of the given charms. | {
"resource": ""
} | ||
c155330 | train | // ListResources gets the latest resources for the charm URL on the channel. | {
"resource": ""
} | ||
c155331 | train | // GetResource downloads the bytes and some metadata about the bytes for the revisioned resource. | {
"resource": ""
} | ||
c155332 | train | // ResourceInfo gets the full metadata for the revisioned resource. | {
"resource": ""
} | ||
c155333 | train | // NewRemoveApplicationCommand returns a command which removes an application. | {
"resource": ""
} | ||
c155334 | train | // StateJobs translates a slice of multiwatcher jobs to their equivalents in state. | {
"resource": ""
} | ||
c155335 | train | // machineJobFromParams returns the job corresponding to multiwatcher.MachineJob. | {
"resource": ""
} | ||
c155336 | train | // UnpinLease is part of lease.Store. | {
"resource": ""
} | ||
c155337 | train | // Advance is part of globalclock.Updater. | {
"resource": ""
} | ||
c155338 | train | // RecoverError converts a ResponseError back into the specific error
// it represents, or into a generic error if it wasn't one of the
// singleton errors handled. | {
"resource": ""
} | ||
c155339 | train | // appCharmIncRefOps returns the operations necessary to record a reference
// to a charm and its per-application settings and storage constraints
// documents. It will fail if the charm is not Alive. | {
"resource": ""
} | ||
c155340 | train | // finalAppCharmRemoveOps returns operations to delete the settings
// and storage, device constraints documents and queue a charm cleanup. | {
"resource": ""
} | ||
c155341 | train | // charmDestroyOps implements the logic of charm.Destroy. | {
"resource": ""
} | ||
c155342 | train | // NewResumerAPI creates a new instance of the Resumer API. | {
"resource": ""
} | ||
c155343 | train | // CreateSettings is part of the SettingsManager interface. | {
"resource": ""
} | ||
c155344 | train | // ReplaceSettings is part of the SettingsManager interface. | {
"resource": ""
} | ||
c155345 | train | // ReadSettings is part of the SettingsManager interface. | {
"resource": ""
} | ||
c155346 | train | // RemoveSettings is part of the SettingsManager interface. | {
"resource": ""
} | ||
c155347 | train | // ListSettings is part of the SettingsManager interface. | {
"resource": ""
} | ||
c155348 | train | // Config returns the current model config. | {
"resource": ""
} | ||
c155349 | train | // WatchConfig creates a watcher for the model config. | {
"resource": ""
} | ||
c155350 | train | // Application returns the application for the input name.
// If the application is not found, a NotFoundError is returned. | {
"resource": ""
} | ||
c155351 | train | // Charm returns the charm for the input charmURL.
// If the charm is not found, a NotFoundError is returned. | {
"resource": ""
} | ||
c155352 | train | // Machines makes a copy of the model's machine collection and returns it. | {
"resource": ""
} | ||
c155353 | train | // Machine returns the machine with the input id.
// If the machine is not found, a NotFoundError is returned. | {
"resource": ""
} | ||
c155354 | train | // WatchMachines returns a PredicateStringsWatcher to notify about
// added and removed machines in the model. The initial event contains
// a slice of the current machine ids. Containers are excluded. | {
"resource": ""
} | ||
c155355 | train | // Unit returns the unit with the input name.
// If the unit is not found, a NotFoundError is returned. | {
"resource": ""
} | ||
c155356 | train | // updateApplication adds or updates the application in the model. | {
"resource": ""
} | ||
c155357 | train | // removeApplication removes the application from the model. | {
"resource": ""
} | ||
c155358 | train | // updateCharm adds or updates the charm in the model. | {
"resource": ""
} | ||
c155359 | train | // removeCharm removes the charm from the model. | {
"resource": ""
} | ||
c155360 | train | // updateUnit adds or updates the unit in the model. | {
"resource": ""
} | ||
c155361 | train | // removeUnit removes the unit from the model. | {
"resource": ""
} | ||
c155362 | train | // updateMachine adds or updates the machine in the model. | {
"resource": ""
} | ||
c155363 | train | // removeMachine removes the machine from the model. | {
"resource": ""
} | ||
c155364 | train | // topic prefixes the input string with the model UUID. | {
"resource": ""
} | ||
c155365 | train | // loggedErrorStack is a developer helper function that will cause the error
// stack of the error to be printed out at error severity if and only if the
// "log-error-stack" feature flag has been specified. The passed in error
// is also the return value of this function. | {
"resource": ""
} | ||
c155366 | train | // Life requests the life cycle of the given entities from the given
// server-side API facade via the given caller. | {
"resource": ""
} | ||
c155367 | train | // OneLife requests the life cycle of the given entity from the given
// server-side API facade via the given caller. | {
"resource": ""
} | ||
c155368 | train | // Manifold returns a Manifold that runs a unitassigner worker. | {
"resource": ""
} | ||
c155369 | train | // SetStatus implements upgradesteps.StatusSetter | {
"resource": ""
} | ||
c155370 | train | // DefaultRateLimitConfig returns a RateLimtConfig struct with
// all attributes set to their default values. | {
"resource": ""
} | ||
c155371 | train | // Validate validates the rate limit configuration.
// We apply arbitrary but sensible upper limits to prevent
// typos from introducing obviously bad config. | {
"resource": ""
} | ||
c155372 | train | // Validate validates the logsink endpoint configuration. | {
"resource": ""
} | ||
c155373 | train | // DefaultLogSinkConfig returns a LogSinkConfig with default values. | {
"resource": ""
} | ||
c155374 | train | // Validate checks that we have all of the things we need. | {
"resource": ""
} | ||
c155375 | train | // NewMux returns a new, empty mux. | {
"resource": ""
} | ||
c155376 | train | // AddHandler adds an http.Handler for the given method and pattern.
// AddHandler returns an error if there already exists a handler for
// the method and pattern.
//
// This is safe to call concurrently with m.ServeHTTP and m.RemoveHandler. | {
"resource": ""
} | ||
c155377 | train | // RemoveHandler removes the http.Handler for the given method and pattern,
// if any. If there is no handler registered with the method and pattern,
// this is a no-op.
//
// This is safe to call concurrently with m.ServeHTTP and m.AddHandler. | {
"resource": ""
} | ||
c155378 | train | // IsValid determines if the port range is valid. | {
"resource": ""
} | ||
c155379 | train | // ConflictsWith determines if the two port ranges conflict. | {
"resource": ""
} | ||
c155380 | train | // MustParsePortRange converts a raw port-range string into a PortRange.
// If the string is invalid, the function panics. | {
"resource": ""
} | ||
c155381 | train | // NewAuthContext creates a new authentication context for checking
// macaroons used with application offer requests. | {
"resource": ""
} | ||
c155382 | train | // WithClock creates a new authentication context
// using the specified clock. | {
"resource": ""
} | ||
c155383 | train | // WithDischargeURL create an auth context based on this context and used
// to perform third party discharges at the specified URL. | {
"resource": ""
} | ||
c155384 | train | // CheckOfferAccessCaveat checks that the specified caveat required to be satisfied
// to gain access to an offer is valid, and returns the attributes return to check
// that the caveat is satisfied. | {
"resource": ""
} | ||
c155385 | train | // CreateConsumeOfferMacaroon creates a macaroon that authorises access to the specified offer. | {
"resource": ""
} | ||
c155386 | train | // CreateRemoteRelationMacaroon creates a macaroon that authorises access to the specified relation. | {
"resource": ""
} | ||
c155387 | train | // Authenticator returns an instance used to authenticate macaroons used to
// access the specified offer. | {
"resource": ""
} | ||
c155388 | train | // CheckOfferMacaroons verifies that the specified macaroons allow access to the offer. | {
"resource": ""
} | ||
c155389 | train | // CheckRelationMacaroons verifies that the specified macaroons allow access to the relation. | {
"resource": ""
} | ||
c155390 | train | // stateStepsFor26 returns upgrade steps for Juju 2.6 that manipulate state directly. | {
"resource": ""
} | ||
c155391 | train | // InvalidateModelCredential marks the cloud credential for this model as invalid. | {
"resource": ""
} | ||
c155392 | train | // ListImages returns the images. | {
"resource": ""
} | ||
c155393 | train | // DeleteImage deletes the specified image. | {
"resource": ""
} | ||
c155394 | train | // AllLinkLayerDevices returns all exiting link-layer devices of the machine. | {
"resource": ""
} | ||
c155395 | train | // RemoveAllLinkLayerDevices removes all existing link-layer devices of the
// machine in a single transaction. No error is returned when some or all of the
// devices were already removed. | {
"resource": ""
} | ||
c155396 | train | // RemoveAllAddresses removes all assigned addresses to all devices of the
// machine, in a single transaction. No error is returned when some or all of
// the addresses were already removed. | {
"resource": ""
} | ||
c155397 | train | // AllAddresses returns the all addresses assigned to all devices of the
// machine. | {
"resource": ""
} | ||
c155398 | train | // AllSpaces returns the set of spaces that this machine is actively
// connected to. | {
"resource": ""
} | ||
c155399 | train | // deviceMapToSortedList takes a map from device name to LinkLayerDevice
// object, and returns the list of LinkLayerDevice object using
// NaturallySortDeviceNames | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.