out

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package out includes generated code from the example codes in the https://pkg.go.dev/github.com/kyoh86/appenv#Generate

Index

Constants

This section is empty.

Variables

View Source
var EmptyYAMLReader io.Reader = nil

Functions

func GetAppenv

func GetAppenv(yamlReader io.Reader, envarPrefix string) (config Config, access Access, err error)

func OptionNames added in v0.1.0

func OptionNames() []string

Types

type Access

type Access struct {
	// contains filtered or unexported fields
}

func GetAccess

func GetAccess(yamlReader io.Reader, envarPrefix string) (access Access, err error)

func (*Access) DryRun

func (a *Access) DryRun() bool

func (*Access) HostName

func (a *Access) HostName() string

func (*Access) Token

func (a *Access) Token() string

type Config

type Config struct {
	// contains filtered or unexported fields
}

func GetConfig

func GetConfig(yamlReader io.Reader) (config Config, err error)

func (*Config) DryRun

func (a *Config) DryRun() types.Config

func (*Config) HostName

func (a *Config) HostName() types.Config

func (*Config) Option added in v0.1.0

func (a *Config) Option(name string) (types.Config, error)

func (*Config) Save

func (c *Config) Save(yamlWriter io.Writer) error

func (*Config) Token

func (a *Config) Token() types.Config

type Envar

type Envar struct {
	HostName *def.HostName
	DryRun   *def.DryRun
}

type YAML

type YAML struct {
	Token    *def.Token    `yaml:"token,omitempty"`
	HostName *def.HostName `yaml:"hostName,omitempty"`
}

Jump to

Keyboard shortcuts

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