security

package
v0.0.0-...-f3812fb Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package security defining some security related tools

Package security defining some security related tools

Index

Constants

This section is empty.

Variables

Functions

func NewTLSConfig

func NewTLSConfig(canaryConfig *config.CanaryConfig) (*tls.Config, error)

func SetAuthConfig

func SetAuthConfig(canaryConfig *config.CanaryConfig, saramaConfig *sarama.Config) error

Types

type CanarySCRAM

type CanarySCRAM struct {
	*scram.Client
	*scram.ClientConversation
	scram.HashGeneratorFcn
}

func (*CanarySCRAM) Begin

func (canarySCRAM *CanarySCRAM) Begin(username, password, authzID string) (err error)

func (*CanarySCRAM) Step

func (canarySCRAM *CanarySCRAM) Step(challenge string) (response string, err error)

Jump to

Keyboard shortcuts

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