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
}
type RetryTransport ¶
type RetryTransport struct {
T http.RoundTripper
}
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
Click to show internal directories.
Click to hide internal directories.