auth

package
v0.0.0-...-51ab043 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	AuthKey []byte
	// contains filtered or unexported fields
}

Auth struct

func NewAuthenticator

func NewAuthenticator(masterIP string, minionID string) (authentication *Auth)

NewAuthenticator object

func (*Auth) Authenticate

func (authentication *Auth) Authenticate()

Authenticate to master

func (*Auth) CBCDecrypt

func (authentication *Auth) CBCDecrypt(text []byte) (ciphertext []byte)

CBCDecrypt load

func (*Auth) CBCEncrypt

func (authentication *Auth) CBCEncrypt(text []byte) (ciphertext []byte)

CBCEncrypt load

func (*Auth) DecodeEvent

func (authentication *Auth) DecodeEvent(buffer []byte) (tag string, event map[string]interface{})

DecodeEvent data

func (*Auth) Reply

func (authentication *Auth) Reply(jid string, fun string, repl string)

Reply to master

Jump to

Keyboard shortcuts

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