Documentation
¶
Index ¶
- Variables
- func BuildFishler(client *client.Client, ctx context.Context, forceBuild bool) error
- func ByteCountDecimal(b int64) string
- func CreateRunWaitSSHContainer(hostVolumnWorkingDir string, createCfg *container.Config, ...) (exitCode int64, err error)
- func GetDockerImage(client *client.Client, ctx context.Context) ([]image.Summary, error)
- func GetFishlerPrivateKey() (string, error)
- func GetFishlerPrivateKeyPath() string
- func GetKeySigner() (gossh.Signer, error)
- func GetProfileBuffer(username string) ([]byte, error)
- func GetSessionVolumnDirectory(basepath string, directory string, sessionID string) string
- func ParseNetAddr(addr net.Addr, event *eventssh.SSHConnectionEvent) error
- 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 GetDockerImage ¶
func GetFishlerPrivateKey ¶
func GetFishlerPrivateKeyPath ¶
func GetFishlerPrivateKeyPath() string
func GetKeySigner ¶
func GetProfileBuffer ¶
func ParseNetAddr ¶
func ParseNetAddr(addr net.Addr, event *eventssh.SSHConnectionEvent) error
ParseNetAddr parses a net.Addr and populates the SSHConnectionEvent with the appropriate source IP and port fields
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.