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
- func (a *Application) GetAuthMethod() AuthType
- func (a *Application) GetCreated() time.Time
- func (a *Application) GetExtraProperties() map[string]interface{}
- func (a *Application) GetGroups() []*GroupInfo
- func (a *Application) GetLabel() string
- func (a *Application) GetName() string
- func (a *Application) GetStatus() StatusType
- func (a *Application) GetUid() string
- func (a *Application) GetUrl() *string
- func (a *Application) GetUsers() []*UserInfo
- func (a *Application) MarshalJSON() ([]byte, error)
- func (a *Application) String() string
- func (a *Application) UnmarshalJSON(data []byte) error
- type ApplicationInfo
- type ApplicationReport
- func (a *ApplicationReport) GetApplications() []*Application
- func (a *ApplicationReport) GetErrors() []string
- func (a *ApplicationReport) GetExtraProperties() map[string]interface{}
- func (a *ApplicationReport) GetOrg() string
- func (a *ApplicationReport) String() string
- func (a *ApplicationReport) UnmarshalJSON(data []byte) error
- type AuthType
- type Device
- func (d *Device) GetCreated() time.Time
- func (d *Device) GetExtraProperties() map[string]interface{}
- func (d *Device) GetManufacturer() *string
- func (d *Device) GetModel() *string
- func (d *Device) GetName() string
- func (d *Device) GetOsVersion() *string
- func (d *Device) GetPlatform() string
- func (d *Device) GetStatus() StatusType
- func (d *Device) GetUid() string
- func (d *Device) GetUsers() []*UserInfo
- func (d *Device) MarshalJSON() ([]byte, error)
- func (d *Device) String() string
- func (d *Device) UnmarshalJSON(data []byte) error
- type DeviceReport
- type FileParam
- type FileParamOption
- type Group
- func (g *Group) GetApplications() []*ApplicationInfo
- func (g *Group) GetCreated() time.Time
- func (g *Group) GetDescription() *string
- func (g *Group) GetExtraProperties() map[string]interface{}
- func (g *Group) GetName() string
- func (g *Group) GetRoles() []*RoleInfo
- func (g *Group) GetType() GroupType
- func (g *Group) GetUid() string
- func (g *Group) GetUsers() []*UserInfo
- func (g *Group) MarshalJSON() ([]byte, error)
- func (g *Group) String() string
- func (g *Group) UnmarshalJSON(data []byte) error
- type GroupInfo
- type GroupReport
- type GroupType
- type Login
- func (l *Login) GetApplication() *ApplicationInfo
- func (l *Login) GetCount() int
- func (l *Login) GetExtraProperties() map[string]interface{}
- func (l *Login) GetLast() time.Time
- func (l *Login) GetScanDate() time.Time
- func (l *Login) GetTimeFrame() int
- func (l *Login) GetUser() *UserInfo
- func (l *Login) MarshalJSON() ([]byte, error)
- func (l *Login) String() string
- func (l *Login) UnmarshalJSON(data []byte) error
- type LoginReport
- type OrgInfo
- func (o *OrgInfo) GetCompanyName() *string
- func (o *OrgInfo) GetCreated() time.Time
- func (o *OrgInfo) GetExtraProperties() map[string]interface{}
- func (o *OrgInfo) GetStatus() StatusType
- func (o *OrgInfo) GetUid() string
- func (o *OrgInfo) GetUrl() string
- func (o *OrgInfo) MarshalJSON() ([]byte, error)
- func (o *OrgInfo) String() string
- func (o *OrgInfo) UnmarshalJSON(data []byte) error
- type OrgReport
- type RoleInfo
- func (r *RoleInfo) GetCreated() *time.Time
- func (r *RoleInfo) GetDescription() *string
- func (r *RoleInfo) GetExtraProperties() map[string]interface{}
- func (r *RoleInfo) GetName() *string
- func (r *RoleInfo) GetType() *RoleType
- func (r *RoleInfo) GetUid() string
- func (r *RoleInfo) MarshalJSON() ([]byte, error)
- func (r *RoleInfo) String() string
- func (r *RoleInfo) UnmarshalJSON(data []byte) error
- type RoleType
- type StatusType
- type User
- func (u *User) GetApplications() []*ApplicationInfo
- func (u *User) GetCreated() time.Time
- func (u *User) GetEmail() string
- func (u *User) GetExtraProperties() map[string]interface{}
- func (u *User) GetFirstname() *string
- func (u *User) GetGroups() []*GroupInfo
- func (u *User) GetLastname() *string
- func (u *User) GetPasswordChanged() *time.Time
- func (u *User) GetRoles() []*RoleInfo
- func (u *User) GetStatus() StatusType
- func (u *User) GetUid() string
- func (u *User) MarshalJSON() ([]byte, error)
- func (u *User) String() string
- func (u *User) UnmarshalJSON(data []byte) error
- 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) GetAuthMethod ¶ added in v0.0.8
func (a *Application) GetAuthMethod() AuthType
func (*Application) GetCreated ¶ added in v0.0.8
func (a *Application) GetCreated() time.Time
func (*Application) GetExtraProperties ¶
func (a *Application) GetExtraProperties() map[string]interface{}
func (*Application) GetGroups ¶ added in v0.0.8
func (a *Application) GetGroups() []*GroupInfo
func (*Application) GetLabel ¶ added in v0.0.8
func (a *Application) GetLabel() string
func (*Application) GetName ¶ added in v0.0.8
func (a *Application) GetName() string
func (*Application) GetStatus ¶ added in v0.0.8
func (a *Application) GetStatus() StatusType
func (*Application) GetUid ¶ added in v0.0.8
func (a *Application) GetUid() string
func (*Application) GetUrl ¶ added in v0.0.8
func (a *Application) GetUrl() *string
func (*Application) GetUsers ¶ added in v0.0.8
func (a *Application) GetUsers() []*UserInfo
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) GetName ¶ added in v0.0.8
func (a *ApplicationInfo) GetName() string
func (*ApplicationInfo) GetUid ¶ added in v0.0.8
func (a *ApplicationInfo) GetUid() string
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) GetApplications ¶ added in v0.0.8
func (a *ApplicationReport) GetApplications() []*Application
func (*ApplicationReport) GetErrors ¶ added in v0.0.8
func (a *ApplicationReport) GetErrors() []string
func (*ApplicationReport) GetExtraProperties ¶
func (a *ApplicationReport) GetExtraProperties() map[string]interface{}
func (*ApplicationReport) GetOrg ¶ added in v0.0.8
func (a *ApplicationReport) GetOrg() string
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) GetCreated ¶ added in v0.0.8
func (*Device) GetExtraProperties ¶
func (*Device) GetManufacturer ¶ added in v0.0.8
func (*Device) GetOsVersion ¶ added in v0.0.8
func (*Device) GetPlatform ¶ added in v0.0.8
func (*Device) GetStatus ¶ added in v0.0.8
func (d *Device) GetStatus() StatusType
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) GetDevices ¶ added in v0.0.8
func (d *DeviceReport) GetDevices() []*Device
func (*DeviceReport) GetErrors ¶ added in v0.0.8
func (d *DeviceReport) GetErrors() []string
func (*DeviceReport) GetExtraProperties ¶
func (d *DeviceReport) GetExtraProperties() map[string]interface{}
func (*DeviceReport) GetOrg ¶ added in v0.0.8
func (d *DeviceReport) GetOrg() string
func (*DeviceReport) String ¶
func (d *DeviceReport) String() string
func (*DeviceReport) UnmarshalJSON ¶
func (d *DeviceReport) UnmarshalJSON(data []byte) error
type FileParam ¶ added in v0.0.8
FileParam is a file type suitable for multipart/form-data uploads.
func NewFileParam ¶ added in v0.0.8
func NewFileParam( reader io.Reader, filename string, contentType string, opts ...FileParamOption, ) *FileParam
NewFileParam returns a *FileParam type suitable for multipart/form-data uploads. All file upload endpoints accept a simple io.Reader, which is usually created by opening a file via os.Open.
However, some endpoints require additional metadata about the file such as a specific Content-Type or custom filename. FileParam makes it easier to create the correct type signature for these endpoints.
func (*FileParam) ContentType ¶ added in v0.0.8
type FileParamOption ¶ added in v0.0.8
type FileParamOption interface {
// contains filtered or unexported methods
}
FileParamOption adapts the behavior of the FileParam. No options are implemented yet, but this interface allows for future extensibility.
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) GetApplications ¶ added in v0.0.8
func (g *Group) GetApplications() []*ApplicationInfo
func (*Group) GetCreated ¶ added in v0.0.8
func (*Group) GetDescription ¶ added in v0.0.8
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) GetErrors ¶ added in v0.0.8
func (g *GroupReport) GetErrors() []string
func (*GroupReport) GetExtraProperties ¶
func (g *GroupReport) GetExtraProperties() map[string]interface{}
func (*GroupReport) GetGroups ¶ added in v0.0.8
func (g *GroupReport) GetGroups() []*Group
func (*GroupReport) GetOrg ¶ added in v0.0.8
func (g *GroupReport) GetOrg() string
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) GetApplication ¶ added in v0.0.8
func (l *Login) GetApplication() *ApplicationInfo
func (*Login) GetExtraProperties ¶ added in v0.0.3
func (*Login) GetScanDate ¶ added in v0.0.8
func (*Login) GetTimeFrame ¶ added in v0.0.8
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) GetErrors ¶ added in v0.0.8
func (l *LoginReport) GetErrors() []string
func (*LoginReport) GetExtraProperties ¶ added in v0.0.3
func (l *LoginReport) GetExtraProperties() map[string]interface{}
func (*LoginReport) GetLogins ¶ added in v0.0.8
func (l *LoginReport) GetLogins() []*Login
func (*LoginReport) GetOrg ¶ added in v0.0.8
func (l *LoginReport) GetOrg() string
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) GetCompanyName ¶ added in v0.0.8
func (*OrgInfo) GetCreated ¶ added in v0.0.8
func (*OrgInfo) GetExtraProperties ¶
func (*OrgInfo) GetStatus ¶ added in v0.0.8
func (o *OrgInfo) GetStatus() StatusType
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) GetOrganization ¶ added in v0.0.8
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) GetCreated ¶ added in v0.0.8
func (*RoleInfo) GetDescription ¶ added in v0.0.8
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) GetApplications ¶ added in v0.0.8
func (u *User) GetApplications() []*ApplicationInfo
func (*User) GetCreated ¶ added in v0.0.8
func (*User) GetExtraProperties ¶
func (*User) GetFirstname ¶ added in v0.0.8
func (*User) GetLastname ¶ added in v0.0.8
func (*User) GetPasswordChanged ¶ added in v0.0.8
func (*User) GetStatus ¶ added in v0.0.8
func (u *User) GetStatus() StatusType
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) GetErrors ¶ added in v0.0.8
func (u *UserReport) GetErrors() []string
func (*UserReport) GetExtraProperties ¶
func (u *UserReport) GetExtraProperties() map[string]interface{}
func (*UserReport) GetOrg ¶ added in v0.0.8
func (u *UserReport) GetOrg() string
func (*UserReport) GetUsers ¶ added in v0.0.8
func (u *UserReport) GetUsers() []*User
func (*UserReport) String ¶
func (u *UserReport) String() string
func (*UserReport) UnmarshalJSON ¶
func (u *UserReport) UnmarshalJSON(data []byte) error