access

package
v0.0.0-...-949c8fb Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EffectAllow = Effect("allow")
	EffectDeny  = Effect("deny")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Valid    bool
	Type     string
	Resource string
}

Action represents possible actions on resources

func NewResourceAction

func NewResourceAction(resource string, action string) Action

func (Action) MarshalJSON

func (n Action) MarshalJSON() ([]byte, error)

func (*Action) Scan

func (n *Action) Scan(value interface{}) error

Scan implements the Scanner interface.

func (Action) String

func (n Action) String() string

func (*Action) UnmarshalJSON

func (n *Action) UnmarshalJSON(b []byte) error

func (Action) Value

func (n Action) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Effect

type Effect string

Effect type for policy effects

Jump to

Keyboard shortcuts

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