Versions in this module Expand all Collapse all v0 v0.1.2 Dec 20, 2023 v0.1.1 Aug 18, 2023 v0.1.0 Aug 17, 2023 Changes in this version + var ErrClient = errors.New("teamclient dialer") + var ErrConfig = errors.New("client config error") + var ErrConfigNoUser = errors.New("client config with empty user") + var ErrNoConfig = errors.New("no client configuration was selected or parsed") + var ErrNoTeamclient = errors.New("this teamclient has no client implementation") + type Client struct + func New(app string, client team.Client, options ...Options) (*Client, error) + func (tc *Client) Config() *Config + func (tc *Client) ConfigsDir() string + func (tc *Client) Connect(options ...Options) (err error) + func (tc *Client) Disconnect() error + func (tc *Client) Filesystem() *assets.FS + func (tc *Client) GetConfigs() map[string]*Config + func (tc *Client) HomeDir() string + func (tc *Client) LogsDir() string + func (tc *Client) Name() string + func (tc *Client) NamedLogger(pkg, stream string) *logrus.Entry + func (tc *Client) NewTLSConfigFrom(caCert string, cert string, key string) (*tls.Config, error) + func (tc *Client) ReadConfig(confFilePath string) (*Config, error) + func (tc *Client) SaveConfig(config *Config) error + func (tc *Client) SelectConfig() *Config + func (tc *Client) SetLogLevel(level int) + func (tc *Client) SetLogWriter(stdout, stderr io.Writer) + func (tc *Client) TeamDir() string + func (tc *Client) Users() (users []team.User, err error) + func (tc *Client) VersionClient() (ver team.Version, err error) + func (tc *Client) VersionServer() (ver team.Version, err error) + type Config struct + CACertificate string + Certificate string + Host string + Port int + PrivateKey string + Token string + User string + type Dialer interface + Close func() error + Dial func() error + Init func(c *Client) error + type Options func(opts *opts) + func WithConfig(config *Config) Options + func WithDialer(dialer Dialer) Options + func WithHomeDirectory(path string) Options + func WithInMemory() Options + func WithLogFile(filePath string) Options + func WithLogger(logger *logrus.Logger) Options + func WithNoDisconnect() Options + func WithNoLogs(noLogs bool) Options + func WithTeamDirectory(name string) Options v0.0.1 Jul 3, 2023