_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c17000
// PodStatus retrieves the pod configuration from marathon
c17001
// PodStatuses retrieves all pod configuration from marathon
c17002
// WaitOnPod blocks until a pod to be deployed
c17003
// PodIsRunning returns whether the pod is stably running
c17004
// SetName sets the name on the readiness check.
c17005
// SetProtocol sets the protocol on the readiness check.
c17006
// SetPath sets the path on the readiness check.
c17007
// SetPortName sets the port name on the readiness check.
c17008
// SetInterval sets the interval on the readiness check.
c17009
// SetTimeout sets the timeout on the readiness check.
c17010
// SetHTTPStatusCodesForReady sets the HTTP status codes for ready on the // readiness check.
c17011
// SetPreserveLastResponse sets the preserve last response flag on the // readiness check.
c17012
// Deployments retrieves a list of current deployments
c17013
// NewPodVolume creates a new PodVolume
c17014
// NewPodVolumeMount creates a new PodVolumeMount
c17015
// SetPersistentVolume sets the persistence settings of a PodVolume
c17016
// Info retrieves the info stats from marathon
c17017
// Leader retrieves the current marathon leader node
c17018
// AbdicateLeader abdicates the marathon leadership
c17019
// SetKind sets the Kind of the image
c17020
// SetID sets the ID of the image
c17021
// Groups retrieves a list of all the groups from marathon
c17022
// 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.
c17023
// oneLogLine removes indentation at the beginning of each line and // escapes new line characters.
c17024
// 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.
c17025
// Command sets the cmd of the application
c17026
// AllTaskRunning checks to see if all the application tasks are running, i.e. the instances is equal // to the number of running tasks
c17027
// 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.
c17028
// SetExecutor sets the executor
c17029
// AddHealthCheck adds a health check // healthCheck the health check that should be added
c17030
// HasHealthChecks is a helper method, used to check if an application has health checks
c17031
// AddReadinessCheck adds a readiness check.
c17032
// DeploymentIDs retrieves the application deployments IDs
c17033
// SetUpgradeStrategy sets the upgrade strategy.
c17034
// SetUnreachableStrategy sets the unreachable strategy.
c17035
// SetResidency sets behavior for resident applications, an application is resident when // it has local persistent volumes set
c17036
// String returns the json representation of this application
c17037
// Applications retrieves an array of all the applications which are running in marathon
c17038
// ListApplications retrieves an array of the application names currently running in marathon
c17039
// SetNetwork sets the networking mode
c17040
// HasHealthCheckResults checks if the task has any health checks
c17041
// SetPort sets the given port for the PortDefinition
c17042
// 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.
c17043
// 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...
c17044
// NewDefaultConfig create a default client config
c17045
// newInvalidEndpointError creates a new error
c17046
// NewAPIError creates a new APIError instance from the given response code and content.
c17047
// NewPodContainer creates an empty PodContainer
c17048
// SetName sets the name of a pod container
c17049
// SetCommand sets the shell command of a pod container
c17050
// CPUs sets the CPUs of a pod container
c17051
// Memory sets the memory of a pod container
c17052
// Storage sets the storage capacity of a pod container
c17053
// GPUs sets the GPU requirements of a pod container
c17054
// AddEndpoint appends an endpoint for a pod container
c17055
// SetImage sets the image of a pod container
c17056
// EmptyEnvs initialized env to empty
c17057
// AddEnv adds an environment variable for a pod container
c17058
// ExtendEnv extends the environment for a pod container
c17059
// AddSecret adds a secret to the environment for a pod container
c17060
// SetHealthCheck sets the health check of a pod container
c17061
// AddVolumeMount appends a volume mount to a pod container
c17062
// AddArtifact appends an artifact to a pod container
c17063
// AddLabel adds a label to a pod container
c17064
// SetLifecycle sets the lifecycle of a pod container
c17065
// 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...
c17066
//pushes Record into array
c17067
//peeks current state for filling object. Doesn't change position. Returns state, pos
c17068
//takes current state and increments reading position.
c17069
//checks if we need this state to be recorded
c17070
// stateTru is the state after reading `tru`.
c17071
// next cuts off and returns the next full JSON value // The next value is known to be an object or array or a literal
c17072
//wrappers scanner funcs
c17073
// Get the environment variable or return the default value if unset
c17074
// New creates a new ExpireCache.
c17075
// Retrieves a key's value from the cache
c17076
// Put the key, value and TTL in the cache
c17077
// Update the value in the cache without updating the TTL
c17078
// Get the value without updating the expiration
c17079
// 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
c17080
// Retrieve stats about the cache
c17081
// Returns the number of items in the cache.
c17082
// Run a new routine with an optional data value
c17083
// Wait for all the routines to complete and return any errors
c17084
// Return a random string made up of characters passed
c17085
// Return a random string of alpha characters
c17086
// Return a random string of alpha and numeric characters
c17087
// Given a list of strings, return one of the strings randomly
c17088
// 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.
c17089
// 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.
c17090
// AfterFunc see time.AfterFunc.
c17091
// Signs a given HTTP request with signature, nonce, and timestamp.
c17092
// Authenticates HTTP request to ensure it was sent by an authorized sender.
c17093
// 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.
c17094
// Parses a timestamp header and returns true if the timestamp is neither older than the TTL or is from the future.
c17095
// Returns Caller information on the first frame in the stack trace
c17096
// New returns a new Service. Config can not be nil.
c17097
// 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.
c17098
// 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.
c17099
// Seal takes plaintext and returns encrypted and authenticated ciphertext.