subcmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: GPL-3.0 Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeepCommand

type DeepCommand struct {
	cli.Command `name:"deep" short-description:"Deep sync of GitHub data" long-description:"Deep sync of GitHub data"`

	Token string `long:"token" env:"GHSYNC_TOKEN" description:"GitHub personal access token" required:"true"`
	Org   string `long:"org" env:"GHSYNC_ORG" description:"Name of the GitHub organization" required:"true"`

	QueueOpt struct {
		Queue  string `long:"queue" env:"GHSYNC_QUEUE" description:"queue name. If it's not set the organization name will be used"`
		Broker string `long:"broker" env:"GHSYNC_BROKER" default:"amqp://localhost:5672" description:"broker service URI"`
	} `group:"go-queue connection options"`

	Postgres PostgresOpt `group:"PostgreSQL connection options"`
}

func (*DeepCommand) Execute

func (c *DeepCommand) Execute(args []string) error

type MigrateCommand

type MigrateCommand struct {
	gocli.PlainCommand ``          /* 151-byte string literal not displayed */
	Postgres           PostgresOpt `group:"PostgreSQL connection options"`
}

func (*MigrateCommand) Execute

func (c *MigrateCommand) Execute(args []string) error

type PostgresOpt

type PostgresOpt struct {
	DB       string `long:"postgres-db" env:"GHSYNC_POSTGRES_DB" description:"PostgreSQL DB" default:"ghsync"`
	User     string `long:"postgres-user" env:"GHSYNC_POSTGRES_USER" description:"PostgreSQL user" default:"superset"`
	Password string `long:"postgres-password" env:"GHSYNC_POSTGRES_PASSWORD" description:"PostgreSQL password" default:"superset"`
	Host     string `long:"postgres-host" env:"GHSYNC_POSTGRES_HOST" description:"PostgreSQL host" default:"localhost"`
	Port     int    `long:"postgres-port" env:"GHSYNC_POSTGRES_PORT" description:"PostgreSQL port" default:"5432"`
}

func (PostgresOpt) URL

func (o PostgresOpt) URL() string

type RemoveHeaderTransport

type RemoveHeaderTransport struct {
	T http.RoundTripper
}

func (*RemoveHeaderTransport) RoundTrip

func (t *RemoveHeaderTransport) RoundTrip(req *http.Request) (*http.Response, error)

type RetryTransport

type RetryTransport struct {
	T http.RoundTripper
}

func (*RetryTransport) RoundTrip

func (t *RetryTransport) RoundTrip(req *http.Request) (*http.Response, error)

type ShallowCommand

type ShallowCommand struct {
	cli.Command `name:"shallow" short-description:"Shallow sync of GitHub data" long-description:"Shallow sync of GitHub data"`

	Token string `long:"token" env:"GHSYNC_TOKEN" description:"GitHub personal access token" required:"true"`
	Orgs  string `long:"orgs" env:"GHSYNC_ORGS" description:"Comma-separated list of GitHub organization names" required:"true"`

	NoForks bool `long:"no-forks"  env:"GHSYNC_NO_FORKS" description:"github forked repositories will be skipped"`

	Postgres PostgresOpt `group:"PostgreSQL connection options"`
}

func (*ShallowCommand) Execute

func (c *ShallowCommand) Execute(args []string) error

Jump to

Keyboard shortcuts

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