Documentation ¶
Index ¶
- Constants
- type RoleIDType
- func (r RoleIDType) IsValid() error
- func (r RoleIDType) List() []RoleIDType
- func (r *RoleIDType) MarshalJSON() ([]byte, error)
- func (r RoleIDType) String() string
- func (r RoleIDType) StringList() []string
- func (r *RoleIDType) UnmarshalJSON(data []byte) error
- func (r RoleIDType) ValidOrNil() (*RoleIDType, error)
- type RoleNameType
- func (rs RoleNameType) IsValid() error
- func (rs RoleNameType) List() []RoleNameType
- func (rs *RoleNameType) MarshalJSON() ([]byte, error)
- func (rs RoleNameType) String() string
- func (rs RoleNameType) StringList() []string
- func (rs *RoleNameType) UnmarshalJSON(data []byte) error
- func (rs RoleNameType) ValidOrNil() (*RoleNameType, error)
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)
Click to show internal directories.
Click to hide internal directories.