types

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Forks []ForkConfiguration `toml:"repository"`
}

Configuration Global configuration.

type ForkConfiguration

type ForkConfiguration struct {
	Base        Repo
	Fork        Repo
	Marker      Marker
	NoCheckFork bool
	Disable     bool
}

ForkConfiguration Fork configuration.

type GenerateOptions

type GenerateOptions struct {
	Sample      bool   `description:"Generate a sample configuration file."`
	Org         string `description:"Generate a default configuration file for an organization name."`
	User        string `description:"Generate a default configuration file for a user name."`
	GitHubToken string `long:"token" short:"t" description:"GitHub Token."`
}

GenerateOptions Generator command options.

type Marker

type Marker struct {
	NeedResolveConflicts string
	ByBot                string
}

Marker Define labels added by the bot.

type NoOption

type NoOption struct{}

NoOption empty struct.

type Repo

type Repo struct {
	Owner  string
	Name   string
	Branch string
}

Repo Repository model.

func (Repo) String

func (r Repo) String() string

type SyncOptions

type SyncOptions struct {
	GitHubToken    string `long:"token" short:"t" description:"GitHub Token [required]."`
	ConfigFilePath string `long:"config-path" description:"Path to the configuration file."`
	ServerMode     bool   `long:"server" description:"Server mode."`
	ServerPort     int    `long:"port" description:"Server port."`
	DryRun         bool   `long:"dry-run" description:"Dry run mode."`
	Verbose        bool   `long:"verbose" description:"Verbose mode."`
}

SyncOptions Synchronizer command options.

Jump to

Keyboard shortcuts

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