_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c154100 | train | // sendStatusAndJSON sends an HTTP status code and
// a JSON-encoded response to a client. | {
"resource": ""
} | ||
c154101 | train | // sendError sends a JSON-encoded error response
// for errors encountered during processing. | {
"resource": ""
} | ||
c154102 | train | // RequestAuthInfo returns the AuthInfo associated with the request,
// if any, and a boolean indicating whether or not the request was
// authenticated. | {
"resource": ""
} | ||
c154103 | train | // NewRemoveRelationCommand returns a command to remove a relation between 2 applications. | {
"resource": ""
} | ||
c154104 | train | // Watch returns a watcher which reports when the status changes for
// the migration for the model associated with the API connection. | {
"resource": ""
} | ||
c154105 | train | // Report allows a migration minion to report if it successfully
// completed its activities for a given migration phase. | {
"resource": ""
} | ||
c154106 | train | // NewMockSystemdServiceManager creates a new mock instance | {
"resource": ""
} | ||
c154107 | train | // CopyAgentBinary mocks base method | {
"resource": ""
} | ||
c154108 | train | // CopyAgentBinary indicates an expected call of CopyAgentBinary | {
"resource": ""
} | ||
c154109 | train | // CreateAgentConf mocks base method | {
"resource": ""
} | ||
c154110 | train | // FindAgents mocks base method | {
"resource": ""
} | ||
c154111 | train | // StartAllAgents mocks base method | {
"resource": ""
} | ||
c154112 | train | // StartAllAgents indicates an expected call of StartAllAgents | {
"resource": ""
} | ||
c154113 | train | // WriteServiceFiles mocks base method | {
"resource": ""
} | ||
c154114 | train | // WriteServiceFiles indicates an expected call of WriteServiceFiles | {
"resource": ""
} | ||
c154115 | train | // WriteSystemdAgents mocks base method | {
"resource": ""
} | ||
c154116 | train | // NewCharmRevisionUpdaterAPI creates a new server-side charmrevisionupdater API end point. | {
"resource": ""
} | ||
c154117 | train | // DumpAll returns a map of collection names to a slice of documents
// in that collection. Every document that is related to the current
// model is returned in the map. | {
"resource": ""
} | ||
c154118 | train | // NewShowApplicationCommand returns a command that displays applications info. | {
"resource": ""
} | ||
c154119 | train | // formatApplicationInfos takes a set of params.ApplicationInfo and
// creates a mapping from storage ID application name to application info. | {
"resource": ""
} | ||
c154120 | train | // NewCloudSpecAPI creates a CloudSpecAPI using the provided
// FacadeCaller. | {
"resource": ""
} | ||
c154121 | train | // WatchCloudSpecChanges returns a NotifyWatcher waiting for the
// model's cloud to change. | {
"resource": ""
} | ||
c154122 | train | // CloudSpec returns the cloud specification for the model associated
// with the API facade. | {
"resource": ""
} | ||
c154123 | train | // MakeCloudSpec creates an environs.CloudSpec from a params.CloudSpec
// that has been returned from the apiserver. | {
"resource": ""
} | ||
c154124 | train | // ImageStorage returns a new imagestorage.Storage
// that stores image metadata. | {
"resource": ""
} | ||
c154125 | train | // NewState creates a new client-side DiskManager facade. | {
"resource": ""
} | ||
c154126 | train | // SetMachineBlockDevices sets the block devices attached to the machine
// identified by the authenticated machine tag. | {
"resource": ""
} | ||
c154127 | train | // ValidateFilesystemParams is defined on storage.FilesystemSource. | {
"resource": ""
} | ||
c154128 | train | // NewMockStateCharm creates a new mock instance | {
"resource": ""
} | ||
c154129 | train | // IsUploaded mocks base method | {
"resource": ""
} | ||
c154130 | train | // IsUploaded indicates an expected call of IsUploaded | {
"resource": ""
} | ||
c154131 | train | // ControllerConfig mocks base method | {
"resource": ""
} | ||
c154132 | train | // ModelUUID mocks base method | {
"resource": ""
} | ||
c154133 | train | // ModelUUID indicates an expected call of ModelUUID | {
"resource": ""
} | ||
c154134 | train | // MongoSession mocks base method | {
"resource": ""
} | ||
c154135 | train | // PrepareStoreCharmUpload mocks base method | {
"resource": ""
} | ||
c154136 | train | // UpdateUploadedCharm mocks base method | {
"resource": ""
} | ||
c154137 | train | // Report provides information for the engine report. | {
"resource": ""
} | ||
c154138 | train | // Close implements net.Listener. Closes all the open listeners. | {
"resource": ""
} | ||
c154139 | train | // Addr implements net.Listener. If the api port has been opened, we
// return that, otherwise we return the controller port address. | {
"resource": ""
} | ||
c154140 | train | // openAPIPort opens the api port and starts accepting connections. | {
"resource": ""
} | ||
c154141 | train | // Init reads and verifies the cli arguments for the ListPlansCommand | {
"resource": ""
} | ||
c154142 | train | // Run implements Command.Run.
// Retrieves the plan from the plans service. The set of plans to be
// retrieved can be limited using the plan and isv flags. | {
"resource": ""
} | ||
c154143 | train | // formatSummary returns a summary of available plans. | {
"resource": ""
} | ||
c154144 | train | // formatTabular returns a tabular summary of available plans. | {
"resource": ""
} | ||
c154145 | train | // readPlan reads, parses and returns a planModel struct representation. | {
"resource": ""
} | ||
c154146 | train | // NewMockAppsV1Interface creates a new mock instance | {
"resource": ""
} | ||
c154147 | train | // ControllerRevisions mocks base method | {
"resource": ""
} | ||
c154148 | train | // ControllerRevisions indicates an expected call of ControllerRevisions | {
"resource": ""
} | ||
c154149 | train | // StatefulSets mocks base method | {
"resource": ""
} | ||
c154150 | train | // NewMockDeploymentInterface creates a new mock instance | {
"resource": ""
} | ||
c154151 | train | // Watch indicates an expected call of Watch | {
"resource": ""
} | ||
c154152 | train | // NewMockStatefulSetInterface creates a new mock instance | {
"resource": ""
} | ||
c154153 | train | // ValueOf returns a value that can be used to call RPC-style
// methods on the given root value. It returns the zero
// Value if rootValue.IsValid is false. | {
"resource": ""
} | ||
c154154 | train | // FindMethod returns an object that can be used to make calls on
// the given root value to the given root method and object method.
// It returns an error if either the root method or the object
// method were not found.
// It panics if called on the zero Value.
// The version argument is ignored - all versions will ... | {
"resource": ""
} | ||
c154155 | train | // Kill implements rpc.Killer.Kill by calling Kill on the root
// value if it implements Killer. | {
"resource": ""
} | ||
c154156 | train | // setAgentStatus sets the unit's status if it has changed since last time this method was called. | {
"resource": ""
} | ||
c154157 | train | // reportAgentError reports if there was an error performing an agent operation. | {
"resource": ""
} | ||
c154158 | train | // setUpgradeSeriesStatus sets the upgrade series status. | {
"resource": ""
} | ||
c154159 | train | // parseK8sPodSpec parses a YAML file which defines how to
// configure a CAAS pod. We allow for generic container
// set up plus k8s select specific features. | {
"resource": ""
} | ||
c154160 | train | // Manifold returns a dependency manifold that runs a toolsversionchecker worker,
// using the api connection resource named in the supplied config. | {
"resource": ""
} | ||
c154161 | train | // Annotations returns all the annotations corresponding to an entity. | {
"resource": ""
} | ||
c154162 | train | // Annotation returns the annotation value corresponding to the given key.
// If the requested annotation is not found, an empty string is returned. | {
"resource": ""
} | ||
c154163 | train | // insertAnnotationsOps returns the operations required to insert annotations in MongoDB. | {
"resource": ""
} | ||
c154164 | train | // updateAnnotations returns the operations required to update or remove annotations in MongoDB. | {
"resource": ""
} | ||
c154165 | train | // annotationRemoveOp returns an operation to remove a given annotation
// document from MongoDB. | {
"resource": ""
} | ||
c154166 | train | // NewFacadeV4 provides the signature required for facade registration
// for versions 1-4. | {
"resource": ""
} | ||
c154167 | train | // NewFacadeV5 provides the signature required for facade registration
// for version 5. | {
"resource": ""
} | ||
c154168 | train | // NewFacadeV6 provides the signature required for facade registration
// for version 6. | {
"resource": ""
} | ||
c154169 | train | // NewFacadeV7 provides the signature required for facade registration
// for version 7. | {
"resource": ""
} | ||
c154170 | train | // NewFacadeV8 provides the signature required for facade registration
// for version 8. | {
"resource": ""
} | ||
c154171 | train | // NewAPIBase returns a new application API facade. | {
"resource": ""
} | ||
c154172 | train | // SetMetricCredentials sets credentials on the application. | {
"resource": ""
} | ||
c154173 | train | // Deploy fetches the charms from the charm store and deploys them
// using the specified placement directives.
// V5 deploy did not support policy, so pass through an empty string. | {
"resource": ""
} | ||
c154174 | train | // Deploy fetches the charms from the charm store and deploys them
// using the specified placement directives. | {
"resource": ""
} | ||
c154175 | train | // splitApplicationAndCharmConfigFromYAML extracts app specific settings from a charm config YAML
// and returns those app settings plus a YAML with just the charm settings left behind. | {
"resource": ""
} | ||
c154176 | train | // checkMachinePlacement does a non-exhaustive validation of any supplied
// placement directives.
// If the placement scope is for a machine, ensure that the machine exists.
// If the placement is for a machine or a container on an existing machine,
// check that the machine is not locked for series upgrade. | {
"resource": ""
} | ||
c154177 | train | // applicationSetSettingsStrings updates the settings for the given application,
// taking the configuration from a map of strings. | {
"resource": ""
} | ||
c154178 | train | // Update updates the application attributes, including charm URL,
// minimum number of units, charm config and constraints.
// All parameters in params.ApplicationUpdate except the application name are optional. | {
"resource": ""
} | ||
c154179 | train | // updateCharm parses the charm url and then grabs the charm from the backend.
// this is analogous to setCharmWithAgentValidation, minus the validation around
// setting the profile charm. | {
"resource": ""
} | ||
c154180 | train | // UpdateApplicationSeries updates the application series. Series for
// subordinates updated too. | {
"resource": ""
} | ||
c154181 | train | // SetCharm sets the charm for a given for the application. | {
"resource": ""
} | ||
c154182 | train | // setCharmWithAgentValidation checks the agent versions of the application
// and unit before continuing on. These checks are important to prevent old
// code running at the same time as the new code. If you encounter the error,
// the correct and only work around is to upgrade the units to match the
// controller. | {
"resource": ""
} | ||
c154183 | train | // applicationSetCharm sets the charm for the given for the application. | {
"resource": ""
} | ||
c154184 | train | // charmConfigFromGetYaml will parse a yaml produced by juju get and generate
// charm.Settings from it that can then be sent to the application. | {
"resource": ""
} | ||
c154185 | train | // applicationSetCharmConfigYAML updates the charm config for the
// given application, taking the configuration from a YAML string. | {
"resource": ""
} | ||
c154186 | train | // Set implements the server side of Application.Set.
// It does not unset values that are set to an empty string.
// Unset should be used for that. | {
"resource": ""
} | ||
c154187 | train | // Unset implements the server side of Client.Unset. | {
"resource": ""
} | ||
c154188 | train | // CharmRelations implements the server side of Application.CharmRelations. | {
"resource": ""
} | ||
c154189 | train | // addApplicationUnits adds a given number of units to an application. | {
"resource": ""
} | ||
c154190 | train | // ScaleApplications scales the specified application to the requested number of units. | {
"resource": ""
} | ||
c154191 | train | // GetConstraints returns the constraints for a given application. | {
"resource": ""
} | ||
c154192 | train | // SetConstraints sets the constraints for a given application. | {
"resource": ""
} | ||
c154193 | train | // DestroyRelation removes the relation between the
// specified endpoints or an id. | {
"resource": ""
} | ||
c154194 | train | // SetRelationsSuspended sets the suspended status of the specified relations. | {
"resource": ""
} | ||
c154195 | train | // Consume adds remote applications to the model without creating any
// relations. | {
"resource": ""
} | ||
c154196 | train | // saveRemoteApplication saves the details of the specified remote application and its endpoints
// to the state model so relations to the remote application can be created. | {
"resource": ""
} | ||
c154197 | train | // providerSpaceInfoFromParams converts a params.RemoteSpace to the
// equivalent ProviderSpaceInfo. | {
"resource": ""
} | ||
c154198 | train | // maybeUpdateExistingApplicationEndpoints looks for a remote application with the
// specified name and source model tag and tries to update its endpoints with the
// new ones specified. If the endpoints are compatible, the newly updated remote
// application is returned. | {
"resource": ""
} | ||
c154199 | train | // GetConstraints returns the v4 implementation of GetConstraints. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.