Documentation ¶
Index ¶
- type Bot
- func (b *Bot) AuthPing(ctx context.Context) (*proto.PingResponse, error)
- func (b *Bot) AuthenticatedUserClientFromIdentity(ctx context.Context, id *identity.Identity) (auth.ClientI, error)
- func (b *Bot) Client() auth.ClientI
- func (b *Bot) Config() *config.BotConfig
- func (b *Bot) GetCertAuthorities(ctx context.Context, caType types.CertAuthType) ([]types.CertAuthority, error)
- func (b *Bot) ProxyPing(ctx context.Context) (*webclient.PingResponse, error)
- func (b *Bot) Run(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
func (*Bot) AuthenticatedUserClientFromIdentity ¶
func (b *Bot) AuthenticatedUserClientFromIdentity(ctx context.Context, id *identity.Identity) (auth.ClientI, error)
AuthenticatedUserClientFromIdentity creates a new auth client from the given identity. Note that depending on the connection address given, this may attempt to connect via the proxy and therefore requires both SSH and TLS credentials.
func (*Bot) GetCertAuthorities ¶
func (b *Bot) GetCertAuthorities(ctx context.Context, caType types.CertAuthType) ([]types.CertAuthority, error)
GetCertAuthorities returns the possibly cached CAs of the given type and requests them from the server if unavailable.
Click to show internal directories.
Click to hide internal directories.