policy

package
v0.3.7-alpha6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	ID                                        uint  `json:"-" gorm:"primary_key;"`
	AllowUnauthenticatedUsers                 *bool `json:"allow_unauthenticated_users" gorm:"not null;default:true"`
	AllowChangingUsernamesAndPasswords        *bool `json:"allow_changing_usernames_and_passwords" gorm:"not null;default:false"`
	AllowRedTeamLaunchingServiceTestsManually *bool `json:"allow_red_team_launching_service_tests_manually" gorm:"not null;default:false"`
	ShowPoints                                *bool `json:"allow_to_see_points" gorm:"not null;default:true"`
	ShowAddresses                             *bool `json:"show_addresses" gorm:"not null;default:true"`
}

Policy is a set of dynamic values that could be edited in runtime. Policy is typically propagated between scoretrak instances via pkg/policy/policyclient

func NewPolicy added in v0.3.8

func NewPolicy() *Policy

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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