api

package
v0.0.0-...-d1992f0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *Config, cc clairclient.Client, backend datastore.Backend, st *stopper.Stopper)

Run starts main API

func RunHealth

func RunHealth(cfg *Config, backend datastore.Backend, st *stopper.Stopper)

RunHealth starts the health API

Types

type Config

type Config struct {
	Port                      int
	HealthPort                int
	Timeout                   time.Duration
	ClairURL                  string
	ClairTimeout              int
	CertFile, KeyFile, CAFile string
	ImageWebhookDefaultBlock  bool
	RegAuth                   []map[string]string `yaml:"k8scrawlcredentials"`
}

Config is the configuration for the API service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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