Documentation ¶
Index ¶
- type ESClient
- func (backend *ESClient) CreateTemplate(ctx context.Context, templateName string, mapping string)
- func (backend *ESClient) InitializeStore(ctx context.Context)
- func (backend *ESClient) InsertInspecProfile(ctx context.Context, data *relaxting.ESInspecProfile) error
- func (backend *ESClient) InsertInspecReport(ctx context.Context, id string, endTime time.Time, ...) error
- func (backend *ESClient) InsertInspecSummary(ctx context.Context, id string, endTime time.Time, ...) error
- func (backend *ESClient) JobCancel(ctx context.Context, jobID string) error
- func (backend *ESClient) JobStatus(ctx context.Context, jobID string) (project_update_lib.JobStatus, error)
- func (backend *ESClient) ProfileExists(hash string) (bool, error)
- func (backend *ESClient) UpdateProjectTags(ctx context.Context, projectTaggingRules map[string]*iam_v2.ProjectRules) ([]string, error)
- func (backend *ESClient) UpdateReportProjectsTags(ctx context.Context, projectTaggingRules map[string]*iam_v2.ProjectRules) (string, error)
- func (backend *ESClient) UpdateSummaryProjectsTags(ctx context.Context, projectTaggingRules map[string]*iam_v2.ProjectRules) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ESClient ¶
type ESClient struct {
// contains filtered or unexported fields
}
func NewESClient ¶
func (*ESClient) CreateTemplate ¶
func (*ESClient) InitializeStore ¶
InitializeStore runs the necessary initialization processes to make elasticsearch usable in particular it creates the indexes and aliases for documents to be added
func (*ESClient) InsertInspecProfile ¶
func (*ESClient) InsertInspecReport ¶
func (*ESClient) InsertInspecSummary ¶
func (*ESClient) ProfileExists ¶
ProfileExists returns true if profile exists already in ES.. false if not
func (*ESClient) UpdateProjectTags ¶
func (*ESClient) UpdateReportProjectsTags ¶
func (*ESClient) UpdateSummaryProjectsTags ¶
Click to show internal directories.
Click to hide internal directories.