config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnchoreEngine

type AnchoreEngine struct {
	URL       string `yaml:"url"`
	User      string `yaml:"user"`
	Pass      string `yaml:"pass"`
	AsAccount string `yaml:"as_account"`
}

AnchoreEngine is the struct that stores a vendor and its config

type Clair

type Clair struct {
	URL string `yaml:"url"`
}

Clair is the struct that stores a vendor and its config

type Client

type Client struct {
	URL string `yaml:"url"`
}

Client is the struct that stores config need to run client

type Configuration

type Configuration struct {
	Server  *Server   `yaml:"server,omitempty"`
	DB      *Database `yaml:"database,omitempty"`
	Vendors *Vendors  `yaml:"vendors,omitempty"`
	Client  *Client   `yaml:"client,omitempty"`
}

Configuration holds data necessary for configuring application

func Load

func Load(path string) (*Configuration, error)

Load returns Configuration struct

type Database

type Database struct {
	LogQueries bool `yaml:"log_queries,omitempty"`
	Timeout    int  `yaml:"timeout_seconds,omitempty"`
}

Database holds data necessary for database configuration

type Server

type Server struct {
	Port         string `yaml:"port,omitempty"`
	Debug        bool   `yaml:"debug,omitempty"`
	ReadTimeout  int    `yaml:"read_timeout_seconds,omitempty"`
	WriteTimeout int    `yaml:"write_timeout_seconds,omitempty"`
}

Server holds data necessary for server configuration

type Trivy

type Trivy struct {
	URL     string `yaml:"url"`
	Timeout int    `yaml:"timeout_seconds"`
}

Trivy is the struct that stores a vendor and its config

type Vendors

type Vendors struct {
	Clair         *Clair         `yaml:"clair,omitempty"`
	AnchoreEngine *AnchoreEngine `yaml:"anchore_engine,omitempty"`
	Trivy         *Trivy         `yaml:"trivy,omitempty"`
}

Vendors is the struct that stores a list of vendors

Jump to

Keyboard shortcuts

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