Documentation
¶
Index ¶
- func GetCredentials(c *cli.Context) (string, string)
- type ClientConnection
- func (cc *ClientConnection) Authenticate(ctx context.Context, user string, pass string) error
- func (cc *ClientConnection) Close()
- func (cc *ClientConnection) GetCurrentCert(ctx context.Context) (string, int64, error)
- func (cc *ClientConnection) GetToken() string
- func (cc *ClientConnection) RequestHostCert(ctx context.Context, publicKey []byte, hostnames []string) ([]byte, error)
- func (cc *ClientConnection) RequestUserCert(ctx context.Context, publicKey []byte) ([]byte, error)
- func (cc *ClientConnection) TryConnect(addr string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCredentials ¶
Types ¶
type ClientConnection ¶
type ClientConnection struct {
// contains filtered or unexported fields
}
func NewClientConnection ¶
func NewClientConnection() *ClientConnection
func (*ClientConnection) Authenticate ¶
func (*ClientConnection) Close ¶
func (cc *ClientConnection) Close()
func (*ClientConnection) GetCurrentCert ¶
func (*ClientConnection) GetToken ¶
func (cc *ClientConnection) GetToken() string
func (*ClientConnection) RequestHostCert ¶
func (*ClientConnection) RequestUserCert ¶
func (*ClientConnection) TryConnect ¶
func (cc *ClientConnection) TryConnect(addr string) error
Click to show internal directories.
Click to hide internal directories.