access

package
v0.0.0-...-30deb2f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
	Access string
	Name   string
	TTY    string
}

Object struct representing a access config line

func (*Object) ADD

func (a *Object) ADD() bool

ADD func return if accessObject is type add

func (*Object) DEL

func (a *Object) DEL() bool

DEL func return if accessObject is type deny

type Parser

type Parser struct {
	zerolog.Logger
	FileName string
	Accesses []Object
}

Parser struct to handle parsing access.conf

func (*Parser) Parse

func (p *Parser) Parse() error

Parse func that parses a access file to collect accessObjects

Jump to

Keyboard shortcuts

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