** Copyright (C) 2001-2025 Zabbix SIA
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
"golang.zabbix.com/sdk/zbxerr"
func (t jsTimeLoc) MarshalJSON() ([]byte, error) {
return json.Marshal(time.Time(t).Local())
func (t jsTimeUtc) MarshalJSON() ([]byte, error) {
return json.Marshal(time.Time(t).Unix())
Access *jsTimeLoc `json:"access"`
Modify *jsTimeLoc `json:"modify"`
Change *jsTimeLoc `json:"change"`
type fiTimeStamp struct {
Access *jsTimeUtc `json:"access"`
Modify *jsTimeUtc `json:"modify"`
Change *jsTimeUtc `json:"change"`
Basename string `json:"basename"`
Pathname string `json:"pathname"`
Dirname string `json:"dirname"`
Type string `json:"type"`
User *string `json:"user"`
Time fiTime `json:"time"`
Timestamp fiTimeStamp `json:"timestamp"`
func (p *Plugin) exportGet(params []string) (result interface{}, err error) {