settings

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Registry uses the strategy pattern as a registry
	Registry = map[string]RegisterFunc{}
)

Functions

This section is empty.

Types

type BundleManager

type BundleManager interface {
	ListBundles(bundleType proto.Bundle_Type) ([]*proto.Bundle, error)
	ReadBundle(bundleID string) (*proto.Bundle, error)
	WriteBundle(bundle *proto.Bundle) (*proto.Bundle, error)
	ReadSetting(settingID string) (*proto.Setting, error)
	AddSettingToBundle(bundleID string, setting *proto.Setting) (*proto.Setting, error)
	RemoveSettingFromBundle(bundleID, settingID string) error
}

BundleManager is a bundle service interface for abstraction of storage implementations

type Manager

Manager combines service interfaces for abstraction of storage implementations

type PermissionManager added in v0.3.0

type PermissionManager interface {
	ListPermissionsByResource(resource *proto.Resource, roleIDs []string) ([]*proto.Permission, error)
}

PermissionManager is a permissions service interface for abstraction of storage implementations

type RegisterFunc

type RegisterFunc func(*config.Config) Manager

RegisterFunc stores store constructors

type RoleAssignmentManager added in v0.2.0

type RoleAssignmentManager interface {
	ListRoleAssignments(accountUUID string) ([]*proto.UserRoleAssignment, error)
	WriteRoleAssignment(accountUUID, roleID string) (*proto.UserRoleAssignment, error)
	RemoveRoleAssignment(assignmentID string) error
}

RoleAssignmentManager is a role assignment service interface for abstraction of storage implementations

type ValueManager

type ValueManager interface {
	ListValues(bundleID, accountUUID string) ([]*proto.Value, error)
	ReadValue(valueID string) (*proto.Value, error)
	ReadValueByUniqueIdentifiers(accountUUID, settingID string) (*proto.Value, error)
	WriteValue(value *proto.Value) (*proto.Value, error)
}

ValueManager is a value service interface for abstraction of storage implementations

Jump to

Keyboard shortcuts

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