policy

package
v0.0.0-...-84fc3e2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPolicy

func AddPolicy(email string, principal string)

func RemovePolicy

func RemovePolicy(email string, principal string)

Types

type Policy

type Policy struct {
	User []UsersDetails `yaml:"user"`
}

func (*Policy) Unmarshal

func (p *Policy) Unmarshal(filename string) error

type UsersDetails

type UsersDetails struct {
	Email      string   `yaml:"email"`
	Principals []string `yaml:"principals"`
}

Jump to

Keyboard shortcuts

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