config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 2 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 {
	APIHost                  string        `env:"SSH_EXECUTOR_API_HOST" required:"true"`
	APIPort                  string        `env:"SSH_EXECUTOR_API_PORT" required:"true"`
	DefaultSSHCommandTimeout time.Duration `env:"SSH_EXECUTOR_API_DEFAULT_SSH_TIMEOUT" required:"true"`
	SSHUser                  string        `env:"SSH_EXECUTOR_USER" required:"true"`
	SSHPassword              string        `env:"SSH_EXECUTOR_PASSWORD" required:"true"`
}

func (*Config) Load

func (c *Config) Load() error

Jump to

Keyboard shortcuts

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