options

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RevisionDiscoveryModeNONE              = "none"
	RevisionDiscoveryModeMergeBaseToLatest = "mergebase-to-latest"
	RevisionDiscoveryModePatchToPatch      = "patch-to-patch"
	RevisionDiscoveryModeMinorToMinor      = "minor-to-minor"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	GithubOrg       string
	GithubRepo      string
	Output          string
	Branch          string
	StartSHA        string
	EndSHA          string
	StartRev        string
	EndRev          string
	RepoPath        string
	ReleaseVersion  string
	Format          string
	RequiredAuthor  string
	DiscoverMode    string
	ReleaseBucket   string
	ReleaseTars     string
	TableOfContents bool
	Debug           bool
	Pull            bool
	RecordDir       string
	ReplayDir       string
	// contains filtered or unexported fields
}

func New

func New() *Options

New creates a new Options instance with the default values

func (*Options) Client

func (o *Options) Client() client.Client

Client returns a Client to be used by the Gatherer. Depending on the provided options this is either a real client talking to the GitHub API, a Client which in addition records the responses from Github and stores them on disk, or a Client that replays those pre-recorded responses and does not talk to the GitHub API at all.

func (*Options) ValidateAndFinish

func (o *Options) ValidateAndFinish() (err error)

ValidateAndFinish checks if the options are set in a consistent way and adapts them if necessary. It returns an error if options are set to invalid values.

type RevisionDiscoveryMode

type RevisionDiscoveryMode string

Jump to

Keyboard shortcuts

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