_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c3900
train
// Destroy is part of the Broker interface.
{ "resource": "" }
c3901
train
// APIVersion returns the version info for the cluster.
{ "resource": "" }
c3902
train
// ensureOCIImageSecret ensures a secret exists for use with retrieving images from private registries
{ "resource": "" }
c3903
train
// updateSecret updates a secret resource.
{ "resource": "" }
c3904
train
// getSecret return a secret resource.
{ "resource": "" }
c3905
train
// createSecret creates a secret resource.
{ "resource": "" }
c3906
train
// deleteSecret deletes a secret resource.
{ "resource": "" }
c3907
train
// OperatorExists indicates if the operator for the specified // application exists, and whether the operator is terminating.
{ "resource": "" }
c3908
train
// ValidateStorageClass returns an error if the storage config is not valid.
{ "resource": "" }
c3909
train
// maybeGetVolumeClaimSpec returns a persistent volume claim spec for the given // parameters. If no suitable storage class is available, return a NotFound error.
{ "resource": "" }
c3910
train
// getStorageClass returns a named storage class, first looking for // one which is qualified by the current namespace if it's available.
{ "resource": "" }
c3911
train
// EnsureStorageProvisioner creates a storage class with the specified config, or returns an existing one.
{ "resource": "" }
c3912
train
// DeleteOperator deletes the specified operator.
{ "resource": "" }
c3913
train
// GetService returns the service for the specified application.
{ "resource": "" }
c3914
train
// DeleteService deletes the specified service with all related resources.
{ "resource": "" }
c3915
train
// EnsureCustomResourceDefinition creates or updates a custom resource definition resource.
{ "resource": "" }
c3916
train
// Upgrade sets the OCI image for the app's operator to the specified version.
{ "resource": "" }
c3917
train
// createStatefulSet deletes a statefulset resource.
{ "resource": "" }
c3918
train
// deleteStatefulSet deletes a statefulset resource.
{ "resource": "" }
c3919
train
// ensureK8sService ensures a k8s service resource.
{ "resource": "" }
c3920
train
// deleteService deletes a service resource.
{ "resource": "" }
c3921
train
// ExposeService sets up external access to the specified application.
{ "resource": "" }
c3922
train
// UnexposeService removes external access to the specified service.
{ "resource": "" }
c3923
train
// WatchUnits returns a watcher which notifies when there // are changes to units of the specified application.
{ "resource": "" }
c3924
train
// WatchService returns a watcher which notifies when there // are changes to the deployment of the specified application.
{ "resource": "" }
c3925
train
// WatchOperator returns a watcher which notifies when there // are changes to the operator of the specified application.
{ "resource": "" }
c3926
train
// Operator returns an Operator with current status and life details.
{ "resource": "" }
c3927
train
// ensureConfigMap ensures a ConfigMap resource.
{ "resource": "" }
c3928
train
// deleteConfigMap deletes a ConfigMap resource.
{ "resource": "" }
c3929
train
// createConfigMap creates a ConfigMap resource.
{ "resource": "" }
c3930
train
// getConfigMap returns a ConfigMap resource.
{ "resource": "" }
c3931
train
// legacyAppName returns true if there are any artifacts for // appName which indicate that this deployment was for Juju 2.5.0.
{ "resource": "" }
c3932
train
// Model is part of the ModelGetter interface.
{ "resource": "" }
c3933
train
// NewRemoveCloudCommand returns a command to remove cloud information.
{ "resource": "" }
c3934
train
// newOracleVolumeSource returns a new volume source to provide an interface // for creating, destroying, describing attaching and detaching volumes in the // oracle cloud environment
{ "resource": "" }
c3935
train
// resourceName returns an oracle compatible resource name.
{ "resource": "" }
c3936
train
// CreateVolumes is specified on the storage.VolumeSource interface
{ "resource": "" }
c3937
train
// fetchVolumeStatus polls the status of a volume and returns true if the current status // coincides with the desired status
{ "resource": "" }
c3938
train
// fetchVolumeAttachmentStatus polls the status of a volume attachment and returns true if the current status // coincides with the desired status
{ "resource": "" }
c3939
train
// getFreeIndexNumber returns the first unused consecutive value in a sorted array of ints // this is used to find an available index number for attaching a volume to an instance
{ "resource": "" }
c3940
train
// NewCloudSpec returns a new CloudSpecAPI.
{ "resource": "" }
c3941
train
// CloudSpec returns the model's cloud spec.
{ "resource": "" }
c3942
train
// GetCloudSpec constructs the CloudSpec for a validated and authorized model.
{ "resource": "" }
c3943
train
// WatchCloudSpecsChanges returns a watcher for cloud spec changes.
{ "resource": "" }
c3944
train
// IsCmdNotFoundErr returns true if the provided error indicates that the // command passed to exec.LookPath or exec.Command was not found.
{ "resource": "" }
c3945
train
// AllAttrs returns just the attribute values from the config.
{ "resource": "" }
c3946
train
// NewFacade creates a Facade from an APICaller and an entity for which // administrative control will be claimed. It's a suitable default value // for ManifoldConfig.NewFacade.
{ "resource": "" }
c3947
train
// NewWorker calls NewFlagWorker but returns a more convenient type. It's // a suitable default value for ManifoldConfig.NewWorker.
{ "resource": "" }
c3948
train
// NewSimpleWorker returns a worker that runs the given function. The // stopCh argument will be closed when the worker is killed. The error returned // by the doWork function will be returned by the worker's Wait function.
{ "resource": "" }
c3949
train
// NewUnregisterCmd returns a new UnregisterCmd that wraps the given context.
{ "resource": "" }
c3950
train
// Run runs the unregister command.
{ "resource": "" }
c3951
train
// startIntrospection creates the introspection worker. It cannot and should // not be in the engine itself as it reports on the engine, and other aspects // of the runtime. If we put it in the engine, then it is mostly likely shut // down in the times we need it most, which is when the agent is having // problems shut...
{ "resource": "" }
c3952
train
// newPrometheusRegistry returns a new prometheus.Registry with // the Go and process metric collectors registered. This registry // is exposed by the introspection abstract domain socket on all // Linux agents.
{ "resource": "" }
c3953
train
// NextSubnetIP returns the next available IP address in a given subnet.
{ "resource": "" }
c3954
train
// NthSubnetIP returns the n'th IP address in a given subnet, where n is a // zero-based index, zero being the first available IP address in the subnet. // // If n is out of range, NthSubnetIP will return nil.
{ "resource": "" }
c3955
train
// processNewConfig acts on a new syslog forward config change.
{ "resource": "" }
c3956
train
// waitForEnabled returns true if streaming is enabled. // Otherwise if blocks and waits for enabled to be true.
{ "resource": "" }
c3957
train
// NewLogForwarder returns a worker that forwards logs received from // the stream to the sender.
{ "resource": "" }
c3958
train
// watchProfileChanges, any error returned will cause the worker to restart.
{ "resource": "" }
c3959
train
// NewControllerAPIv7 creates a new ControllerAPIv7.
{ "resource": "" }
c3960
train
// NewControllerAPIv6 creates a new ControllerAPIv6.
{ "resource": "" }
c3961
train
// NewControllerAPIv5 creates a new ControllerAPIv5.
{ "resource": "" }
c3962
train
// NewControllerAPIv4 creates a new ControllerAPIv4.
{ "resource": "" }
c3963
train
// NewControllerAPIv3 creates a new ControllerAPIv3.
{ "resource": "" }
c3964
train
// NewControllerAPI creates a new api server endpoint for operations // on a controller.
{ "resource": "" }
c3965
train
// MongoVersion allows the introspection of the mongo version per controller
{ "resource": "" }
c3966
train
// ListBlockedModels returns a list of all models on the controller // which have a block in place. The resulting slice is sorted by model // name, then owner. Callers must be controller administrators to retrieve the // list.
{ "resource": "" }
c3967
train
// ModelConfig returns the model config for the controller // model. For information on the current model, use // client.ModelGet
{ "resource": "" }
c3968
train
// HostedModelConfigs returns all the information that the client needs in // order to connect directly with the host model's provider and destroy it // directly.
{ "resource": "" }
c3969
train
// WatchAllModels starts watching events for all models in the // controller. The returned AllWatcherId should be used with Next on the // AllModelWatcher endpoint to receive deltas.
{ "resource": "" }
c3970
train
// GetControllerAccess returns the level of access the specified users // have on the controller.
{ "resource": "" }
c3971
train
// InitiateMigration attempts to begin the migration of one or // more models to other controllers.
{ "resource": "" }
c3972
train
// ModifyControllerAccess changes the model access granted to users.
{ "resource": "" }
c3973
train
// ConfigSet changes the value of specified controller configuration // settings. Only some settings can be changed after bootstrap. // Settings that aren't specified in the params are left unchanged.
{ "resource": "" }
c3974
train
// grantControllerCloudAccess exists for backwards compatibility since older clients // still set add-model on the controller rather than the controller cloud.
{ "resource": "" }
c3975
train
// ChangeControllerAccess performs the requested access grant or revoke action for the // specified user on the controller.
{ "resource": "" }
c3976
train
// Check is part of the lease.Token interface.
{ "resource": "" }
c3977
train
// invoke sends the check on the supplied channel and waits for an error // response.
{ "resource": "" }
c3978
train
// respond notifies the originating invoke of completion status.
{ "resource": "" }
c3979
train
// DataSource creates and returns a new simplestreams signed data source for // fetching Juju GUI archives, at the given URL.
{ "resource": "" }
c3980
train
// FetchMetadata fetches and returns Juju GUI metadata from simplestreams, // sorted by version descending.
{ "resource": "" }
c3981
train
// appendArchives collects all matching Juju GUI archive metadata information.
{ "resource": "" }
c3982
train
// NewState creates a new client-side StorageProvisioner facade.
{ "resource": "" }
c3983
train
// WatchVolumes watches for lifecycle changes to volumes scoped to the // entity with the specified tag.
{ "resource": "" }
c3984
train
// WatchVolumeAttachments watches for changes to volume attachments // scoped to the entity with the specified tag.
{ "resource": "" }
c3985
train
// WatchVolumeAttachmentPlans watches for changes to volume attachments // scoped to the entity with the tag passed to NewState.
{ "resource": "" }
c3986
train
// WatchFilesystemAttachments watches for changes to filesystem attachments // scoped to the entity with the specified tag.
{ "resource": "" }
c3987
train
// VolumeBlockDevices returns details of block devices corresponding to the volume // attachments with the specified IDs.
{ "resource": "" }
c3988
train
// VolumeParams returns the parameters for creating the volumes // with the specified tags.
{ "resource": "" }
c3989
train
// VolumeAttachmentParams returns the parameters for creating the volume // attachments with the specified tags.
{ "resource": "" }
c3990
train
// FilesystemAttachmentParams returns the parameters for creating the // filesystem attachments with the specified tags.
{ "resource": "" }
c3991
train
// Life requests the life cycle of the entities with the specified tags.
{ "resource": "" }
c3992
train
// AttachmentLife requests the life cycle of the attachments with the specified IDs.
{ "resource": "" }
c3993
train
// EnsureDead progresses the entities with the specified tags to the Dead // life cycle state, if they are Alive or Dying.
{ "resource": "" }
c3994
train
// RemoveAttachments removes the attachments with the specified IDs from state.
{ "resource": "" }
c3995
train
// InstanceIds returns the provider specific instance ID for each machine, // or an CodeNotProvisioned error if not set.
{ "resource": "" }
c3996
train
// SetStatus sets the status of storage entities.
{ "resource": "" }
c3997
train
// newSubordinateRelationsWatcher creates a watcher that will notify // about relation lifecycle events for subordinateApp, but filtered to // be relevant to a unit deployed to a container with the // principalName app. Global relations will be included, but only // container-scoped relations for the principal applicat...
{ "resource": "" }
c3998
train
// OneError returns the first error
{ "resource": "" }
c3999
train
// Validate returns an error if the info is not valid.
{ "resource": "" }