github

package
Version: v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 12 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 {
	ClientParams
	// contains filtered or unexported fields
}

func NewClient

func NewClient(logger *zap.Logger, clientParams ClientParams) *Client

func (*Client) Check added in v0.0.8

func (c *Client) Check(ctx context.Context) error

func (*Client) ResolveLicense

func (c *Client) ResolveLicense(ctx context.Context, m validation.Module) (validation.License, error)

type ClientParams

type ClientParams struct {
	Client *github.Client

	// FallbackConfidenceThreshold is a confidence threshold for go-license-detector fallback
	// This fallback used when github returns "other" as license name
	FallbackConfidenceThreshold float64
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL