dryad

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Overview

Package dryad provides: * implementation of Dryad interface * utilities to manage Dryad and its users

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRusalka

func NewRusalka(stmConn stm.Interface, username string, groups []string) boruta.Dryad

NewRusalka returns Dryad interface to Rusalka.

Types

type Rusalka

type Rusalka struct {
	boruta.Dryad
	// contains filtered or unexported fields
}

Rusalka implements Dryad interface. It is intended to be used on NanoPi connected to MuxPi. It is not safe for concurrent use.

func (*Rusalka) Healthcheck

func (r *Rusalka) Healthcheck() (err error)

Healthcheck is part of implementation of Dryad interface.

func (*Rusalka) Prepare

func (r *Rusalka) Prepare(key *ssh.PublicKey) (err error)

Prepare is part of implementation of Dryad interface. Call to Prepare stops LED blinking.

func (*Rusalka) PutInMaintenance

func (r *Rusalka) PutInMaintenance(msg string) error

PutInMaintenance is part of implementation of Dryad interface. Connection to STM is being opened only for the maintenance actions. Otherwise it may make it unusable for other STM users. It is closed when blinkMaintenanceLED exits.

Directories

Path Synopsis
Package conf manages Dryad's configuration.
Package conf manages Dryad's configuration.

Jump to

Keyboard shortcuts

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