types

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int64

func Int64(i int64) *int64

func String

func String(s string) *string

Types

type ACL

type ACL struct {
	App            string   `json:"app"`
	CanChangePerms bool     `json:"can_change_perms"`
	CanShareApp    bool     `json:"can_share_app"`
	CanShareGlobal bool     `json:"can_share_global"`
	CanShareUser   bool     `json:"can_share_user"`
	CanWrite       bool     `json:"can_write"`
	Modifiable     bool     `json:"modifiable"`
	Owner          string   `json:"owner"`
	Perms          ACLPerms `json:"perms"`
	Removable      bool     `json:"removable"`
	Sharing        string   `json:"sharing"`
}

type ACLPerms

type ACLPerms struct {
	Read  []string `json:"read"`
	Write []string `json:"write"`
}

type App

type App struct {
	Entry
	Content AppContent `json:"content"`
}

type AppContent

type AppContent struct {
	CheckForUpdates            bool   `json:"check_for_updates"`
	Configured                 bool   `json:"configured"`
	Core                       bool   `json:"core"`
	Disabled                   bool   `json:"disabled"`
	Description                string `json:"description"`
	Details                    string `json:"details"`
	Version                    string `json:"version"`
	EAIACL                     ACL    `json:"eai:acl"`
	Label                      string `json:"label"`
	ManagedByDeploymentClient  bool   `json:"managed_by_deployment_client"`
	ShowInNav                  bool   `json:"show_in_nav"`
	StateChangeRequiresRestart bool   `json:"state_change_requires_restart"`
	Visible                    bool   `json:"visible"`
}

type AppListResponse

type AppListResponse struct {
	Entry  []App  `json:"entry"`
	Paging Paging `json:"paging"`
}

type Entry

type Entry struct {
	Name    string      `json:"name"`
	ID      string      `json:"id"`
	Updated string      `json:"updated"`
	Links   interface{} `json:"links"`
	Author  string      `json:"author"`
	ACL     ACL         `json:"acl"`
}

type Index

type Index struct {
	Entry
	Content IndexContent `json:"content"`
}

type IndexContent

type IndexContent struct {
	AssureUTF8               bool        `json:"assureUTF8"`
	BlockSignSize            int         `json:"blockSignSize"`
	BlockSignatureDatabase   string      `json:"blockSignatureDatabase"`
	ColdPath                 string      `json:"coldPath"`
	ColdPathExpanded         string      `json:"coldPath_expanded"`
	ColdToFrozenDir          string      `json:"coldToFrozenDir"`
	ColdToFrozenScript       string      `json:"coldToFrozenScript"`
	CurrentDBSizeMB          string      `json:"currentDBSizeMB"`
	DataType                 string      `json:"dataType"`
	DefaultDatabase          string      `json:"defaultDatabase"`
	Disabled                 bool        `json:"disabled"`
	EnableRealtimeSearch     bool        `json:"enableRealtimeSearch"`
	FrozenTimePeriodInSecs   int         `json:"frozenTimePeriodInSecs"`
	HomePath                 string      `json:"homePath"`
	HomePathExpanded         string      `json:"homePath_expanded"`
	IndexThreads             string      `json:"indexThreads"`
	IsInternal               bool        `json:"isInternal"`
	IsReady                  bool        `json:"isReady"`
	LastInitTime             int         `json:"lastInitTime"`
	MaxConcurrentOptimizes   int         `json:"maxConcurrentOptimizes"`
	MaxDataSize              string      `json:"maxDataSize"`
	MaxHotBuckets            string      `json:"maxHotBuckets"`
	MaxHotIdleSecs           int         `json:"maxHotIdleSecs"`
	MaxHotSpanSecs           int         `json:"maxHotSpanSecs"`
	MaxMemMB                 int         `json:"maxMemMB"`
	MaxMetaEntries           int         `json:"maxMetaEntries"`
	MaxRunningProcessGroups  int         `json:"maxRunningProcessGroups"`
	MaxTime                  string      `json:"maxTime"`
	MaxTotalDataSizeMB       int         `json:"maxTotalDataSizeMB"`
	MaxWarmDBCount           int         `json:"maxWarmDBCount"`
	MemPoolMB                string      `json:"memPoolMB"`
	MinRawFileSyncSecs       string      `json:"minRawFileSyncSecs"`
	MinTime                  string      `json:"minTime"`
	PartialServiceMetaPeriod int         `json:"partialServiceMetaPeriod"`
	QuarantineFutureSecs     int         `json:"quarantineFutureSecs"`
	QuarantinePastSecs       int         `json:"quarantinePastSecs"`
	RawChunkSizeBytes        int         `json:"rawChunkSizeBytes"`
	RotatePeriodInSecs       int         `json:"rotatePeriodInSecs"`
	ServiceMetaPeriod        int         `json:"serviceMetaPeriod"`
	Summarize                bool        `json:"summarize"`
	SuppressBannerList       interface{} `json:"suppressBannerList"`
	Sync                     int         `json:"sync"`
	SyncMeta                 bool        `json:"syncMeta"`
	ThawedPath               string      `json:"thawedPath"`
	ThawedPathExpanded       string      `json:"thawedPath_expanded"`
	ThrottleCheckPeriod      int         `json:"throttleCheckPeriod"`
	TotalEventCount          int         `json:"totalEventCount"`
}

