models

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheEngine

type CacheEngine string

CacheEngine ...

var MemoryCacheEngine CacheEngine = "MEMORY"

MemoryCacheEngine ...

var RedisCacheEngine CacheEngine = "REDIS"

RedisCacheEngine ...

func GetCacheEngine

func GetCacheEngine(s string) (CacheEngine, error)

GetCacheEngine ...

type Dashboard added in v0.0.8

type Dashboard string

Dashboard ...

var K8dashDashboard Dashboard = "K8DASH"

K8dashDashboard ...

var NoneDashboard Dashboard = "NONE"

NoneDashboard ...

func GetDashboard added in v0.0.8

func GetDashboard(s string) (Dashboard, error)

GetDashboard ...

type Group

type Group struct {
	Name     string
	ObjectID string
}

Group is the struct for a group

func (Group) MarshalBinary

func (i Group) MarshalBinary() ([]byte, error)

MarshalBinary to marshal Group object

func (*Group) UnmarshalBinary

func (i *Group) UnmarshalBinary(data []byte) error

UnmarshalBinary to unmarshal Group object

type GroupIdentifier

type GroupIdentifier string

GroupIdentifier is the type for what identifier should be sent to the backend

var NameGroupIdentifier GroupIdentifier = "NAME"

NameGroupIdentifier defines that the Name should be sent to the backend

var ObjectIDGroupIdentifier GroupIdentifier = "OBJECTID"

ObjectIDGroupIdentifier defines that the ObjectID should be sent to the backend

func GetGroupIdentifier

func GetGroupIdentifier(s string) (GroupIdentifier, error)

GetGroupIdentifier ...

type Metrics added in v0.0.12

type Metrics string

Metrics ...

var NoneMetrics Metrics = "NONE"

NoneMetrics ...

var PrometheusMetrics Metrics = "PROMETHEUS"

PrometheusMetrics ...

func GetMetrics added in v0.0.12

func GetMetrics(s string) (Metrics, error)

GetMetrics ...

type User

type User struct {
	Username string
	ObjectID string
	Groups   []Group
	Type     UserType
}

User is the struct for a currently logged in user

func (User) MarshalBinary

func (i User) MarshalBinary() ([]byte, error)

MarshalBinary to marshal User object

func (*User) UnmarshalBinary

func (i *User) UnmarshalBinary(data []byte) error

UnmarshalBinary to unmarshal User object

type UserType

type UserType string

UserType is the type of user

var NormalUserType UserType = "NormalUser"

NormalUserType is a normal user

var ServicePrincipalUserType UserType = "ServicePrincipal"

ServicePrincipalUserType is a serivce principal

Jump to

Keyboard shortcuts

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