velox

package module
v2024.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 7 Imported by: 0

README

Compatibility with the plugins:

  1. ⚠️ Do not use the plugin's master branch.
  2. ⚠️ Use tags with the same major version (e.g logger v3.0.3 + amqp v3.0.5, but not logger v4.0.0 + amqp v3.0.5)
  3. ⚠️ Currently supported plugins version is: v4.x.x
  4. ⚠️ Currently supported RR version is: >=v2024.x.x

Documentation

Index

Constants

View Source
const (
	V2024 string = "v2024"
	V2023 string = "v2023"
	V2    string = "v2"
)

Variables

This section is empty.

Functions

func IsDigit

func IsDigit(num string) bool

func ParseModuleInfo

func ParseModuleInfo(module string, t time.Time, rev string) string

ParseModuleInfo here we accept a module name and return the version e.g.: github.com/roadrunner-server/logger/v2 => v2

Types

type CodeHosting

type CodeHosting struct {
	BaseURL *Endpoint                `mapstructure:"endpoint"`
	Token   *Token                   `mapstructure:"token"`
	Plugins map[string]*PluginConfig `mapstructure:"plugins"`
}

type Config

type Config struct {
	// build args
	Velox map[string][]string `mapstructure:"velox"`
	// Version
	Roadrunner map[string]string `mapstructure:"roadrunner"`
	// GitHub configuration
	GitHub *CodeHosting `mapstructure:"github"`
	// GitLab configuration
	GitLab *CodeHosting `mapstructure:"gitlab"`
	// Log contains log configuration
	Log map[string]string `mapstructure:"log"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Endpoint

type Endpoint struct {
	BaseURL string `mapstructure:"endpoint"`
}

type ModulesInfo

type ModulesInfo struct {
	// Version - commit sha or tag
	Version string
	// PseudoVersion - Go pseudo version
	PseudoVersion string
	// module name - eg: github.com/roadrunner-server/logger/v2
	ModuleName string
	// Replace (for the local dev)
	Replace string
}

ModulesInfo represents single go module

type PluginConfig

type PluginConfig struct {
	Ref     string `mapstructure:"ref"`
	Owner   string `mapstructure:"owner"`
	Repo    string `mapstructure:"repository"`
	Folder  string `mapstructure:"folder"`
	Replace string `mapstructure:"replace"`
}

type Token

type Token struct {
	Token string `mapstructure:"token"`
}

Directories

Path Synopsis
cmd
vx
internal
cli

Jump to

Keyboard shortcuts

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