type IndexListRequest

type IndexListRequest struct {
	ListRequest
	DataType *string `url:"datatype"`
}

type IndexListResponse

type IndexListResponse struct {
	Entry  []Index `json:"entry"`
	Paging Paging  `json:"paging"`
}

type ListRequest

type ListRequest struct {
	Count  *int64 `json:"count,omitempty" url:"count"`
	Offset *int64 `json:"offset,omitempty" url:"offset"`
}

type Message

type Message struct {
	Text string `json:"text"`
	Type string `json:"type"`
}

type Paging

type Paging struct {
	Total   *int64 `json:"total,omitempty"`
	PerPage *int64 `json:"perPage,omitempty"`
	Offset  *int64 `json:"offset,omitempty"`
}

type SearchJob

type SearchJob struct {
	Entry
	Content SearchJobContent `json:"content"`
}

type SearchJobContent

type SearchJobContent struct {
	CursorTime            string      `json:"cursorTime"`
	Custom                interface{} `json:"custom"`
	Delegate              string      `json:"delegate"`
	DiskUsage             int         `json:"diskUsage"`
	DispatchState         string      `json:"dispatchState"`
	DoneProgress          float64     `json:"doneProgress"`
	DropCount             int         `json:"dropCount"`
	EventAvailableCount   int         `json:"eventAvailableCount"`
	EventCount            int         `json:"eventCount"`
	EventFieldCount       int         `json:"eventFieldCount"`
	EventIsStreaming      bool        `json:"eventIsStreaming"`
	EventIsTruncated      bool        `json:"eventIsTruncated"`
	EventPreviewableCount int         `json:"eventPreviewableCount"`
	EventSearch           string      `json:"eventSearch"`
	EventSorting          string      `json:"eventSorting"`
	IsDone                bool        `json:"isDone"`
	IsEventPreviewEnabled bool        `json:"isEventPreviewEnabled"`
	IsFailed              bool        `json:"isFailed"`
	IsFinalized           bool        `json:"isFinalized"`
	IsPaused              bool        `json:"isPaused"`
	IsPreviewEnabled      bool        `json:"isPreviewEnabled"`
	IsRealTimeSearch      bool        `json:"isRealTimeSearch"`
	IsRemoteTimeline      bool        `json:"isRemoteTimeline"`
	IsSaved               bool        `json:"isSaved"`
	IsSavedSearch         bool        `json:"isSavedSearch"`
	IsZombie              bool        `json:"isZombie"`
	Keywords              string      `json:"keywords"`
	Label                 string      `json:"label"`
	LatestTime            string      `json:"latestTime"`
	Messages              interface{} `json:"messages"`
	NumPreviews           int         `json:"numPreviews"`
	Performance           interface{} `json:"performance"`
	Priority              int         `json:"priority"`
	RemoteSearch          string      `json:"remoteSearch"`
	ReportSearch          string      `json:"reportSearch"`
	Request               interface{} `json:"request"`
	ResultCount           int         `json:"resultCount"`
	ResultIsStreaming     bool        `json:"resultIsStreaming"`
	ResultPreviewCount    int         `json:"resultPreviewCount"`
	RunDuration           float64     `json:"runDuration"`
	ScanCount             int         `json:"scanCount"`
	SearchEarliestTime    float64     `json:"searchEarliestTime"`
	SearchLatestTime      float64     `json:"searchLatestTime"`
	SearchProviders       []string    `json:"searchProviders"`
	SID                   string      `json:"sid"`
	StatusBuckets         int         `json:"statusBuckets"`
	TTL                   int         `json:"ttl"`
}

