_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c25900
train
// GetServicePlanVisibilities fetches service plan visibilities for a plan by GUID.
{ "resource": "" }
c25901
train
// CreatePath combines the route's path pattern with a Params map // to produce a valid path.
{ "resource": "" }
c25902
train
// NewRouter returns a pointer to a new Router.
{ "resource": "" }
c25903
train
// CreateRequest returns a request key'd off of the name given. The params are // merged into the URL and body is set as the request body.
{ "resource": "" }
c25904
train
// NewClient returns a new UAA Client with the provided configuration
{ "resource": "" }
c25905
train
// NewUI will return a UI object where Out is set to STDOUT, In is set to // STDIN, and Err is set to STDERR
{ "resource": "" }
c25906
train
// DisplayError outputs the translated error message to ui.Err if the error // satisfies TranslatableError, otherwise it outputs the original error message // to ui.Err. It also outputs "FAILED" in bold red to ui.Out.
{ "resource": "" }
c25907
train
// DisplayHeader translates the header, bolds and adds the default color to the // header, and outputs the result to ui.Out.
{ "resource": "" }
c25908
train
// DisplayNewline outputs a newline to UI.Out.
{ "resource": "" }
c25909
train
// DisplayOK outputs a bold green translated "OK" to UI.Out.
{ "resource": "" }
c25910
train
// DisplayText translates the template, substitutes in templateValues, and // outputs the result to ui.Out. Only the first map in templateValues is used.
{ "resource": "" }
c25911
train
// DisplayTextWithFlavor translates the template, bolds and adds cyan color to // templateValues, substitutes templateValues into the template, and outputs // the result to ui.Out. Only the first map in templateValues is used.
{ "resource": "" }
c25912
train
// DisplayWarning translates the warning, substitutes in templateValues, and // outputs to ui.Err. Only the first map in templateValues is used.
{ "resource": "" }
c25913
train
// DisplayWarnings translates the warnings and outputs to ui.Err.
{ "resource": "" }
c25914
train
// TranslateText passes the template through an internationalization function // to translate it to a pre-configured language, and returns the template with // templateValues substituted in. Only the first map in templateValues is used.
{ "resource": "" }
c25915
train
// UserFriendlyDate converts the time to UTC and then formats it to ISO8601.
{ "resource": "" }
c25916
train
// AddPluginRepository adds an new repository to the plugin config. It does not // add duplicates to the config.
{ "resource": "" }
c25917
train
// DisplayChangesForPush will display the set of changes via // DisplayChangeForPush in the order given.
{ "resource": "" }
c25918
train
// CreateServiceInstance creates a new service instance with the provided attributes.
{ "resource": "" }
c25919
train
// Summary converts routes into a comma separated string.
{ "resource": "" }
c25920
train
// Validate will return an error if there are invalid HTTP or TCP settings for // it's given domain.
{ "resource": "" }
c25921
train
// ValidateWithRandomPort will return an error if a random port is requested // for an HTTP route, or if the route is TCP, a random port wasn't requested, // and the route has no port set.
{ "resource": "" }
c25922
train
// String formats the route in a human readable format.
{ "resource": "" }
c25923
train
// GetOrphanedRoutesBySpace returns a list of orphaned routes associated with // the provided Space GUID.
{ "resource": "" }
c25924
train
// GetApplicationRoutes returns a list of routes associated with the provided // Application GUID.
{ "resource": "" }
c25925
train
// GetSpaceRoutes returns a list of routes associated with the provided Space // GUID.
{ "resource": "" }
c25926
train
// DeleteUnmappedRoutes deletes the unmapped routes associated with the provided Space GUID.
{ "resource": "" }
c25927
train
// FindRouteBoundToSpaceWithSettings finds the route with the given host, // domain and space. If it is unable to find the route, it will check if it // exists anywhere in the system. When the route exists in another space, // RouteInDifferentSpaceError is returned. Use this when you know the space // GUID.
{ "resource": "" }
c25928
train
// GetRouteByComponents returns the route with the matching host, domain, path, // and port. Use this when you don't know the space GUID. // TCP routes require a port to be uniquely identified // HTTP routes using shared domains require a hostname or path to be uniquely identified
{ "resource": "" }
c25929
train
// ToV3Resource converts a sharedaction Resource to V3 Resource format
{ "resource": "" }
c25930
train
// ToV2Resource converts a V3 Resource to V2 Resource format
{ "resource": "" }
c25931
train
// GatherArchiveResources returns a list of resources for an archive.
{ "resource": "" }
c25932
train
// GatherDirectoryResources returns a list of resources for a directory.
{ "resource": "" }
c25933
train
// MarshalJSON converts an application into a Cloud Controller Application.
{ "resource": "" }
c25934
train
// CreateApplication creates a cloud controller application in with the given // settings. SpaceGUID and Name are the only required fields.
{ "resource": "" }
c25935
train
// GetApplication returns back an Application.
{ "resource": "" }
c25936
train
// GetRouteApplications returns a list of Applications based off a route // GUID and the provided filters.
{ "resource": "" }
c25937
train
// RestageApplication restages the application with the given GUID.
{ "resource": "" }
c25938
train
// CalculatedBuildpacks will return back the buildpacks for the application.
{ "resource": "" }
c25939
train
// Apps updates with both docker image and stack guids fail. So do not send // StackGUID unless it is necessary.
{ "resource": "" }
c25940
train
// NewClient returns a new plugin Client.
{ "resource": "" }
c25941
train
// UpdateApplicationSettings syncs the Application state and GUID with the API.
{ "resource": "" }
c25942
train
// implement sort interface so we can sort messages as we receive them in PushMessage
{ "resource": "" }
c25943
train
// CreatePushPlans returns a set of PushPlan objects based off the inputs // provided. It's assumed that all flag and argument and manifest combinations // have been validated prior to calling this function.
{ "resource": "" }
c25944
train
// DeleteBuildpack deletes the buildpack with the provided guid.
{ "resource": "" }
c25945
train
// MatchResources returns back a list of matched and unmatched resources for the provided resources.
{ "resource": "" }
c25946
train
// UnmarshalJSON helps unmarshal a Cloud Controller User response.
{ "resource": "" }
c25947
train
// CreateUser creates a new Cloud Controller User from the provided UAA user // ID.
{ "resource": "" }
c25948
train
// NewClient returns a new Router Client.
{ "resource": "" }
c25949
train
// GetServiceInstanceSharedFrom returns back a ServiceInstanceSharedFrom // object.
{ "resource": "" }
c25950
train
// GetFeatureFlags lists feature flags.
{ "resource": "" }
c25951
train
// EvaluateTTYOption determines which TTY options are mutually exclusive and // returns an error accordingly.
{ "resource": "" }
c25952
train
// GetSpaceQuotaByName finds the quota by name and returns an error if not found
{ "resource": "" }
c25953
train
// SetSpaceQuota sets the space quota for the corresponding space
{ "resource": "" }
c25954
train
// GetDomain returns the shared or private domain associated with the provided // Domain GUID.
{ "resource": "" }
c25955
train
// GetDomainsByNameAndOrganization returns back a list of domains given a list // of domains names and the organization GUID. If no domains are given, than this // command will not lookup any domains.
{ "resource": "" }
c25956
train
// GetSharedDomain returns the shared domain associated with the provided // Domain GUID.
{ "resource": "" }
c25957
train
// GetOrganizationDomains returns the shared and private domains associated // with an organization.
{ "resource": "" }
c25958
train
// StartTime returns the time that the instance started.
{ "resource": "" }
c25959
train
// NewClient creates a new V2 Cloud Controller client and UAA client using the // passed in config.
{ "resource": "" }
c25960
train
// SetupResources configures the client to use the specified settings and diescopers the UAA and Authentication resources
{ "resource": "" }
c25961
train
// CommandInfoByName returns the help information for a particular commandName in // the commandList.
{ "resource": "" }
c25962
train
// CommandInfos returns a slice of CommandInfo that only fills in // the Name and Description for all the commands in commandList
{ "resource": "" }
c25963
train
// UnmarshalJSON helps unmarshal a Cloud Controller Resource response.
{ "resource": "" }
c25964
train
// DeleteApplication deletes the app with the given app GUID. Returns back a // resulting job URL to poll.
{ "resource": "" }
c25965
train
// UpdateApplicationApplyManifest applies the manifest to the given // application. Returns back a resulting job URL to poll.
{ "resource": "" }
c25966
train
// GetTranslationFunc will return back a function that can be used to translate // strings into the currently set locale.
{ "resource": "" }
c25967
train
// GetUsers returns all the users in the targeted environment
{ "resource": "" }
c25968
train
// rootResponse returns the CC API root document.
{ "resource": "" }
c25969
train
// MarshalJSON converts an Application into a Cloud Controller Application.
{ "resource": "" }
c25970
train
// GetApplications lists applications with optional queries.
{ "resource": "" }
c25971
train
// UpdateApplication updates an application with the given settings.
{ "resource": "" }
c25972
train
// UpdateApplicationRestart restarts the given application.
{ "resource": "" }
c25973
train
// CalculatedBuildpack returns the buildpack that will be used.
{ "resource": "" }
c25974
train
// CalculatedCommand returns the command that will be used.
{ "resource": "" }
c25975
train
// StagingFailedMessage returns the verbose description of the failure or // the reason if the verbose description is empty.
{ "resource": "" }
c25976
train
// CreateApplication creates an application.
{ "resource": "" }
c25977
train
// GetApplication returns the application.
{ "resource": "" }
c25978
train
// GetApplicationByNameAndSpace returns an application with matching name in // the space.
{ "resource": "" }
c25979
train
// GetRouteApplications returns a list of apps associated with the provided // Route GUID.
{ "resource": "" }
c25980
train
// SetApplicationHealthCheckTypeByNameAndSpace updates an application's health // check type if it is not already the desired type.
{ "resource": "" }
c25981
train
// StartApplication restarts a given application. If already stopped, no stop // call will be sent.
{ "resource": "" }
c25982
train
// RestageApplication restarts a given application. If already stopped, no stop // call will be sent.
{ "resource": "" }
c25983
train
// GetRouterGroupByName returns a list of RouterGroups.
{ "resource": "" }
c25984
train
// MarshalJSON converts a Build into a Cloud Controller Application.
{ "resource": "" }
c25985
train
// UnmarshalJSON helps unmarshal a Cloud Controller Build response.
{ "resource": "" }
c25986
train
// CreateBuild creates the given build, requires Package GUID to be set on the // build.
{ "resource": "" }
c25987
train
// GetBuild gets the build with the given GUID.
{ "resource": "" }
c25988
train
// GetEnvironmentVariablesByApplicationNameAndSpace returns the environment // variables for an application.
{ "resource": "" }
c25989
train
// SetEnvironmentVariableByApplicationNameAndSpace adds an // EnvironmentVariablePair to an application. It must be restarted for changes // to take effect.
{ "resource": "" }
c25990
train
// UnsetEnvironmentVariableByApplicationNameAndSpace removes an enviornment // variable from an application. It must be restarted for changes to take // effect.
{ "resource": "" }
c25991
train
// DisplayBoolPrompt outputs the prompt and waits for user input. It only // allows for a boolean response. A default boolean response can be set with // defaultResponse.
{ "resource": "" }
c25992
train
// DisplayPasswordPrompt outputs the prompt and waits for user input. Hides // user's response from the screen.
{ "resource": "" }
c25993
train
// DisplayTextMenu lets the user choose from a list of options, either by name // or by number.
{ "resource": "" }
c25994
train
// DisplayTextPrompt outputs the prompt and waits for user input.
{ "resource": "" }
c25995
train
// UnmarshalJSON helps unmarshal a Cloud Controller Route response.
{ "resource": "" }
c25996
train
// CheckRoute returns true if the route exists in the CF instance.
{ "resource": "" }
c25997
train
// DeleteRouteApplication removes the link between the route and application.
{ "resource": "" }
c25998
train
// DeleteSpaceUnmappedRoutes deletes Routes within a specified Space not mapped // to an Application
{ "resource": "" }
c25999
train
// GetRoute returns a route with the provided guid.
{ "resource": "" }