clientutils

package
v0.0.0-...-f1af43c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCredentials

func GetCredentials(c *cli.Context) (string, string)

Types

type ClientConnection

type ClientConnection struct {
	// contains filtered or unexported fields
}

func NewClientConnection

func NewClientConnection() *ClientConnection

func (*ClientConnection) Authenticate

func (cc *ClientConnection) Authenticate(ctx context.Context, user string, pass string) error

func (*ClientConnection) Close

func (cc *ClientConnection) Close()

func (*ClientConnection) GetCurrentCert

func (cc *ClientConnection) GetCurrentCert(ctx context.Context) (string, int64, error)

func (*ClientConnection) GetToken

func (cc *ClientConnection) GetToken() string

func (*ClientConnection) RequestHostCert

func (cc *ClientConnection) RequestHostCert(ctx context.Context, publicKey []byte, hostnames []string) ([]byte, error)

func (*ClientConnection) RequestUserCert

func (cc *ClientConnection) RequestUserCert(ctx context.Context, publicKey []byte) ([]byte, error)

func (*ClientConnection) TryConnect

func (cc *ClientConnection) TryConnect(addr string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL