types

package
v0.6.28 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RoleIDAdministrators RoleIDType = 1
	RoleIDUsers          RoleIDType = 2
	RoleIDEngineers      RoleIDType = 5
	RoleIDAPIWeb         RoleIDType = 3009
	RoleIDAPI            RoleIDType = 3022

	RoleNameUsers          RoleNameType = "Users"
	RoleNameAdministrators RoleNameType = "Administrators"
	RoleNameEngineers      RoleNameType = "Engineers"
	RoleNameAPI            RoleNameType = "Purge and Prefetch only (API)"
	RoleNameAPIWeb         RoleNameType = "Purge and Prefetch only (API+Web)"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleIDType

type RoleIDType int

func (RoleIDType) IsValid

func (r RoleIDType) IsValid() error

func (RoleIDType) List

func (r RoleIDType) List() []RoleIDType

func (*RoleIDType) MarshalJSON

func (r *RoleIDType) MarshalJSON() ([]byte, error)

MarshalJSON - implements Marshaler interface for RoleIDType

func (RoleIDType) String

func (r RoleIDType) String() string

func (RoleIDType) StringList

func (r RoleIDType) StringList() []string

func (*RoleIDType) UnmarshalJSON

func (r *RoleIDType) UnmarshalJSON(data []byte) error

UnmarshalJSON - implements Unmarshaler interface for RoleIDType

func (RoleIDType) ValidOrNil

func (r RoleIDType) ValidOrNil() (*RoleIDType, error)

type RoleNameType

type RoleNameType string

func (RoleNameType) IsValid

func (rs RoleNameType) IsValid() error

func (RoleNameType) List

func (rs RoleNameType) List() []RoleNameType

func (*RoleNameType) MarshalJSON

func (rs *RoleNameType) MarshalJSON() ([]byte, error)

MarshalJSON - implements Marshaler interface for RoleNameType

func (RoleNameType) String

func (rs RoleNameType) String() string

func (RoleNameType) StringList

func (rs RoleNameType) StringList() []string

func (*RoleNameType) UnmarshalJSON

func (rs *RoleNameType) UnmarshalJSON(data []byte) error

UnmarshalJSON - implements Unmarshaler interface for RoleNameType

func (RoleNameType) ValidOrNil

func (rs RoleNameType) ValidOrNil() (*RoleNameType, error)

Jump to

Keyboard shortcuts

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