driver

package
v0.0.0-...-38655de Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: GPL-3.0 Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storager

type Storager interface {
	SetConfig(name string, value bool)
	ListConfigs(filter map[string]string) []types.Config
	GetConfig(name string) bool

	AddUser(name string)
	RemoveUser(name string) error
	ListUsers(filter map[string]string) map[string][]string
	FindUser(name string) bool
	CountUser() int
	AddUserToGroup(group, user string)
	RemoveUserFromGroup(group, user string)

	AddGroup(name string)
	RemoveGroup(name string) error
	ListGroups(filter map[string]string) map[string][]string
	FindGroup(name string) bool
	CountGroup() int

	AddResource(name, rtype, value, options string)
	RemoveResource(name string) error
	ListResources(filter map[string]string) map[types.Resource][]string
	FindResource(name string) bool
	CountResource(rtype string) int
	AddResourceToCollection(col, res string)
	RemoveResourceFromCollection(col, res string)

	AddCollection(name string)
	RemoveCollection(name string) error
	ListCollections(filter map[string]string) map[string][]string
	FindCollection(name string) bool
	CountCollection() int

	AddPolicy(name, group, collection string)
	RemovePolicy(name string)
	ListPolicies(filter map[string]string) []types.Policy
	GetResourceValues(username, rType string) []types.Resource
	FindPolicy(name string) bool
	CountPolicy() int

	End()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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