scope

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Scopes = make(map[Type]Producer)

Scopes holds all implementations of scope type.

Functions

This section is empty.

Types

type Producer

type Producer interface {
	// Produce a scope for given params
	Produce(params string) Scope
}

Producer creates a scope for given params.

type Scope

type Scope interface {
	// Provide a rune by number given
	Provide(number int) rune
}

Scope is used to generate secret values.

type Type

type Type string

Type is scope of passless secret, it's type.

const (
	// Numeric type contains only numbers.
	Numeric Type = "num"

	// Alphabet type contains lower and upper chars from US ascii table.
	Alphabet Type = "alpha"

	// AlphaNumeric contains lower and upper chars from US ascii table and numbers.
	AlphaNumeric Type = "alnum"

	// EasyForHuman contains only a subset of chars and numbers that are easy to distinguish.
	EasyForHuman Type = "human"

	// KeyboardSigns contains all sings from regular US keyboard: chars, numbers, and special signs.
	KeyboardSigns Type = "keys"

	// Utf8 contains almost all printable UTF-8 characters.
	Utf8 Type = "utf8"

	// Listing will create secrets from user provided symbols.
	Listing Type = "list"
)

Jump to

Keyboard shortcuts

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