methodokta

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

Bool returns a pointer to the given bool value.

func Byte

func Byte(b byte) *byte

Byte returns a pointer to the given byte value.

func Complex128

func Complex128(c complex128) *complex128

Complex128 returns a pointer to the given complex128 value.

func Complex64

func Complex64(c complex64) *complex64

Complex64 returns a pointer to the given complex64 value.

func Float32

func Float32(f float32) *float32

Float32 returns a pointer to the given float32 value.

func Float64

func Float64(f float64) *float64

Float64 returns a pointer to the given float64 value.

func Int

func Int(i int) *int

Int returns a pointer to the given int value.

func Int16

func Int16(i int16) *int16

Int16 returns a pointer to the given int16 value.

func Int32

func Int32(i int32) *int32

Int32 returns a pointer to the given int32 value.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to the given int64 value.

func Int8

func Int8(i int8) *int8

Int8 returns a pointer to the given int8 value.

func MustParseDate

func MustParseDate(date string) time.Time

MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.

func MustParseDateTime

func MustParseDateTime(datetime string) time.Time

MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.

func Rune

func Rune(r rune) *rune

Rune returns a pointer to the given rune value.

func String

func String(s string) *string

String returns a pointer to the given string value.

func Time

func Time(t time.Time) *time.Time

Time returns a pointer to the given time.Time value.

func UUID

func UUID(u uuid.UUID) *uuid.UUID

UUID returns a pointer to the given uuid.UUID value.

func Uint

func Uint(u uint) *uint

Uint returns a pointer to the given uint value.

func Uint16

func Uint16(u uint16) *uint16

Uint16 returns a pointer to the given uint16 value.

func Uint32

func Uint32(u uint32) *uint32

Uint32 returns a pointer to the given uint32 value.

func Uint64

func Uint64(u uint64) *uint64

Uint64 returns a pointer to the given uint64 value.

func Uint8

func Uint8(u uint8) *uint8

Uint8 returns a pointer to the given uint8 value.

func Uintptr

func Uintptr(u uintptr) *uintptr

Uintptr returns a pointer to the given uintptr value.

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 AuthType

type AuthType string
const (
	AuthTypeBrowserPlugin AuthType = "BROWSER_PLUGIN"
	AuthTypeOpenidConnect AuthType = "OPENID_CONNECT"
	AuthTypeSaml20        AuthType = "SAML_2_0"
	AuthTypeUnknown       AuthType = "UNKNOWN"
)

func NewAuthTypeFromString

func NewAuthTypeFromString(s string) (AuthType, error)

func (AuthType) Ptr

func (a AuthType) Ptr() *AuthType

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 (d *Device) GetExtraProperties() map[string]interface{}

func (*Device) MarshalJSON

func (d *Device) MarshalJSON() ([]byte, error)

func (*Device) String

func (d *Device) String() string

func (*Device) UnmarshalJSON

func (d *Device) UnmarshalJSON(data []byte) error

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 (g *Group) GetExtraProperties() map[string]interface{}

func (*Group) MarshalJSON

func (g *Group) MarshalJSON() ([]byte, error)

func (*Group) String

func (g *Group) String() string

func (*Group) UnmarshalJSON

func (g *Group) UnmarshalJSON(data []byte) error

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 (g *GroupInfo) GetExtraProperties() map[string]interface{}

func (*GroupInfo) String

func (g *GroupInfo) String() string

func (*GroupInfo) UnmarshalJSON

func (g *GroupInfo) UnmarshalJSON(data []byte) error

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 GroupType

type GroupType string
const (
	GroupTypeOktaGroup GroupType = "OKTA_GROUP"
	GroupTypeAppGroup  GroupType = "APP_GROUP"
	GroupTypeBuiltIn   GroupType = "BUILT_IN"
	GroupTypeUnknown   GroupType = "UNKNOWN"
)

func NewGroupTypeFromString

func NewGroupTypeFromString(s string) (GroupType, error)

func (GroupType) Ptr

func (g GroupType) Ptr() *GroupType

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 (l *Login) GetExtraProperties() map[string]interface{}

func (*Login) MarshalJSON added in v0.0.3

func (l *Login) MarshalJSON() ([]byte, error)

func (*Login) String added in v0.0.3

func (l *Login) String() string

func (*Login) UnmarshalJSON added in v0.0.3

func (l *Login) UnmarshalJSON(data []byte) error

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 (o *OrgInfo) GetExtraProperties() map[string]interface{}

func (*OrgInfo) MarshalJSON

func (o *OrgInfo) MarshalJSON() ([]byte, error)

func (*OrgInfo) String

func (o *OrgInfo) String() string

func (*OrgInfo) UnmarshalJSON

func (o *OrgInfo) UnmarshalJSON(data []byte) error

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 (o *OrgReport) GetExtraProperties() map[string]interface{}

func (*OrgReport) String

func (o *OrgReport) String() string

func (*OrgReport) UnmarshalJSON

func (o *OrgReport) UnmarshalJSON(data []byte) error

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 (r *RoleInfo) GetExtraProperties() map[string]interface{}

func (*RoleInfo) MarshalJSON

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

func (*RoleInfo) String

func (r *RoleInfo) String() string

func (*RoleInfo) UnmarshalJSON

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

type RoleType

type RoleType string
const (
	RoleTypeSuperAdmin RoleType = "SUPER_ADMIN"
	RoleTypeAdmin      RoleType = "ADMIN"
	RoleTypeUser       RoleType = "USER"
	RoleTypeReadOnly   RoleType = "READ_ONLY"
	RoleTypeUnknown    RoleType = "UNKNOWN"
)

func NewRoleTypeFromString

func NewRoleTypeFromString(s string) (RoleType, error)

func (RoleType) Ptr

func (r RoleType) Ptr() *RoleType

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 (u *User) GetExtraProperties() map[string]interface{}

func (*User) MarshalJSON

func (u *User) MarshalJSON() ([]byte, error)

func (*User) String

func (u *User) String() string

func (*User) UnmarshalJSON

func (u *User) UnmarshalJSON(data []byte) error

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 (u *UserInfo) GetExtraProperties() map[string]interface{}

func (*UserInfo) String

func (u *UserInfo) String() string

func (*UserInfo) UnmarshalJSON

func (u *UserInfo) UnmarshalJSON(data []byte) error

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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