groups

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT = "default"

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

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

func (Configuration) ActivateExplicitly

func (this Configuration) ActivateExplicitly(names ...string)

func (Configuration) Members

func (this Configuration) Members(names ...string) error

type Definition

type Definition interface {
	Members() utils.StringSet
	ActivateExplicitlyMembers() utils.StringSet
}

type Definitions

type Definitions interface {
	Get(name string) Definition
	Members(log logger.LogContext, elems []string) (utils.StringSet, error)
	AllGroups() Groups
	AllMembers() utils.StringSet
	AllNonExplicitMembers() utils.StringSet
}

type Groups

type Groups map[string]utils.StringSet

func (Groups) String

func (this Groups) String() string

type RegistrationInterface

type RegistrationInterface interface {
	RegisterGroup(name string) (*Configuration, error)
	MustRegisterGroup(name string) *Configuration
}

type Registrations

type Registrations map[string]Definition

type Registry

type Registry interface {
	RegistrationInterface
	GetDefinitions() Definitions
}

func NewRegistry

func NewRegistry(elementType string) Registry

Jump to

Keyboard shortcuts

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