options

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscardConfigPrinter

func DiscardConfigPrinter(*config.Config) error

Types

type ConfigOptions

type ConfigOptions struct {
	MappingFile string

	Config *config.Config

	ConfigPrinter ConfigPrinter
}

func (*ConfigOptions) Complete

func (o *ConfigOptions) Complete(ctx context.Context, replogConfig *pgxpool.Config, streams streams.IO) error

type ConfigPrinter

type ConfigPrinter func(c *config.Config) error

func JSONConfigPrinter

func JSONConfigPrinter(w io.Writer) ConfigPrinter

func YAMLConfigPrinter

func YAMLConfigPrinter(w io.Writer) ConfigPrinter

type PostgresOptions

type PostgresOptions struct {
	PostgresURI string

	ReplogConfig *pgxpool.Config
	PoolConfig   *pgxpool.Config
}

PostgresOptions holds options related to postgres

func (*PostgresOptions) Complete

func (o *PostgresOptions) Complete() error

Complete configures postgres options from a URI if needed Set either URI or the config objects, but not both.

type SpiceDBOptions

type SpiceDBOptions struct {
	SpiceDBEndpoint string
	SpiceDBToken    string
	SpiceDBInsecure bool

	Client *authzed.Client
}

func (*SpiceDBOptions) Complete

func (o *SpiceDBOptions) Complete(dryRun bool) (err error)

Jump to

Keyboard shortcuts

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