Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RedisConfigPortDefault default redis port RedisConfigPortDefault = "6379" // RedisConfigFileDefault default config file path RedisConfigFileDefault = "/redis-server/redis.conf" // RedisRenameCommandsDefaultPath default path to volume storing rename commands RedisRenameCommandsDefaultPath = "/etc/secret-volume" // RedisRenameCommandsDefaultFile default file name containing rename commands RedisRenameCommandsDefaultFile = "" //DefaultClusterNodeTimeout default cluster node timeout (ms) //The maximum amount of time a Redis Cluster node can be unavailable, without it being considered as failing DefaultClusterNodeTimeout = 2000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port string Host string ConfigFile string ClusterNodeTimeout int // contains filtered or unexported fields }
Config contains init-container settings
type InitContainer ¶
type InitContainer struct {
// contains filtered or unexported fields
}
InitContainer contains all InitContainer needed information
func NewInitContainer ¶
func NewInitContainer(cfg *Config) (*InitContainer, error)
NewInitContainer builds and returns new InitContainer instance
func (*InitContainer) Clear ¶
func (ic *InitContainer) Clear()
Clear used to clear all resources instanciated by the InitContainer
func (*InitContainer) Init ¶
func (ic *InitContainer) Init() error
Init used to initialized the IniContainer process
func (*InitContainer) Start ¶
func (ic *InitContainer) Start(stop <-chan struct{}) error
Start used to start the InitContainer process
Click to show internal directories.
Click to hide internal directories.