_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c178600
// Init sets the Path and Interval options
c178601
// Fetch file from the specified Path
c178602
// Fetch the binary from the provided URL
c178603
// Validate checks a Config instance. It will return a // sarama.ConfigurationError if the specified values don't make sense.
c178604
// NewClient creates a new client instance
c178605
// AsyncClose implements PartitionConsumer
c178606
// Close implements PartitionConsumer
c178607
// MarkOffset implements PartitionConsumer
c178608
// NewConsumer initializes a new consumer
c178609
// MarkOffsets marks stashed offsets as processed. // See MarkOffset for additional explanation.
c178610
// ResetOffset marks the provided message as processed, alongside a metadata string // that represents the state of the partition consumer at that point in time. The // metadata string can be used by another consumer to restore that state, so it // can resume consumption. // // Difference between ResetOffset and MarkOf...
c178611
// Close safely closes the consumer and releases all resources
c178612
// heartbeat loop, triggered by the mainLoop
c178613
// topic watcher loop, triggered by the mainLoop
c178614
// commit loop, triggered by the mainLoop
c178615
// Fetches latest committed offsets for all subscriptions
c178616
// MarkOffset stashes the provided message offset
c178617
// ResetOffset stashes the provided message offset // See ResetPartitionOffset for explanation
c178618
// Offsets returns the latest stashed offsets by topic-partition
c178619
// Actual is used to build a cluster based on instances on the cloud provider.
c178620
// Expected is used to build a cluster expected to be on the cloud provider.
c178621
// Delete is used to delete the instances on the cloud provider
c178622
// GetReconciler gets the correct Reconciler for the cloud provider currenty used.
c178623
// GetVersion returns Kubicorn version.
c178624
// GetVersionJSON returns Kubicorn version in JSON format.
c178625
// Actual returns the actual resource group in Azure if it exists.
c178626
// Expected will return the expected resource group as it would be defined in Azure
c178627
// CreateCmd represents create command
c178628
// NewUbuntuCluster creates a basic Azure cluster profile, to bootstrap Kubernetes.
c178629
// ProviderConfig is a convenience method that will attempt // to return a ControlPlaneProviderConfig for a cluster. // This is useful for managing the legacy API in a clean way. // This will ignore errors from json.Unmarshal and will simply // return an empty config.
c178630
// SetProviderConfig is a convenience method that will attempt // to set a provider config on a particular cluster. Just like // it's counterpart ProviderConfig this makes working with the legacy API much easier.
c178631
// MachineProviderConfigs will return all MachineProviderConfigs for a cluster
c178632
// SetMachineProviderConfig will attempt to match a provider config to a machine set // on the "Name" field. If a match cannot be made we warn and move on.
c178633
// NewCluster will initialize a new Cluster
c178634
// DeployControllerCmd represents the apply command
c178635
// NewRetrier creates a new Retrier using given properties.
c178636
// RunRetry runs a retryable function.
c178637
// MustGenerateRandomBytes generates random bytes or panics if it can't
c178638
// ExplainCmd represents the explain command
c178639
// TimeOrderedUUID generates a time ordered UUID. Top 32b are timestamp bottom 96b are random.
c178640
// GetConfigCmd represents the apply command
c178641
// RunAnnotated annotates a task with a description and a sequence of symbols indicating task activity until it terminates
c178642
// ListCmd represents the list command
c178643
// NewUbuntuCluster creates a simple Ubuntu Amazon cluster
c178644
// EditCmd represents edit command
c178645
// RemoveKey removes an existing key from keyring
c178646
// RemoveKeyUsingFile removes an existing key from keyring given a file
c178647
// Actual calls DO firewall Api and returns the actual state of firewall in the cloud.
c178648
// Expected returns the Firewall structure of what is Expected.
c178649
// Apply will compare the actual and expected firewall config, if needed it will create the firewall.
c178650
// Delete removes the firewall
c178651
// DeleteCmd represents the delete command
c178652
// NewStateStore returns clusterStorer object based on type.
c178653
//Performs a git 'commit' and 'push' of the current cluster changes.
c178654
// ApplyCmd represents the apply command
c178655
// ExpandPath returns working directory path
c178656
// CompletionCmd represents the completion command
c178657
// AdoptCmd represents the adopt command
c178658
// StrEnvDef get environment variable, or some default def
c178659
// IntEnvDef get environment variable, or some default def
c178660
// BoolEnvDef get environemnt variable and return bool.
c178661
// readFromFS reads file from a local path and returns as string
c178662
// VersionCmd represents the version command
c178663
// NewSignalHandler creates a new Handler using given properties.
c178664
// Register starts handling signals.
c178665
// NewUbuntuCluster creates a simple Ubuntu Openstack cluster.
c178666
// BeginningOfHour beginning of hour
c178667
// BeginningOfDay beginning of day
c178668
// BeginningOfWeek beginning of week
c178669
// BeginningOfMonth beginning of month
c178670
// BeginningOfQuarter beginning of quarter
c178671
// BeginningOfYear BeginningOfYear beginning of year
c178672
// EndOfMinute end of minute
c178673
// EndOfHour end of hour
c178674
// EndOfDay end of day
c178675
// EndOfWeek end of week
c178676
// EndOfMonth end of month
c178677
// EndOfQuarter end of quarter
c178678
// EndOfYear end of year
c178679
// MustParse must parse string to time or it will panic
c178680
// Between check time between the begin, end time or not
c178681
// ParseInLocation parse string to time in location
c178682
// MustParse must parse string to time or will panic
c178683
// MustParseInLocation must parse string to time in location or will panic
c178684
// Between check now between the begin, end time or not
c178685
// NewChannelMemoryBackend creates a simple in-memory logging backend which // utilizes a go channel for communication. // // Start will automatically be called by this function.
c178686
// Start launches the internal goroutine which starts processing data from the // input channel.
c178687
// Flush waits until all records in the buffered channel have been processed.
c178688
// Stop signals the internal goroutine to exit and waits until it have.
c178689
// Formatted returns the formatted log record string.
c178690
// Message returns the log record message.
c178691
// SetBackend overrides any previously defined backend for this logger.
c178692
// MustGetLogger is like GetLogger but panics if the logger can't be created. // It simplifies safe initialization of a global logger for eg. a package.
c178693
// Reset restores the internal state of the logging library.
c178694
// IsEnabledFor returns true if the logger is enabled for the given level.
c178695
// Criticalf logs a message using CRITICAL as log level.
c178696
// Warningf logs a message using WARNING as log level.
c178697
// Noticef logs a message using NOTICE as log level.
c178698
// Infof logs a message using INFO as log level.
c178699
// SetFormatter sets the default formatter for all new backends. A backend will // fetch this value once it is needed to format a record. Note that backends // will cache the formatter after the first point. For now, make sure to set // the formatter before logging.