models

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessProviderActionStrings

func AccessProviderActionStrings() []string

AccessProviderActionStrings returns a slice of all String values of the enum

func AccessProviderStateStrings

func AccessProviderStateStrings() []string

AccessProviderStateStrings returns a slice of all String values of the enum

Types

type AccessProviderAction

type AccessProviderAction int
const (
	AccessProviderActionPromise AccessProviderAction = iota //Deprecated promises are set on who item
	AccessProviderActionGrant
	AccessProviderActionDeny
	AccessProviderActionMask
	AccessProviderActionFiltered
	AccessProviderActionPurpose
)

func AccessProviderActionString

func AccessProviderActionString(s string) (AccessProviderAction, error)

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

func AccessProviderActionValues

func AccessProviderActionValues() []AccessProviderAction

AccessProviderActionValues returns all values of the enum

func (AccessProviderAction) IsAAccessProviderAction

func (i AccessProviderAction) IsAAccessProviderAction() bool

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

func (AccessProviderAction) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for AccessProviderAction

func (AccessProviderAction) String

func (i AccessProviderAction) String() string

func (*AccessProviderAction) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for AccessProviderAction

type AccessProviderState

type AccessProviderState int
const (
	AccessProviderStateActive AccessProviderState = iota
	AccessProviderStateInactive
	AccessProviderStateDeleted
)

func AccessProviderStateString

func AccessProviderStateString(s string) (AccessProviderState, error)

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

func AccessProviderStateValues

func AccessProviderStateValues() []AccessProviderState

AccessProviderStateValues returns all values of the enum

func (AccessProviderState) IsAAccessProviderState

func (i AccessProviderState) IsAAccessProviderState() bool

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

func (AccessProviderState) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for AccessProviderState

func (AccessProviderState) String

func (i AccessProviderState) String() string

func (*AccessProviderState) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for AccessProviderState

Jump to

Keyboard shortcuts

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