config

package
v0.0.0-...-ad0ef51 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTrdlChannelsPath = "trdl_channels.yaml"
)
View Source
const (
	DefaultTrdlPath = "trdl.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Trdl

type Trdl struct {
	DockerImage    string   `yaml:"dockerImage,omitempty"`
	DockerImageOld string   `yaml:"docker_image,omitempty"` // legacy
	Commands       []string `yaml:"commands,omitempty"`
}

func ParseTrdl

func ParseTrdl(data []byte, values map[string]interface{}) (*Trdl, error)

func (*Trdl) GetDockerImage

func (c *Trdl) GetDockerImage() string

func (*Trdl) Validate

func (c *Trdl) Validate() error

type TrdlChannels

type TrdlChannels struct {
	Groups []TrdlGroup `yaml:"groups,omitempty"`
}

func ParseTrdlChannels

func ParseTrdlChannels(data []byte) (*TrdlChannels, error)

type TrdlGroup

type TrdlGroup struct {
	Name     string             `yaml:"name"`
	Channels []TrdlGroupChannel `yaml:"channels,omitempty"`
}

type TrdlGroupChannel

type TrdlGroupChannel struct {
	Name    string `yaml:"name"`
	Version string `yaml:"version"`
}

Jump to

Keyboard shortcuts

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