config

package
v0.0.0-...-2440f66 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	WorkDir string
	Builder string
	Runtime Runtime
}

type Config

type Config struct {
	// From config file
	Distribution Distribution `yaml:"distribution"`
	OSS          OSS          `yaml:"oss"`

	// From CLI flags
	Base Base
}

func Parse

func Parse(c *cli.Context, configPath string) (*Config, error)

type Distribution

type Distribution struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type OSS

type OSS struct {
	Endpoint        string `yaml:"endpoint"`
	AccessKeyID     string `yaml:"access_key_id"`
	AccessKeySecret string `yaml:"access_key_secret"`
	BucketName      string `yaml:"bucket_name"`
	ObjectPrefix    string `yaml:"object_prefix"`
}

type Runtime

type Runtime struct {
	PouchAddr  string
	DockerAddr string
}

Jump to

Keyboard shortcuts

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