user

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ObjectInformation configobject.ObjectInformation
	Fields            = []string{
		"id",
		"environment_id",
		"name_checksum",
		"properties_checksum",
		"name",
		"name_ci",
		"display_name",
		"email",
		"pager",
		"notifications_enabled",
		"timeperiod_id",
		"states",
		"types",
		"zone_id",
	}
)

Functions

func NewUser

func NewUser() connection.Row

Types

type User

type User struct {
	Id                   string   `json:"id"`
	EnvId                string   `json:"environment_id"`
	NameChecksum         string   `json:"name_checksum"`
	PropertiesChecksum   string   `json:"checksum"`
	Name                 string   `json:"name"`
	NameCi               *string  `json:"name_ci"`
	DisplayName          string   `json:"display_name"`
	EMail                string   `json:"email"`
	Pager                string   `json:"pager"`
	NotificationsEnabled bool     `json:"notifications_enabled"`
	PeriodId             string   `json:"timeperiod_id"`
	States               []string `json:"states"`
	Types                []string `json:"types"`
	ZoneId               string   `json:"zone_id"`
}

func (*User) GetFinalRows

func (u *User) GetFinalRows() ([]connection.Row, error)

func (*User) GetId

func (u *User) GetId() string

func (*User) InsertValues

func (u *User) InsertValues() []interface{}

func (*User) SetId

func (u *User) SetId(id string)

func (*User) UpdateValues

func (u *User) UpdateValues() []interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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