metathings_policyd_service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type MetathingsPolicydService

type MetathingsPolicydService struct {
	*server.Server
	// contains filtered or unexported fields
}

func (*MetathingsPolicydService) AddPresetPolicy

func (self *MetathingsPolicydService) AddPresetPolicy(ctx context.Context, in *pb.PolicyRequest) (*pb.BoolReply, error)

func (*MetathingsPolicydService) Initialize

func (self *MetathingsPolicydService) Initialize(ctx context.Context, in *pb.EmptyRequest) (*pb.EmptyReply, error)

func (*MetathingsPolicydService) RemovePresetPolicy

func (self *MetathingsPolicydService) RemovePresetPolicy(ctx context.Context, in *pb.PolicyRequest) (*pb.BoolReply, error)

type MetathingsPolicydServiceOption

type MetathingsPolicydServiceOption struct {
	AdapterDriver string
	AdapterUri    string
	ModelText     string
	Policies      []Policy
}

type Policy

type Policy struct {
	Role   string
	Kind   string
	Action string
}

Jump to

Keyboard shortcuts

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