config

package
v0.0.0-...-73b8fb2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ApiVersion      string            `default:"v1" yaml:"apiVersion"`
	PythonVersion   string            `yaml:"python"`
	Apt             []string          `yaml:"build-deps"`
	Envs            map[string]string `yaml:"envs"`
	Indices         []Index           `yaml:"indices"`
	PipDependencies []string          `yaml:"pip"`
	Project         string            `yaml:"project"`
	Labels          map[string]string `yaml:"labels"`
	Sbom            *bool             `default:"true" yaml:"sbom"`
}

func NewFromBytes

func NewFromBytes(b []byte) (*Config, error)

func NewFromFilename

func NewFromFilename(filename string) (*Config, error)

NewFromFilename returns a new config from a filename

func (*Config) HttpDependencies

func (c *Config) HttpDependencies() []string

func (*Config) LocalDependencies

func (c *Config) LocalDependencies() []string

func (*Config) MaskedDependencies

func (c *Config) MaskedDependencies() []string

func (*Config) PyPiDependencies

func (c *Config) PyPiDependencies() []string

func (*Config) SshDependencies

func (c *Config) SshDependencies() []string

func (*Config) Validate

func (c *Config) Validate() error

type Index

type Index struct {
	Url      string `yaml:"url"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	Trust    bool   `default:"false" yaml:"trust"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