types

package
v0.72.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionStrings

func ActionStrings() []string

ActionStrings returns a slice of all String values of the enum

Types

type Action

type Action int
const (
	Promise Action = iota // Deprecated promises are set on who item
	Grant
	Deny
	Mask
	Filtered
	Purpose // Deprecated purposes are now moved to be a grant category
	Share
)

func ActionString

func ActionString(s string) (Action, error)

ActionString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ActionValues

func ActionValues() []Action

ActionValues returns all values of the enum

func (Action) IsAAction

func (i Action) IsAAction() bool

IsAAction returns "true" if the value is listed in the enum definition. "false" otherwise

func (Action) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for Action

func (Action) MarshalYAML

func (i Action) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for Action

func (Action) String

func (i Action) String() string

func (*Action) UnmarshalJSON

func (i *Action) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for Action

func (*Action) UnmarshalYAML

func (i *Action) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for Action

Jump to

Keyboard shortcuts

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