1 Star 0 Fork 0

nanjo_fan / goharbor-client

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
scan_data_export_request.go 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
王帆 提交于 2023-02-13 08:49 . first commit
// Code generated by go-swagger; DO NOT EDIT.
package model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ScanDataExportRequest The criteria to select the scan data to export.
//
// swagger:model ScanDataExportRequest
type ScanDataExportRequest struct {
// CVE-IDs for which to export data. Multiple CVE-IDs can be specified by separating using ',' and enclosed between '{}'. Defaults to all if empty
CVEIds string `json:"cveIds,omitempty"`
// Name of the scan data export job
JobName string `json:"job_name,omitempty"`
// A list of one or more labels for which to export the scan data, defaults to all if empty
Labels []int64 `json:"labels"`
// A list of one or more projects for which to export the scan data, currently only one project is supported due to performance concerns, but define as array for extension in the future.
Projects []int64 `json:"projects"`
// A list of repositories for which to export the scan data, defaults to all if empty
Repositories string `json:"repositories,omitempty"`
// A list of tags enclosed within '{}'. Defaults to all if empty
Tags string `json:"tags,omitempty"`
}
// Validate validates this scan data export request
func (m *ScanDataExportRequest) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *ScanDataExportRequest) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *ScanDataExportRequest) UnmarshalBinary(b []byte) error {
var res ScanDataExportRequest
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
Go
1
https://gitee.com/nanjo-fan/goharbor-client.git
git@gitee.com:nanjo-fan/goharbor-client.git
nanjo-fan
goharbor-client
goharbor-client
v1.0.2

搜索帮助