handlers

package
v0.0.0-...-89602ce Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Overview

Package handlers implements individual accessc commands as well as common across multiple commands functionality

Package handlers implements individual accessc commands as well as common across multiple commands functionality

Package handlers implements individual accessc commands as well as common across multiple commands functionality

Package handlers implements individual accessc commands as well as common across multiple commands functionality

Package handlers implements individual accessc commands as well as common across multiple commands functionality

Package handlers implements individual accessc commands as well as common across multiple commands functionality

Package handlers implements individual accessc commands as well as common across multiple commands functionality

Package handlers implements individual accessc commands as well as common across multiple commands functionality

Package handlers implements individual accessc commands as well as common across multiple commands functionality

Package handlers implements individual accessc commands as well as common across multiple commands functionality

Index

Constants

This section is empty.

Variables

View Source
var (
	CommandRegistry = new(commands.Map)
)

Functions

func BuildACLForEntities

func BuildACLForEntities(
	networks,
	operators,
	gateways Entities) []*accessprotos.AccessControl_Entity

BuildACLForEntities builds ACL from networks, operators & gateways command line flags

func CreateAdminACL

func CreateAdminACL() []*accessprotos.AccessControl_Entity

CreateAdminACL Constructs "can do everything" ACL for administrators

func PrintACL

func PrintACL(acl *accessprotos.AccessControl_List, certSNs []string)

PrintACL - prints operator ID, its certificate SNs & ACL

Types

type Entities

type Entities []Entity

Entities - list of entities compiled from command line flags

func (*Entities) Set

func (ents *Entities) Set(value string) error

Set adds a new Entity into Entities Map from provided flag value string

func (*Entities) String

func (ents *Entities) String() string

String - stringer for entities

type Entity

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

Entity is a CLI tool representation of ACLed entity (network, operator, etc.)

Jump to

Keyboard shortcuts

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