app

package
v0.0.0-...-4fbd946 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Logger             *zap.Logger
	RestConfig         *rest.Config
	PrometheusRegistry PrometheusRegistry
	ResyncPeriod       time.Duration
	StsRateLimit       float64
	StsRateBurst       int
	ListenOn           string
	AuxListenOn        string
	Debug              bool
}

func NewFromFlags

func NewFromFlags(flagset *flag.FlagSet, arguments []string) (*App, error)

func (*App) Run

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

type AuxServer

type AuxServer struct {
	Logger     *zap.Logger
	Addr       string // TCP address to listen on, ":http" if empty
	Gatherer   prometheus.Gatherer
	Prefetcher Prefetcher
	IsReady    func() bool
	Debug      bool
	// contains filtered or unexported fields
}

func (*AuxServer) Run

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

type Prefetcher

type Prefetcher interface {
	Inspect(func(map[core.IamRoleKey]core.CacheEntry))
}

type PrometheusRegistry

type PrometheusRegistry interface {
	prometheus.Registerer
	prometheus.Gatherer
}

type Registry

type Registry interface {
	prometheus.Gatherer
	prometheus.Registerer
}

Jump to

Keyboard shortcuts

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