Documentation ¶
Index ¶
- func Bool(b bool) *bool
- func Byte(b byte) *byte
- func Complex128(c complex128) *complex128
- func Complex64(c complex64) *complex64
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int16(i int16) *int16
- func Int32(i int32) *int32
- func Int64(i int64) *int64
- func Int8(i int8) *int8
- func MustParseDate(date string) time.Time
- func MustParseDateTime(datetime string) time.Time
- func Rune(r rune) *rune
- func String(s string) *string
- func Time(t time.Time) *time.Time
- func UUID(u uuid.UUID) *uuid.UUID
- func Uint(u uint) *uint
- func Uint16(u uint16) *uint16
- func Uint32(u uint32) *uint32
- func Uint64(u uint64) *uint64
- func Uint8(u uint8) *uint8
- func Uintptr(u uintptr) *uintptr
- type Application
- type ApplicationInfo
- type ApplicationReport
- type AuthType
- type Device
- type DeviceReport
- type Group
- type GroupInfo
- type GroupReport
- type GroupType
- type Login
- type LoginReport
- type OrgInfo
- type OrgReport
- type RoleInfo
- type RoleType
- type StatusType
- type User
- type UserInfo
- type UserReport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Complex128 ¶
func Complex128(c complex128) *complex128
Complex128 returns a pointer to the given complex128 value.
func MustParseDate ¶
MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.
func MustParseDateTime ¶
MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.
Types ¶
type Application ¶
type Application struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` Label string `json:"label" url:"label"` Url *string `json:"url,omitempty" url:"url,omitempty"` Status StatusType `json:"status" url:"status"` Created time.Time `json:"created" url:"created"` AuthMethod AuthType `json:"authMethod" url:"authMethod"` Groups []*GroupInfo `json:"groups,omitempty" url:"groups,omitempty"` Users []*UserInfo `json:"users,omitempty" url:"users,omitempty"` // contains filtered or unexported fields }
func (*Application) GetExtraProperties ¶
func (a *Application) GetExtraProperties() map[string]interface{}
func (*Application) MarshalJSON ¶
func (a *Application) MarshalJSON() ([]byte, error)
func (*Application) String ¶
func (a *Application) String() string
func (*Application) UnmarshalJSON ¶
func (a *Application) UnmarshalJSON(data []byte) error
type ApplicationInfo ¶
type ApplicationInfo struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` // contains filtered or unexported fields }
func (*ApplicationInfo) GetExtraProperties ¶
func (a *ApplicationInfo) GetExtraProperties() map[string]interface{}
func (*ApplicationInfo) String ¶
func (a *ApplicationInfo) String() string
func (*ApplicationInfo) UnmarshalJSON ¶
func (a *ApplicationInfo) UnmarshalJSON(data []byte) error
type ApplicationReport ¶
type ApplicationReport struct { Org string `json:"org" url:"org"` Applications []*Application `json:"applications,omitempty" url:"applications,omitempty"` Errors []string `json:"errors,omitempty" url:"errors,omitempty"` // contains filtered or unexported fields }
func (*ApplicationReport) GetExtraProperties ¶
func (a *ApplicationReport) GetExtraProperties() map[string]interface{}
func (*ApplicationReport) String ¶
func (a *ApplicationReport) String() string
func (*ApplicationReport) UnmarshalJSON ¶
func (a *ApplicationReport) UnmarshalJSON(data []byte) error
type Device ¶
type Device struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` Platform string `json:"platform" url:"platform"` Manufacturer *string `json:"manufacturer,omitempty" url:"manufacturer,omitempty"` Model *string `json:"model,omitempty" url:"model,omitempty"` OsVersion *string `json:"osVersion,omitempty" url:"osVersion,omitempty"` Status StatusType `json:"status" url:"status"` Created time.Time `json:"created" url:"created"` Users []*UserInfo `json:"users,omitempty" url:"users,omitempty"` // contains filtered or unexported fields }
func (*Device) GetExtraProperties ¶
func (*Device) MarshalJSON ¶
func (*Device) UnmarshalJSON ¶
type DeviceReport ¶
type DeviceReport struct { Org string `json:"org" url:"org"` Devices []*Device `json:"devices,omitempty" url:"devices,omitempty"` Errors []string `json:"errors,omitempty" url:"errors,omitempty"` // contains filtered or unexported fields }
func (*DeviceReport) GetExtraProperties ¶
func (d *DeviceReport) GetExtraProperties() map[string]interface{}
func (*DeviceReport) String ¶
func (d *DeviceReport) String() string
func (*DeviceReport) UnmarshalJSON ¶
func (d *DeviceReport) UnmarshalJSON(data []byte) error
type Group ¶
type Group struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` Type GroupType `json:"type" url:"type"` Description *string `json:"description,omitempty" url:"description,omitempty"` Created time.Time `json:"created" url:"created"` Applications []*ApplicationInfo `json:"applications,omitempty" url:"applications,omitempty"` Roles []*RoleInfo `json:"roles,omitempty" url:"roles,omitempty"` Users []*UserInfo `json:"users,omitempty" url:"users,omitempty"` // contains filtered or unexported fields }
func (*Group) GetExtraProperties ¶
func (*Group) MarshalJSON ¶
func (*Group) UnmarshalJSON ¶
type GroupInfo ¶
type GroupInfo struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` // contains filtered or unexported fields }
func (*GroupInfo) GetExtraProperties ¶
func (*GroupInfo) UnmarshalJSON ¶
type GroupReport ¶
type GroupReport struct { Org string `json:"org" url:"org"` Groups []*Group `json:"groups,omitempty" url:"groups,omitempty"` Errors []string `json:"errors,omitempty" url:"errors,omitempty"` // contains filtered or unexported fields }
func (*GroupReport) GetExtraProperties ¶
func (g *GroupReport) GetExtraProperties() map[string]interface{}
func (*GroupReport) String ¶
func (g *GroupReport) String() string
func (*GroupReport) UnmarshalJSON ¶
func (g *GroupReport) UnmarshalJSON(data []byte) error
type Login ¶ added in v0.0.3
type Login struct { User *UserInfo `json:"user,omitempty" url:"user,omitempty"` Application *ApplicationInfo `json:"application,omitempty" url:"application,omitempty"` Count int `json:"count" url:"count"` TimeFrame int `json:"timeFrame" url:"timeFrame"` Last time.Time `json:"last" url:"last"` ScanDate time.Time `json:"scanDate" url:"scanDate"` // contains filtered or unexported fields }
func (*Login) GetExtraProperties ¶ added in v0.0.3
func (*Login) MarshalJSON ¶ added in v0.0.3
func (*Login) UnmarshalJSON ¶ added in v0.0.3
type LoginReport ¶ added in v0.0.3
type LoginReport struct { Org string `json:"org" url:"org"` Logins []*Login `json:"logins,omitempty" url:"logins,omitempty"` Errors []string `json:"errors,omitempty" url:"errors,omitempty"` // contains filtered or unexported fields }
func (*LoginReport) GetExtraProperties ¶ added in v0.0.3
func (l *LoginReport) GetExtraProperties() map[string]interface{}
func (*LoginReport) String ¶ added in v0.0.3
func (l *LoginReport) String() string
func (*LoginReport) UnmarshalJSON ¶ added in v0.0.3
func (l *LoginReport) UnmarshalJSON(data []byte) error
type OrgInfo ¶
type OrgInfo struct { Uid string `json:"uid" url:"uid"` CompanyName *string `json:"companyName,omitempty" url:"companyName,omitempty"` Url string `json:"url" url:"url"` Status StatusType `json:"status" url:"status"` Created time.Time `json:"created" url:"created"` // contains filtered or unexported fields }
func (*OrgInfo) GetExtraProperties ¶
func (*OrgInfo) MarshalJSON ¶
func (*OrgInfo) UnmarshalJSON ¶
type OrgReport ¶
type OrgReport struct { Org string `json:"org" url:"org"` Organization *OrgInfo `json:"organization,omitempty" url:"organization,omitempty"` Errors []string `json:"errors,omitempty" url:"errors,omitempty"` // contains filtered or unexported fields }
func (*OrgReport) GetExtraProperties ¶
func (*OrgReport) UnmarshalJSON ¶
type RoleInfo ¶
type RoleInfo struct { Uid string `json:"uid" url:"uid"` Name *string `json:"name,omitempty" url:"name,omitempty"` Type *RoleType `json:"type,omitempty" url:"type,omitempty"` Description *string `json:"description,omitempty" url:"description,omitempty"` Created *time.Time `json:"created,omitempty" url:"created,omitempty"` // contains filtered or unexported fields }
func (*RoleInfo) GetExtraProperties ¶
func (*RoleInfo) MarshalJSON ¶
func (*RoleInfo) UnmarshalJSON ¶
type StatusType ¶
type StatusType string
const ( StatusTypeActive StatusType = "ACTIVE" StatusTypeInactive StatusType = "INACTIVE" StatusTypeUnknown StatusType = "UNKNOWN" )
func NewStatusTypeFromString ¶
func NewStatusTypeFromString(s string) (StatusType, error)
func (StatusType) Ptr ¶
func (s StatusType) Ptr() *StatusType
type User ¶
type User struct { Uid string `json:"uid" url:"uid"` Firstname *string `json:"firstname,omitempty" url:"firstname,omitempty"` Lastname *string `json:"lastname,omitempty" url:"lastname,omitempty"` Email string `json:"email" url:"email"` Status StatusType `json:"status" url:"status"` Created time.Time `json:"created" url:"created"` PasswordChanged *time.Time `json:"passwordChanged,omitempty" url:"passwordChanged,omitempty"` Applications []*ApplicationInfo `json:"applications,omitempty" url:"applications,omitempty"` Groups []*GroupInfo `json:"groups,omitempty" url:"groups,omitempty"` Roles []*RoleInfo `json:"roles,omitempty" url:"roles,omitempty"` // contains filtered or unexported fields }
func (*User) GetExtraProperties ¶
func (*User) MarshalJSON ¶
func (*User) UnmarshalJSON ¶
type UserInfo ¶
type UserInfo struct { Uid string `json:"uid" url:"uid"` Email string `json:"email" url:"email"` // contains filtered or unexported fields }
func (*UserInfo) GetExtraProperties ¶
func (*UserInfo) UnmarshalJSON ¶
type UserReport ¶
type UserReport struct { Org string `json:"org" url:"org"` Users []*User `json:"users,omitempty" url:"users,omitempty"` Errors []string `json:"errors,omitempty" url:"errors,omitempty"` // contains filtered or unexported fields }
func (*UserReport) GetExtraProperties ¶
func (u *UserReport) GetExtraProperties() map[string]interface{}
func (*UserReport) String ¶
func (u *UserReport) String() string
func (*UserReport) UnmarshalJSON ¶
func (u *UserReport) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.