config

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 6 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 {
	ApiUrl   string
	Endpoint int
	User     string
	Password string
	ApiKey   string
}

Config is a runtime configuration.

func ReadConfig

func ReadConfig(version string) (*Config, *portainer.ContainerExecParams)

ReadConfig gathers configuration values from all available sources and returns everything required to connect to Portainer API and execute a command in container.

Jump to

Keyboard shortcuts

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