inspections

package
v0.0.0-...-1a0708b Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.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 {
	*zap.SugaredLogger

	SkipIDs       []string
	ModifiedAfter time.Time
	TemplateIDs   []string
	Archived      string
	Completed     string
	Incremental   bool
	// contains filtered or unexported fields
}

Client to be used with inspections

func (*Client) Export

func (client *Client) Export(ctx context.Context) error

Export triggers the export

func (*Client) Name

func (client *Client) Name() string

Name returns the name of the client

type InspectionClient

type InspectionClient interface {
	Export(ctx context.Context) error
}

InspectionClient is an interface to get inspections from server

func NewInspectionClient

func NewInspectionClient(v *viper.Viper, apiClient *api.Client, exporter exporter.Exporter) InspectionClient

NewInspectionClient returns a new instance of InspectionClient

Jump to

Keyboard shortcuts

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