store

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package store houses implementation of the various device role configurations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleStore

type RoleStore struct {
	Dir string
}

RoleStore provides services to persist and retrieve role configuration records

func (*RoleStore) DeleteRole

func (s *RoleStore) DeleteRole(roleName string) (*admin.DeviceRoleConfig, error)

DeleteRole removes the named role configuration

func (*RoleStore) ListRoles

func (s *RoleStore) ListRoles() ([]string, error)

ListRoles returns an array of existing role name

func (*RoleStore) ReadRole

func (s *RoleStore) ReadRole(roleName string) (*admin.DeviceRoleConfig, error)

ReadRole reads the named role configuration

func (*RoleStore) WriteRole

func (s *RoleStore) WriteRole(roleConfig *admin.DeviceRoleConfig, overwrite bool) error

WriteRole stores the specified role configuration

Jump to

Keyboard shortcuts

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