security

package
v0.0.0-...-ae24322 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 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