type SearchJobListRequest

type SearchJobListRequest struct {
	ListRequest
}

type SearchJobListResponse

type SearchJobListResponse struct {
	Entry  []SearchJob `json:"entry"`
	Paging Paging      `json:"paging"`
}

type SearchJobResult

type SearchJobResult struct {
	Time          string `json:"_time"`
	Host          string `json:"host"`
	Source        string `json:"source"`
	SourceType    string `json:"sourcetype"`
	Action        string `json:"action"`
	Info          string `json:"info"`
	User          string `json:"user"`
	IsSearches    string `json:"is_searches"`
	IsNotSearches string `json:"is_not_searches"`
	IsModify      string `json:"is_modify"`
	IsNotModify   string `json:"is_not_modify"`
	Result        string `json:"_raw"`
}

type SearchJobResultListRequest

type SearchJobResultListRequest struct {
	ListRequest
	Search *string `url:"search"`
}

type SearchJobResultListResponse

type SearchJobResultListResponse struct {
	InitOffset int               `json:"init_offset"`
	Messages   []Message         `json:"messages"`
	Preview    bool              `json:"preview"`
	Results    []SearchJobResult `json:"results"`
}

type Token

type Token struct {
	Entry
	Content TokenContent `json:"content"`
}

type TokenClaims

type TokenClaims struct {
	Audience         string   `json:"aud,omitempty"`
	Subject          string   `json:"sub,omitempty"`
	IssuedAt         int64    `json:"iat,omitempty"`
	NotBefore        int64    `json:"nbr,omitempty"`
	ExpirationTime   int64    `json:"exp,omitempty"`
	Issuer           string   `json:"iss,omitempty"`
	IdentityProvider string   `json:"idp,omitempty"`
	Roles            []string `json:"roles,omitempty"`
}

type TokenContent

type TokenContent struct {
	Claims     TokenClaims `json:"claims"`
	EAIACL     ACL         `json:"eai:acl"`
	Headers    interface{} `json:"headers"`
	LastUsed   int64       `json:"lastUsed"`
	LastUsedIP string      `json:"lastUsedIp"`
	Status     string      `json:"status"`
}

type TokenListResponse

type TokenListResponse struct {
	Entry  []Token `json:"entry"`
	Paging Paging  `json:"paging"`
}

type User

type User struct {
	Entry
	Content UserContent `json:"content"`
}

type UserContent

type UserContent struct {
	Capabilities             []string `json:"capabilities"`
	DefaultApp               string   `json:"defaultApp"`
	DefaultAppIsUserOverride bool     `json:"defaultAppIsUserOverride"`
	DefaultAppSourceRole     string   `json:"defaultAppSourceRole"`
	EAIACL                   ACL      `json:"eai:acl"`
	Email                    string   `json:"email"`
	Lang                     string   `json:"lang"`
	LockedOut                bool     `json:"locked-out"`
	RealName                 string   `json:"realname"`
	RestartBackgroundJobs    bool     `json:"restart_background_jobs"`
	Roles                    []string `json:"roles"`
	SearchAssistant          string   `json:"search_assistant"`
	SearchAutoFormat         bool     `json:"search_auto_format"`
	SearchLineNumbers        bool     `json:"search_line_numbers"`
	SearchSyntaxHighlighting string   `json:"search_syntax_highlighting"`
	SearchUseAdvancedEditor  bool     `json:"search_use_advanced_editor"`
	Type                     string   `json:"type"`
	TZ                       string   `json:"tz"`
}

type UserListResponse

type UserListResponse struct {
	Entry  []User `json:"entry"`
	Paging Paging `json:"paging"`
}

Jump to

Keyboard shortcuts

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