app

package
v0.0.0-...-e0434a4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Types

type App

type App struct {
	Logger     *zap.Logger
	Local      bool
	Kubeconfig string
	ConfigFile string
}

func (*App) Run

func (a *App) Run(ctx context.Context) error

type Audience

type Audience struct {
	Name     string        `json:"name"`
	Secret   string        `json:"secret"`
	Lifetime time.Duration `json:"lifetime"`
}

func (*Audience) UnmarshalJSON

func (a *Audience) UnmarshalJSON(data []byte) error

type Config

type Config struct {
	Secrets   Secrets    `json:"secrets"`
	Audiences []Audience `json:"audiences"`
}

func ReadConfig

func ReadConfig(configFile string) (Config, error)

type Secrets

type Secrets struct {
	Namespace string            `json:"namespace"`
	Labels    map[string]string `json:"labels"`
}

Jump to

Keyboard shortcuts

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