config

package
v0.0.0-...-1a993ef Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Auth struct {
		BearerToken string `yaml:"token"`
	}
	API struct {
		Domain string `yaml:"domain"`
	}
}

func ParseConfig

func ParseConfig(file string) (*Config, error)

func (*Config) NewAPIClient

func (c *Config) NewAPIClient(ctx context.Context) (context.Context, *gleansdk.APIClient)

func (*Config) String

func (c *Config) String() string

type ConfigFlags

type ConfigFlags struct {
	Config string `subcmd:"config,$HOME/.glean.yaml,'glean config file'"`
}

Jump to

Keyboard shortcuts

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