Documentation ¶
Index ¶
- Variables
- func BuildFishler(client *client.Client, ctx context.Context, forceBuild bool) error
- func ByteCountDecimal(b int64) string
- func CleanIfContainerExists(ctx context.Context, client *client.Client, containerID string) error
- func CreateRunWaitSSHContainer(createCfg *container.Config, hostCfg *container.HostConfig, ...) (exitCode int64, cleanup func(), err error)
- func GetContainerName(remoteIP string) string
- func GetDockerImage(client *client.Client, ctx context.Context) ([]types.ImageSummary, error)
- func GetFishlerPrivateKey() (string, error)
- func GetFishlerPrivateKeyPath() string
- func GetKeySigner() (gossh.Signer, error)
- func GetProfileBuffer(username string) ([]byte, error)
- func GetSessionFileName(basepath string, containerID string, sessionRemoteAddress net.Addr) string
- func GetSessionVolumnDirectory(basepath string, directory string, sessionRemoteAddress net.Addr) string
- func SetLogger(filepath string) *logrus.Logger
- type FormatterHook
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorContainerNameNotFound = errors.New("container name not found")
View Source
var Logger *logrus.Logger
Functions ¶
func BuildFishler ¶
func ByteCountDecimal ¶
func CleanIfContainerExists ¶
func CreateRunWaitSSHContainer ¶
func CreateRunWaitSSHContainer(createCfg *container.Config, hostCfg *container.HostConfig, networkCfg *network.NetworkingConfig, sess ssh.Session) (exitCode int64, cleanup func(), err error)
func GetContainerName ¶
func GetDockerImage ¶
func GetFishlerPrivateKey ¶
func GetFishlerPrivateKeyPath ¶
func GetFishlerPrivateKeyPath() string
func GetKeySigner ¶
func GetProfileBuffer ¶
func GetSessionFileName ¶
Types ¶
type FormatterHook ¶
FormatterHook is a hook that writes logs of specified LogLevels with a formatter to specified Writer
func (*FormatterHook) Fire ¶
func (hook *FormatterHook) Fire(entry *logrus.Entry) error
Fire will be called when some logging function is called with current hook It will format log entry and write it to appropriate writer
func (*FormatterHook) Levels ¶
func (hook *FormatterHook) Levels() []logrus.Level
Levels define on which log levels this hook would trigger
Click to show internal directories.
Click to hide internal directories.