_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c157400 | train | // Manifold returns a dependency manifold that runs a hook retry strategy worker,
// using the agent name and the api connection resources named in the supplied config. | {
"resource": ""
} | ||
c157401 | train | // IsFatal determines if an error is fatal to the process. | {
"resource": ""
} | ||
c157402 | train | // MoreImportantError returns the most important error | {
"resource": ""
} | ||
c157403 | train | // AgentDone processes the error returned by an exiting agent. | {
"resource": ""
} | ||
c157404 | train | // ConnectionIsFatal returns a function suitable for passing as the
// isFatal argument to worker.NewRunner, that diagnoses an error as
// fatal if the connection has failed or if the error is otherwise
// fatal. | {
"resource": ""
} | ||
c157405 | train | // NewEnsureServerParams creates an EnsureServerParams from an agent
// configuration. | {
"resource": ""
} | ||
c157406 | train | // Open opens a streaming connection to the endpoint path that conforms
// to the provided config. | {
"resource": ""
} | ||
c157407 | train | // NewAPI returns a new API using the supplied caller. | {
"resource": ""
} | ||
c157408 | train | // Watch returns a StringsWatcher that delivers the names of applications
// that may need to be rescaled. | {
"resource": ""
} | ||
c157409 | train | // Rescale requests that all supplied application names be rescaled to
// their minimum configured sizes. It returns the first error it
// encounters. | {
"resource": ""
} | ||
c157410 | train | // ZoneIndependentError wraps the given error such that it
// satisfies environs.IsAvailabilityZoneIndependent. | {
"resource": ""
} | ||
c157411 | train | // MaybeHandleCredentialError determines if a given error relates to an invalid credential.
// If it is, the credential is invalidated and the return bool is true. | {
"resource": ""
} | ||
c157412 | train | // HandleCredentialError determines if a given error relates to an invalid credential. | {
"resource": ""
} | ||
c157413 | train | // Open is part of the ContainerEnvironProvider interface. | {
"resource": ""
} | ||
c157414 | train | // ParsePodSpec is part of the ContainerEnvironProvider interface. | {
"resource": ""
} | ||
c157415 | train | // AddRequest records a method call to the API. | {
"resource": ""
} | ||
c157416 | train | // AddResponse records the result of a method call to the API. | {
"resource": ""
} | ||
c157417 | train | // newConversationID generates a random 64bit integer as hex - this
// will be used to link the requests and responses with the command
// the user issued. We don't use the API server's connection ID here
// because that starts from 0 and increments, so it resets when the
// API server is restarted. The conversation ID... | {
"resource": ""
} | ||
c157418 | train | // AddConversation implements AuditLog. | {
"resource": ""
} | ||
c157419 | train | // AddRequest implements AuditLog. | {
"resource": ""
} | ||
c157420 | train | // AddResponse implements AuditLog. | {
"resource": ""
} | ||
c157421 | train | // Track calls the Track API server method. | {
"resource": ""
} | ||
c157422 | train | // List calls the List API server method. | {
"resource": ""
} | ||
c157423 | train | // LookUp calls the LookUp API server method. | {
"resource": ""
} | ||
c157424 | train | // SetStatus calls the SetStatus API server method. | {
"resource": ""
} | ||
c157425 | train | // Untrack calls the Untrack API server method. | {
"resource": ""
} | ||
c157426 | train | // NewMockLeadershipPinningBackend creates a new mock instance | {
"resource": ""
} | ||
c157427 | train | // NewMockLeadershipMachine creates a new mock instance | {
"resource": ""
} | ||
c157428 | train | // ApplicationNames mocks base method | {
"resource": ""
} | ||
c157429 | train | // ApplicationNames indicates an expected call of ApplicationNames | {
"resource": ""
} | ||
c157430 | train | // NewMockCommandRunner creates a new mock instance | {
"resource": ""
} | ||
c157431 | train | // RunCommands mocks base method | {
"resource": ""
} | ||
c157432 | train | // RunCommands indicates an expected call of RunCommands | {
"resource": ""
} | ||
c157433 | train | // Payload2api converts a payload.FullPayloadInfo struct into
// a Payload struct. | {
"resource": ""
} | ||
c157434 | train | // API2Payload converts an API Payload info struct into
// a payload.FullPayloadInfo struct. | {
"resource": ""
} | ||
c157435 | train | // ListServices returns the list of installed service names. | {
"resource": ""
} | ||
c157436 | train | // NewServiceWithDefaults returns a new systemd service reference populated
// with sensible defaults. | {
"resource": ""
} | ||
c157437 | train | // NewService returns a new reference to an object that implements the Service
// interface for systemd. | {
"resource": ""
} | ||
c157438 | train | // Installed implements Service. | {
"resource": ""
} | ||
c157439 | train | // Exists implements Service. | {
"resource": ""
} | ||
c157440 | train | // Running implements Service. | {
"resource": ""
} | ||
c157441 | train | // Start implements Service. | {
"resource": ""
} | ||
c157442 | train | // Stop implements Service. | {
"resource": ""
} | ||
c157443 | train | // Remove implements Service. | {
"resource": ""
} | ||
c157444 | train | // Install implements Service. | {
"resource": ""
} | ||
c157445 | train | // InstallCommands implements Service. | {
"resource": ""
} | ||
c157446 | train | // StartCommands implements Service. | {
"resource": ""
} | ||
c157447 | train | // WriteService implements UpgradableService.WriteService | {
"resource": ""
} | ||
c157448 | train | // SysdReload reloads Service daemon. | {
"resource": ""
} | ||
c157449 | train | // ParseVersions constructs a versions object from a reader.. | {
"resource": ""
} | ||
c157450 | train | // VersionsMatching returns all version numbers for which the SHA256
// matches the content of the reader passed in. | {
"resource": ""
} | ||
c157451 | train | // versionsMatchingHash returns all version numbers for which the SHA256
// matches the hash passed in. | {
"resource": ""
} | ||
c157452 | train | // Resolve implements the CharmResolver interface. | {
"resource": ""
} | ||
c157453 | train | // Manifold returns a dependency manifold that runs a fan configurer
// worker, using the resource names defined in the supplied config. | {
"resource": ""
} | ||
c157454 | train | // Validate checks that the minimum requirements of a StatusHistoryFilter are met. | {
"resource": ""
} | ||
c157455 | train | // Valid will return true if the current kind is a valid one. | {
"resource": ""
} | ||
c157456 | train | // AllHistoryKind will return all valid HistoryKinds. | {
"resource": ""
} | ||
c157457 | train | // IgnoreErrRemoved returns nil if passed an error caused by ErrRemoved,
// and otherwise returns the original error. | {
"resource": ""
} | ||
c157458 | train | // Run retrieves the debug log via the API. | {
"resource": ""
} | ||
c157459 | train | // FormatCharmResource converts the resource info into a FormattedCharmResource. | {
"resource": ""
} | ||
c157460 | train | // FormatAppResource converts the resource info into a FormattedAppResource. | {
"resource": ""
} | ||
c157461 | train | // FormatApplicationDetails converts a ApplicationResources value into a formatted value
// for display on the command line. | {
"resource": ""
} | ||
c157462 | train | // FormatDetailResource converts the arguments into a FormattedApplicationResource. | {
"resource": ""
} | ||
c157463 | train | // detailedResources shows the version of each resource on each unit, with the
// corresponding version of the resource that exists in the controller. if unit
// is non-empty, only units matching that unitID will be returned. | {
"resource": ""
} | ||
c157464 | train | // ConstraintsValidator returns a Validator instance which
// is used to validate and merge constraints. | {
"resource": ""
} | ||
c157465 | train | // NewDeadEnsurer returns a new DeadEnsurer. The GetAuthFunc will be
// used on each invocation of EnsureDead to determine current
// permissions. | {
"resource": ""
} | ||
c157466 | train | // Validate returns an error if Config cannot be expected to drive a
// Worker. | {
"resource": ""
} | ||
c157467 | train | // loop runs Pingers until w is stopped. | {
"resource": ""
} | ||
c157468 | train | // maybeStartPinger starts and returns a new Pinger; or, if it
// encounters an error, logs it and returns nil. | {
"resource": ""
} | ||
c157469 | train | // waitPinger waits for the death of either the pinger or the worker;
// stops the pinger if necessary; and returns once the pinger is
// finished. If pinger is nil, it returns immediately. | {
"resource": ""
} | ||
c157470 | train | // Ports returns the unique ports for the api addresses. | {
"resource": ""
} | ||
c157471 | train | // Validate validates the API info. | {
"resource": ""
} | ||
c157472 | train | // DefaultDialOpts returns a DialOpts representing the default
// parameters for contacting a controller. | {
"resource": ""
} | ||
c157473 | train | // getPackageManager is a helper function which returns the
// package manager implementation for the current system. | {
"resource": ""
} | ||
c157474 | train | // ensurePool creates the libvirt storage pool and ensures its is active.
// runCmd and chownFunc are here for testing. runCmd so we can check the
// right shell out calls are made, and chownFunc because we cannot chown
// unless we are root. | {
"resource": ""
} | ||
c157475 | train | // definePool creates the required directories and changes ownership of the
// guest directory so that libvirt-qemu can read, write, and execute its
// guest volumes. | {
"resource": ""
} | ||
c157476 | train | // buildPool sets up libvirt internals for the guest pool. | {
"resource": ""
} | ||
c157477 | train | // NewPoolCreateCommand returns a command that creates or defines a storage pool | {
"resource": ""
} | ||
c157478 | train | // NewMockModelCache creates a new mock instance | {
"resource": ""
} | ||
c157479 | train | // NewMockModelCacheMachine creates a new mock instance | {
"resource": ""
} | ||
c157480 | train | // NewMockModelCacheApplication creates a new mock instance | {
"resource": ""
} | ||
c157481 | train | // CharmURL mocks base method | {
"resource": ""
} | ||
c157482 | train | // CharmURL indicates an expected call of CharmURL | {
"resource": ""
} | ||
c157483 | train | // NewMockModelCacheUnit creates a new mock instance | {
"resource": ""
} | ||
c157484 | train | // NewMockModelCacheCharm creates a new mock instance | {
"resource": ""
} | ||
c157485 | train | // IncompatibleModel returns an error if the command is being run against
// a model with which it is not compatible. | {
"resource": ""
} | ||
c157486 | train | // Run connects to the environment specified on the command line
// and calls AddUnits for the given application. | {
"resource": ""
} | ||
c157487 | train | // KnownModificationStatus returns true if the status has a known value for
// a modification of an instance. | {
"resource": ""
} | ||
c157488 | train | // KnownAgentStatus returns true if status has a known value for an agent.
// It includes every status that has ever been valid for a unit or machine agent.
// This is used by the apiserver client facade to filter out unknown values. | {
"resource": ""
} | ||
c157489 | train | // KnownWorkloadStatus returns true if status has a known value for a workload.
// It includes every status that has ever been valid for a unit agent.
// This is used by the apiserver client facade to filter out unknown values. | {
"resource": ""
} | ||
c157490 | train | // Destroy is a common implementation of the Destroy method defined on
// environs.Environ; we strongly recommend that this implementation be
// used when writing a new provider. | {
"resource": ""
} | ||
c157491 | train | // Release indicates that the pooled state is no longer required
// and can be removed from the pool if there are no other references
// to it.
// The return indicates whether the released state was actually removed
// from the pool - items marked for removal are only removed when released
// by all other reference hol... | {
"resource": ""
} | ||
c157492 | train | // OpenStatePool returns a new StatePool instance. | {
"resource": ""
} | ||
c157493 | train | // Get returns a PooledState for a given model, creating a new State instance
// if required.
// If the State has been marked for removal, an error is returned. | {
"resource": ""
} | ||
c157494 | train | // GetModel is a convenience method for getting a Model for a State. | {
"resource": ""
} | ||
c157495 | train | // release indicates that the client has finished using the State. If the
// state has been marked for removal, it will be closed and removed
// when the final Release is done; if there are no references, it will be
// closed and removed immediately. The boolean result reports whether or
// not the state was closed and... | {
"resource": ""
} | ||
c157496 | train | // SystemState returns the State passed in to NewStatePool. | {
"resource": ""
} | ||
c157497 | train | // Close closes all State instances in the pool. | {
"resource": ""
} | ||
c157498 | train | // IntrospectionReport produces the output for the introspection worker
// in order to look inside the state pool. | {
"resource": ""
} | ||
c157499 | train | // GetResource implements charmstore.EntityCache. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.