reportportal

package
v0.0.0-...-d8b41f4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseURL = "https://reportportal-reportportal.apps.chiron.intlyqe.com/api/v1/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL  *url.URL
	Launches *RPLaunchService
	// contains filtered or unexported fields
}

func NewClient

func NewClient(httpClient *http.Client) *Client

func (*Client) Do

func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*http.Response, error)

func (*Client) NewRequest

func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error)

type RPLaunchDetailsResponse

type RPLaunchDetailsResponse struct {
	Id int `json:"id"`
}

type RPLaunchManager

type RPLaunchManager interface {
	Import(ctx context.Context, projectName string, importFile string, launchName string) (*RPLaunchResponse, error)
	Update(ctx context.Context, projectName string, launchId int, input *RPLaunchUpdateInput) (*RPLaunchResponse, error)
	Get(ctx context.Context, projectName string, launchUuid string) (*RPLaunchDetailsResponse, error)
}

type RPLaunchResponse

type RPLaunchResponse struct {
	Message string `json:"message"`
}

func (*RPLaunchResponse) GetLaunchUuid

func (r *RPLaunchResponse) GetLaunchUuid() string

type RPLaunchService

type RPLaunchService service

func (*RPLaunchService) Get

func (s *RPLaunchService) Get(ctx context.Context, projectName string, launchUuid string) (*RPLaunchDetailsResponse, error)

func (*RPLaunchService) Import

func (s *RPLaunchService) Import(ctx context.Context, projectName string, importFile string, launchName string) (*RPLaunchResponse, error)

func (*RPLaunchService) Update

func (s *RPLaunchService) Update(ctx context.Context, projectName string, launchId int, input *RPLaunchUpdateInput) (*RPLaunchResponse, error)

type RPLaunchUpdateInput

type RPLaunchUpdateInput struct {
	Description string   `json:"description"`
	Tags        []string `json:"tags"`
}

Jump to

Keyboard shortcuts

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