config

package
v0.0.0-...-c8a8185 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	Store       string   `json:"store" yaml:"store"`
	Webhooks    []string `json:"webhooks" yaml:"webhooks"`
	Publishers  []string `json:"publishers" yaml:"publishers"`
	Subscribers []string `json:"subscribers" yaml:"subscribers"`
	Deployers   []string `json:"deployers" yaml:"deployers"`
	Polling     Polling  `json:"polling" yaml:"polling"`
}

type Config

type Config struct {
	Server      *Server                `json:"server" yaml:"server"`
	Lock        *Lock                  `json:"lock" yaml:"lock"`
	Stores      map[string]*Store      `json:"stores" yaml:"stores"`
	Deployers   map[string]*Deployer   `json:"deployers" yaml:"deployers"`
	Webhooks    map[string]*Webhook    `json:"webhooks" yaml:"webhooks"`
	Subscribers map[string]*Subscriber `json:"subscribers" yaml:"subscribers"`
	Publishers  map[string]*Publisher  `json:"publishers" yaml:"publishers"`
	Bundles     map[string]*Bundle     `json:"bundles" yaml:"bundles"`
}

func NewConfig

func NewConfig(content []byte) (*Config, error)

NewConfig creates a new config from config content

type Deployer

type Deployer struct {
	Type   string      `json:"type" yaml:"type"`
	Config interface{} `json:"config" yaml:"config"`
}

type Lock

type Lock struct {
	Type   string      `json:"type" yaml:"type"`
	Config interface{} `json:"config" yaml:"config"`
}

type Polling

type Polling struct {
	Disable         bool  `json:"disable" yaml:"disable"`
	MinDelaySeconds int64 `json:"min_delay_seconds" yaml:"min_delay_seconds"`
	MaxDelaySeconds int64 `json:"max_delay_seconds" yaml:"max_delay_seconds"`
}

type Publisher

type Publisher struct {
	Type   string      `json:"type" yaml:"type"`
	Config interface{} `json:"config" yaml:"config"`
}

type Server

type Server struct {
	Address string `json:"address" yaml:"address"`
}

type Store

type Store struct {
	Type   string      `json:"type" yaml:"type"`
	Config interface{} `json:"config" yaml:"config"`
}

type Subscriber

type Subscriber struct {
	Type   string      `json:"type" yaml:"type"`
	Config interface{} `json:"config" yaml:"config"`
}

type TemplateData

type TemplateData struct {
	Meta map[string]interface{} `json:"meta" yaml:"meta"`
	Env  map[string]string      `json:"env" yaml:"env"`
}

type Webhook

type Webhook struct {
	Type   string      `json:"type" yaml:"type"`
	Config interface{} `json:"config" yaml:"config"`
}

Jump to

Keyboard shortcuts

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