policy

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hosts

type Hosts map[string]Services

func NewHosts

func NewHosts() Hosts

func (Hosts) HasWc

func (h Hosts) HasWc() (ok bool)

type Policy

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

func New

func New(ph *scramble.Hasher, wc string) *Policy

func (*Policy) Check

func (p *Policy) Check(name, service, call string) bool

func (*Policy) Entry

func (p *Policy) Entry(name string, service string, call string)

func (*Policy) HasWc

func (p *Policy) HasWc() (ok bool)

func (*Policy) Hosts

func (p *Policy) Hosts() Hosts

type RPCs

type RPCs map[string]bool

func NewRPCs

func NewRPCs() RPCs

func (RPCs) RmV

func (r RPCs) RmV(rpc RPCs)

func (RPCs) Union

func (r RPCs) Union(wc string, o RPCs) (torm RPCs)

func (r RPCs) Union(o RPCs) (torm []string) {

type Services

type Services map[string]RPCs

func NewServices

func NewServices() Services

func (Services) RmV

func (s Services) RmV(svcs Services)

func (Services) Union

func (s Services) Union(wc string, os Services) (out Services)

Jump to

Keyboard shortcuts

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