search

package
v0.0.0-...-4113cd6 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	OpenSearch *opensearchapi.Client
}

func New

func New(User string, Password string, URL []string) (*Client, error)

func (*Client) AddJob

func (c *Client) AddJob(CI string, Organization string, Repository string, RunId int64) (string, error)

func (*Client) CreateJobsIndex

func (c *Client) CreateJobsIndex() error

func (*Client) CreateWorkflowIndex

func (c *Client) CreateWorkflowIndex(CI string, Organization string, Repository string, RunId int64) (string, error)

func (*Client) DeleteJob

func (c *Client) DeleteJob(DocumentId string) error

func (*Client) PendingJobs

func (c *Client) PendingJobs() (JobList, error)

func (Client) ValidateSetup

func (c Client) ValidateSetup() error

Validate the index setup in the opensearch cluster

type Job

type Job struct {
	Timestamp    time.Time `json:"@timestamp"`
	CI           string    `json:"ci"`
	Organization string    `json:"organization"`
	Repository   string    `json:"repository"`
	RunId        int64     `json:"runid"`
}

type JobList

type JobList map[string]Job

Jump to

Keyboard shortcuts

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