_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c17000
train
// PodStatus retrieves the pod configuration from marathon
{ "resource": "" }
c17001
train
// PodStatuses retrieves all pod configuration from marathon
{ "resource": "" }
c17002
train
// WaitOnPod blocks until a pod to be deployed
{ "resource": "" }
c17003
train
// PodIsRunning returns whether the pod is stably running
{ "resource": "" }
c17004
train
// SetName sets the name on the readiness check.
{ "resource": "" }
c17005
train
// SetProtocol sets the protocol on the readiness check.
{ "resource": "" }
c17006
train
// SetPath sets the path on the readiness check.
{ "resource": "" }
c17007
train
// SetPortName sets the port name on the readiness check.
{ "resource": "" }
c17008
train
// SetInterval sets the interval on the readiness check.
{ "resource": "" }
c17009
train
// SetTimeout sets the timeout on the readiness check.
{ "resource": "" }
c17010
train
// SetHTTPStatusCodesForReady sets the HTTP status codes for ready on the // readiness check.
{ "resource": "" }
c17011
train
// SetPreserveLastResponse sets the preserve last response flag on the // readiness check.
{ "resource": "" }
c17012
train
// Deployments retrieves a list of current deployments
{ "resource": "" }
c17013
train
// NewPodVolume creates a new PodVolume
{ "resource": "" }
c17014
train
// NewPodVolumeMount creates a new PodVolumeMount
{ "resource": "" }
c17015
train
// SetPersistentVolume sets the persistence settings of a PodVolume
{ "resource": "" }
c17016
train
// Info retrieves the info stats from marathon
{ "resource": "" }
c17017
train
// Leader retrieves the current marathon leader node
{ "resource": "" }
c17018
train
// AbdicateLeader abdicates the marathon leadership
{ "resource": "" }
c17019
train
// SetKind sets the Kind of the image
{ "resource": "" }
c17020
train
// SetID sets the ID of the image
{ "resource": "" }
c17021
train
// Groups retrieves a list of all the groups from marathon
{ "resource": "" }
c17022
train
// buildAPIRequest creates a default API request. // It fails when there is no available member in the cluster anymore or when the request can not be built.
{ "resource": "" }
c17023
train
// oneLogLine removes indentation at the beginning of each line and // escapes new line characters.
{ "resource": "" }
c17024
train
// SetIPAddressPerTask defines that the application will have a IP address defines by a external agent. // This configuration is not allowed to be used with Port or PortDefinitions. Thus, the implementation // clears both.
{ "resource": "" }
c17025
train
// Command sets the cmd of the application
{ "resource": "" }
c17026
train
// AllTaskRunning checks to see if all the application tasks are running, i.e. the instances is equal // to the number of running tasks
{ "resource": "" }
c17027
train
// AddPortDefinition adds a port definition. Port definitions are used to define ports that // should be considered part of a resource. They are necessary when you are using HOST // networking and no port mappings are specified.
{ "resource": "" }
c17028
train
// SetExecutor sets the executor
{ "resource": "" }
c17029
train
// AddHealthCheck adds a health check // healthCheck the health check that should be added
{ "resource": "" }
c17030
train
// HasHealthChecks is a helper method, used to check if an application has health checks
{ "resource": "" }
c17031
train
// AddReadinessCheck adds a readiness check.
{ "resource": "" }
c17032
train
// DeploymentIDs retrieves the application deployments IDs
{ "resource": "" }
c17033
train
// SetUpgradeStrategy sets the upgrade strategy.
{ "resource": "" }
c17034
train
// SetUnreachableStrategy sets the unreachable strategy.
{ "resource": "" }
c17035
train
// SetResidency sets behavior for resident applications, an application is resident when // it has local persistent volumes set
{ "resource": "" }
c17036
train
// String returns the json representation of this application
{ "resource": "" }
c17037
train
// Applications retrieves an array of all the applications which are running in marathon
{ "resource": "" }
c17038
train
// ListApplications retrieves an array of the application names currently running in marathon
{ "resource": "" }
c17039
train
// SetNetwork sets the networking mode
{ "resource": "" }
c17040
train
// HasHealthCheckResults checks if the task has any health checks
{ "resource": "" }
c17041
train
// SetPort sets the given port for the PortDefinition
{ "resource": "" }
c17042
train
// UnmarshalJSON unmarshals the given Pod JSON as expected except for environment variables and secrets. // Environment variables are stored in the Env field. Secrets, including the environment variable part, // are stored in the Secrets field.
{ "resource": "" }
c17043
train
// MarshalJSON marshals the given Pod as expected except for environment variables and secrets, // which are marshaled from specialized structs. The environment variable piece of the secrets and other // normal environment variables are combined and marshaled to the env field. The secrets and the related // source ar...
{ "resource": "" }
c17044
train
// NewDefaultConfig create a default client config
{ "resource": "" }
c17045
train
// newInvalidEndpointError creates a new error
{ "resource": "" }
c17046
train
// NewAPIError creates a new APIError instance from the given response code and content.
{ "resource": "" }
c17047
train
// NewPodContainer creates an empty PodContainer
{ "resource": "" }
c17048
train
// SetName sets the name of a pod container
{ "resource": "" }
c17049
train
// SetCommand sets the shell command of a pod container
{ "resource": "" }
c17050
train
// CPUs sets the CPUs of a pod container
{ "resource": "" }
c17051
train
// Memory sets the memory of a pod container
{ "resource": "" }
c17052
train
// Storage sets the storage capacity of a pod container
{ "resource": "" }
c17053
train
// GPUs sets the GPU requirements of a pod container
{ "resource": "" }
c17054
train
// AddEndpoint appends an endpoint for a pod container
{ "resource": "" }
c17055
train
// SetImage sets the image of a pod container
{ "resource": "" }
c17056
train
// EmptyEnvs initialized env to empty
{ "resource": "" }
c17057
train
// AddEnv adds an environment variable for a pod container
{ "resource": "" }
c17058
train
// ExtendEnv extends the environment for a pod container
{ "resource": "" }
c17059
train
// AddSecret adds a secret to the environment for a pod container
{ "resource": "" }
c17060
train
// SetHealthCheck sets the health check of a pod container
{ "resource": "" }
c17061
train
// AddVolumeMount appends a volume mount to a pod container
{ "resource": "" }
c17062
train
// AddArtifact appends an artifact to a pod container
{ "resource": "" }
c17063
train
// AddLabel adds a label to a pod container
{ "resource": "" }
c17064
train
// SetLifecycle sets the lifecycle of a pod container
{ "resource": "" }
c17065
train
// MarshalJSON marshals the given Application as expected except for environment variables and secrets, // which are marshaled from specialized structs. The environment variable piece of the secrets and other // normal environment variables are combined and marshaled to the env field. The secrets and the related // s...
{ "resource": "" }
c17066
train
//pushes Record into array
{ "resource": "" }
c17067
train
//peeks current state for filling object. Doesn't change position. Returns state, pos
{ "resource": "" }
c17068
train
//takes current state and increments reading position.
{ "resource": "" }
c17069
train
//checks if we need this state to be recorded
{ "resource": "" }
c17070
train
// stateTru is the state after reading `tru`.
{ "resource": "" }
c17071
train
// next cuts off and returns the next full JSON value // The next value is known to be an object or array or a literal
{ "resource": "" }
c17072
train
//wrappers scanner funcs
{ "resource": "" }
c17073
train
// Get the environment variable or return the default value if unset
{ "resource": "" }
c17074
train
// New creates a new ExpireCache.
{ "resource": "" }
c17075
train
// Retrieves a key's value from the cache
{ "resource": "" }
c17076
train
// Put the key, value and TTL in the cache
{ "resource": "" }
c17077
train
// Update the value in the cache without updating the TTL
{ "resource": "" }
c17078
train
// Get the value without updating the expiration
{ "resource": "" }
c17079
train
// Processes each item in the cache in a thread safe way, such that the cache can be in use // while processing items in the cache
{ "resource": "" }
c17080
train
// Retrieve stats about the cache
{ "resource": "" }
c17081
train
// Returns the number of items in the cache.
{ "resource": "" }
c17082
train
// Run a new routine with an optional data value
{ "resource": "" }
c17083
train
// Wait for all the routines to complete and return any errors
{ "resource": "" }
c17084
train
// Return a random string made up of characters passed
{ "resource": "" }
c17085
train
// Return a random string of alpha characters
{ "resource": "" }
c17086
train
// Return a random string of alpha and numeric characters
{ "resource": "" }
c17087
train
// Given a list of strings, return one of the strings randomly
{ "resource": "" }
c17088
train
// Makes the deterministic time move forward by the specified duration, firing // timers along the way in the natural order. It returns how much time has // passed since it was frozen. So you can assert on the return value in tests // to make it explicit where you stand on the deterministic time scale.
{ "resource": "" }
c17089
train
// Wait4Scheduled blocks until either there are n or more scheduled events, or // the timeout elapses. It returns true if the wait condition has been met // before the timeout expired, false otherwise.
{ "resource": "" }
c17090
train
// AfterFunc see time.AfterFunc.
{ "resource": "" }
c17091
train
// Signs a given HTTP request with signature, nonce, and timestamp.
{ "resource": "" }
c17092
train
// Authenticates HTTP request to ensure it was sent by an authorized sender.
{ "resource": "" }
c17093
train
// Authenticates HTTP request to ensure it was sent by an authorized sender. // Checks message signature with the passed in key, not the one initialized with.
{ "resource": "" }
c17094
train
// Parses a timestamp header and returns true if the timestamp is neither older than the TTL or is from the future.
{ "resource": "" }
c17095
train
// Returns Caller information on the first frame in the stack trace
{ "resource": "" }
c17096
train
// New returns a new Service. Config can not be nil.
{ "resource": "" }
c17097
train
// Seal takes plaintext and a key and returns encrypted and authenticated ciphertext. // Allows passing in a key and useful for one off sealing purposes, otherwise // create a secret.Service to seal multiple times.
{ "resource": "" }
c17098
train
// Open authenticates the ciphertext and if valid, decrypts and returns plaintext. // Allows passing in a key and useful for one off opening purposes, otherwise // create a secret.Service to open multiple times.
{ "resource": "" }
c17099
train
// Seal takes plaintext and returns encrypted and authenticated ciphertext.
{ "resource": "" }