tools

package
v2.3.0-beta28 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package tools provides utility functions for the service package.

Index

Constants

This section is empty.

Variables

View Source
var ErrGitHubAPIUnresponsive = errors.New("GitHub API is unresponsive")

Functions

This section is empty.

Types

type Service

type Service interface {
	Update(ctx context.Context) error
	CreateConfig(ctx context.Context, filePath string, config string) error
	SendTelemetry(event string, output ...map[string]interface{})
	Login(ctx context.Context) bool
	Export(ctx context.Context) error
}

func NewTools

func NewTools(logger *zap.Logger, telemetry teleDB, auth service.Auth) Service

type Tools

type Tools struct {
	// contains filtered or unexported fields
}

func (*Tools) CreateConfig

func (t *Tools) CreateConfig(_ context.Context, filePath string, configData string) error

func (*Tools) Export

func (t *Tools) Export(ctx context.Context) error

func (*Tools) IgnoreTestSet

func (t *Tools) IgnoreTestSet(_ context.Context, _ string) error

func (*Tools) IgnoreTests

func (t *Tools) IgnoreTests(_ context.Context, _ string, _ []string) error

func (*Tools) Login

func (t *Tools) Login(ctx context.Context) bool

func (*Tools) SendTelemetry

func (t *Tools) SendTelemetry(event string, output ...map[string]interface{})

func (*Tools) Update

func (t *Tools) Update(ctx context.Context) error

Update initiates the tools process for the Keploy binary file.

Jump to

Keyboard shortcuts

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