mqttclientauth

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Kind is the kind of MQTTClientAuth
	Kind = "MQTTClientAuth"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Username         string `yaml:"username" jsonschema:"required"`
	SaltedSha256Pass string `yaml:"saltedSha256Pass" jsonschema:"required"`
}

Auth describes username and password for MQTTProxy

type MQTTClientAuth

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

MQTTClientAuth is used to check authentication for MQTT client

func (*MQTTClientAuth) Close

func (a *MQTTClientAuth) Close()

Close close MQTTClientAuth

func (*MQTTClientAuth) DefaultSpec

func (a *MQTTClientAuth) DefaultSpec() interface{}

DefaultSpec return default spec of MQTTClientAuth

func (*MQTTClientAuth) Description

func (a *MQTTClientAuth) Description() string

Description return description of MQTTClientAuth

func (*MQTTClientAuth) HandleMQTT

func (a *MQTTClientAuth) HandleMQTT(ctx context.MQTTContext) *context.MQTTResult

HandleMQTT handle MQTT context

func (*MQTTClientAuth) Inherit

func (a *MQTTClientAuth) Inherit(filterSpec *pipeline.FilterSpec, previousGeneration pipeline.Filter)

Inherit init MQTTClientAuth based on previous generation

func (*MQTTClientAuth) Init

func (a *MQTTClientAuth) Init(filterSpec *pipeline.FilterSpec)

Init init MQTTClientAuth

func (*MQTTClientAuth) Kind

func (a *MQTTClientAuth) Kind() string

Kind return kind of MQTTClientAuth

func (*MQTTClientAuth) Results

func (a *MQTTClientAuth) Results() []string

Results return possible results of MQTTClientAuth

func (*MQTTClientAuth) Status

func (a *MQTTClientAuth) Status() interface{}

Status return status of MQTTClientAuth

type Spec

type Spec struct {
	Salt string  `yaml:"salt" jsonschema:"omitempty"`
	Auth []*Auth `yaml:"auth" jsonschema:"required"`
}

Spec is spec for MQTTClientAuth. For security of password, passwords in yaml file should be salted SHA256 checksum. password = sha256sum(connect.password + salt)

Jump to

Keyboard shortcuts

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