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: 0

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