config

package
v0.0.0-...-c608f4e Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive struct {
	Name             string           `yaml:",omitempty"`
	CompressionLevel int              `yaml:"compression_level,omitempty"`
	IncludeFiles     []string         `yaml:"includes,omitempty"`
	ExcludeFiles     []string         `yaml:"excludes,omitempty"`
	WrapInDirectory  string           `yaml:"wrap_in_directory,omitempty"`
	InfoFile         ReleaseInfoFile  `yaml:"info_file,omitempty"`
	EmptyDirs        map[string]int64 `yaml:"empty_dirs,omitempty"`
}

type Project

type Project struct {
	Dist    string  `yaml:",omitempty"`
	Archive Archive `yaml:",omitempty"`
	Publish Publish `yaml:",omitempty"`
}

func Load

func Load(file string) (config Project, err error)

type Publish

type Publish struct {
	S3 S3 `yaml:"s3,omitempty"`
}

type ReleaseInfoFile

type ReleaseInfoFile struct {
	Name    string `yaml:",omitempty"`
	Content string `yaml:",omitempty"`
}

type S3

type S3 struct {
	Folder  string
	Bucket  string
	Region  string
	ACL     string
	Profile string
}

Jump to

Keyboard shortcuts

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