conf

package
v0.0.0-...-5ec3a36 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 License: Apache-2.0, UPL-1.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthClientFlags

func AuthClientFlags() []cli.Flag

AuthClientFlags returns the flags that will be used by ParseAuthClientOptions.

func ConcatFlags

func ConcatFlags(flags ...[]cli.Flag) []cli.Flag

ConcatFlags concatenates all flags provided to a single array. Currently it does not inspect if an flag already exists, or sort by name etc.

func KeenFlags

func KeenFlags() []cli.Flag

KeenFlags returns the flags that will be used by ParseKeenOptions.

func MongoFlags

func MongoFlags(defaultDatabase string) []cli.Flag

MongoFlags returns the flags that will be used by ParseMongoOptions. defaultDatabase will be used for the --mongo-database flag.

func SESFlags

func SESFlags() []cli.Flag

SESFlags returns the flags that will be used by ParseSESOptions.

func TraceFlags

func TraceFlags() []cli.Flag

TraceFlags returns the flags that will be used by ParseTraceOptions.

Types

type AuthClientOptions

type AuthClientOptions struct {
	AuthTarget string
	ServiceKey []byte
}

AuthClientOptions are the commonly used options when using a AuthClient.

func ParseAuthClientOptions

func ParseAuthClientOptions(c *cli.Context) *AuthClientOptions

ParseAuthClientOptions fetches the values from urfave/cli Context and returns them as a AuthClientOptions. Uses the names as specified in AuthClientFlags.

type KeenOptions

type KeenOptions struct {
	KeenProjectID string
	KeenWriteKey  string
}

KeenOptions are the commonly used options when sending metrics to Keen.

func ParseKeenOptions

func ParseKeenOptions(c *cli.Context) *KeenOptions

ParseKeenOptions fetches the values from urfave/cli Context and returns them as a KeenOptions. Uses the names as specified in KeenFlags.

type MongoOptions

type MongoOptions struct {
	MongoURI      string
	MongoDatabase string
}

MongoOptions are the commonly used options when connecting to a MongoDB server.

func ParseMongoOptions

func ParseMongoOptions(c *cli.Context) *MongoOptions

ParseMongoOptions fetches the values from urfave/cli Context and returns them as a MongoOptions. Uses the names as specified in MongoFlags.

type SESOptions

type SESOptions struct {
	SESRegion string
}

SESOptions are the commonly used options when using the AWS SES service.

func ParseSESOptions

func ParseSESOptions(c *cli.Context) *SESOptions

ParseSESOptions fetches the values from urfave/cli Context and returns them as a SESOptions. Uses the names as specified in SESFlags.

type TraceOptions

type TraceOptions struct {
	Trace         bool
	TraceEndpoint string
}

TraceOptions are the commonly used options when using a Trace service.

func ParseTraceOptions

func ParseTraceOptions(c *cli.Context) *TraceOptions

ParseTraceOptions fetches the values from urfave/cli Context and returns them as a TraceOptions. Uses the names as specified in TraceFlags.

Jump to

Keyboard shortcuts

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