initcontainer

package
v0.0.0-...-f651441 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2019 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func NewConfig

func NewConfig() *Config

NewConfig builds and returns new Config instance

func (*Config) Init

func (c *Config) Init()

Init used to initialize the Config

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL