renderer

package
v0.0.0-...-8e6d222 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyRunningRender = errors.New("renderer: a render is already running")

Functions

func BuildContainerEnv

func BuildContainerEnv(cfg Config, backupTarballURI string) []string

Types

type Config

type Config struct {
	AwsRegion          string `split_words:"true" default:"us-west-2"`
	AwsAccessKeyId     string `split_words:"true" required:"true"`
	AwsSecretAccessKey string `split_words:"true" required:"true"`

	SourceBucketName       string `default:"mc.sep.gg-backups"`
	SourceBucketAccountId  string `default:"006851364659"`
	SourceBucketPathPrefix string `default:"newworld"`

	DestinationBucketURI       string `split_words:"true" default:"s3://map-tonkat-su/"`
	DestinationBucketEndpoint  string `split_words:"true"`
	DestinationAccessKeyId     string `split_words:"true"`
	DestinationSecretAccessKey string `split_words:"true"`

	OverworldName         string `envconfig:"OVERWORLD_DIR" default:"pumpcraft"`
	NetherName            string `envconfig:"NETHER_DIR" default:"pumpcraft_nether"`
	TheEndName            string `envconfig:"THE_END_DIR" default:"pumpcraft_the_end"`
	RendererImage         string `default:"ghcr.io/voltaire/renderer:latest"`
	RenderControllerImage string `default:"ghcr.io/voltaire/render-controller/controller:latest"`
	DiscordWebhookUrl     string `split_words:"true"`

	RunnerName string `split_words:"true" default:"renderer"`

	GithubActionsPublicKey string `split_words:"true"`

	BackupTarballUri string `split_words:"true"`
}

type Service

type Service struct {
	Config           Config
	RendererProvider provider.Renderer
}

func (*Service) Render

func (svc *Service) Render(ctx context.Context, backupTarballURI string) error

Jump to

Keyboard shortcuts

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