Documentation ¶
Index ¶
Constants ¶
View Source
const (
DateFormat = "Mon, 02 Jan 15:04"
)
Variables ¶
This section is empty.
Functions ¶
func FormatSizeInBytes ¶
func NewConnector ¶
func NewConnector() *connector
Types ¶
type CallbackWriter ¶
type CallbackWriter struct {
Callback func(bytesRead int64)
}
type Connector ¶
type Connector interface {
Connect(ctx context.Context, config ConnectorConfig) (connection.Connection, error)
}
type ConnectorConfig ¶
type ConnectorConfig struct { Address string User string Password string Verbose bool Timeout time.Duration TLSCertFilePath string TLSKeyFilePath string TLSInsecure bool }
func (*ConnectorConfig) ServerName ¶
func (c *ConnectorConfig) ServerName() string
type SizePostfix ¶
type SizePostfix string
const ( B SizePostfix = "B" KB SizePostfix = "KB" MB SizePostfix = "MB" GB SizePostfix = "GB" TB SizePostfix = "TB" )
Click to show internal directories.
Click to hide internal directories.