Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminClient ¶
Admin represents an admin api client instance
func NewAdminClient ¶
func NewAdminClient(c *Config) (*AdminClient, error)
NewAdminClient creates a new admin client instance
func (*AdminClient) AddUser ¶
func (c *AdminClient) AddUser(args []string)
func (*AdminClient) DelUser ¶
func (c *AdminClient) DelUser(args []string)
func (*AdminClient) GerUser ¶
func (c *AdminClient) GerUser(args []string)
func (*AdminClient) ListUsers ¶
func (c *AdminClient) ListUsers(args []string)
type Config ¶
type Config struct { //ProfilePath string Fingerprint string `yaml:"fingerprint,omitempty"` Auth string `yaml:"auth,omitempty"` Username string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` MaxRetryCount int `yaml:"max-retry-count,omitempty"` MaxRetryInterval time.Duration `yaml:"max-retry-interval,omitempty"` Server string `yaml:"server,omitempty"` Proxy string `yaml:"proxy,omitempty"` Headers http.Header `yaml:"headers,omitempty"` TLS TLSConfig `yaml:"tls,omitempty"` Verbose bool `yaml:"verbose,omitempty"` }
Config represents a client configuration
Click to show internal directories.
Click to hide internal directories.