config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientID     string `yaml:"client_id"`
	ClientSecret string `yaml:"client_secret"`

	AuthURL  string `yaml:"auth_url"`
	TokenURL string `yaml:"token_url"`

	Scopes ScopesConfig `yaml:"scopes"`

	JWT JWTConfig `yaml:"jwt"`
}

type JWTConfig

type JWTConfig struct {
	PrivateKey   string        `yaml:"private_key"`
	Validity     time.Duration `yaml:"validity"`
	ValidityPast time.Duration `yaml:"validity_past"`
}

type ScopesCloudProjectConfig

type ScopesCloudProjectConfig struct {
	Projects []string `yaml:"projects"`
	Roles    []string `yaml:"roles"`
}

type ScopesConfig

type ScopesConfig struct {
	CloudProject *ScopesCloudProjectConfig `yaml:"cloud_project"`
}

Jump to

Keyboard shortcuts

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