config

package
v1.6.7-0...-b28dd99 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	JWTSecret string `json:"jwtsecret"`
}

Auth authentication config.

type Config

type Config struct {
	ID        string     `json:"id"`
	Server    *Server    `json:"server"`
	TLS       *TLS       `json:"tls"`
	GRPC      *GRPC      `json:"grpc"`
	Scheduler *Scheduler `json:"scheduler"`
	Auth      *Auth      `json:"auth"`
	Registry  *Registry  `json:"registry"`
	Logger    *Logger    `json:"logger"`
}

Config holds data about worker configuration.

type GRPC

type GRPC struct {
	Addr string `json:"addr"`
}

GRPC configuration.

type Logger

type Logger struct {
	Filename   string `json:"filename"`
	MaxSize    int    `json:"maxsize"`
	MaxBackups int    `json:"maxbackups"`
	MaxAge     int    `json:"maxage"`
	Level      string `json:"level"`
	Stdout     bool   `json:"stdout"`
}

Logger config.

type Registry

type Registry struct {
	Addr     string `json:"addr"`
	Username string `json:"username"`
	Password string `json:"password"`
}

Registry docker image registry configuration.

type Scheduler

type Scheduler struct {
	MaxParallel int `json:"maxparallel"`
}

Scheduler configuration.

type Server

type Server struct {
	Addr string `json:"addr"`
}

Server configuration.

type TLS

type TLS struct {
	Cert string `json:"cert"`
	Key  string `json:"key"`
}

TLS configuration.

Jump to

Keyboard shortcuts

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