config

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlag

func AddFlag(f *flag.FlagSet, s *string)

func GetClient

func GetClient(ctx context.Context, filename string) (*http.Client, error)

func GetTokenSource

func GetTokenSource(ctx context.Context, filename string) (oauth2.TokenSource, error)

Types

type ClientConfig

type ClientConfig struct {
	ClientSecret string `json:"client_secret"`
	ClientID     string `json:"client_id"`
	EndpointURL  string `json:"endpoint_url"`
}

func ReadConfigFile

func ReadConfigFile(_ context.Context, filename string) (*ClientConfig, error)

Jump to

Keyboard shortcuts

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