policyclient

package
v0.3.0-alpha7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client Policy allows for eventually consistent way to distribute pkg/Policy struct throughout ScoreTrak instances. This is needed because certain API routes evaluate Policy on every call, and retrieving Policy from database is very expensive, hence having eventually consistent copy is much more efficient.

func NewPolicyClient

func NewPolicyClient(policy *policy.Policy, cnf queueing.MasterConfig, repo policyrepo.Repo, pubsub queue.MasterStreamPubSub) *Client

func (*Client) GetAllowChangingUsernamesAndPasswords

func (a *Client) GetAllowChangingUsernamesAndPasswords() bool

func (*Client) GetAllowRedTeamLaunchingServiceTestsManually

func (a *Client) GetAllowRedTeamLaunchingServiceTestsManually() bool

func (*Client) GetAllowUnauthenticatedUsers

func (a *Client) GetAllowUnauthenticatedUsers() bool

func (*Client) GetPolicy

func (a *Client) GetPolicy() *policy.Policy

func (*Client) GetShowAddresses

func (a *Client) GetShowAddresses() bool

func (*Client) GetShowPoints

func (a *Client) GetShowPoints() bool

func (*Client) Notify

func (a *Client) Notify()

func (*Client) PolicyClient

func (a *Client) PolicyClient()

func (*Client) Publish

func (a *Client) Publish()

func (*Client) RefreshLocalPolicy

func (a *Client) RefreshLocalPolicy()

func (*Client) Subscribe

func (a *Client) Subscribe() (uuid.UUID, <-chan struct{})

func (*Client) Unsubscribe

func (a *Client) Unsubscribe(uid uuid.UUID)

Jump to

Keyboard shortcuts

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