config

package
v0.0.0-...-50cccf3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDir string = "~/.openfaas"

DefaultDir TODO

Variables

View Source
var DefaultAuth = Auth{
	Gateway: "http://localhost:8080",
	Auth:    "",
	Token:   "",
}

DefaultAuth TODO

Functions

func Dir

func Dir() string

Dir TODO

func EnsureConfigDir

func EnsureConfigDir() error

EnsureConfigDir creates a configDir() if it doesn't already exist

func File

func File() string

File TODO

Types

type Auth

type Auth struct {
	Gateway string `yaml:"gateway"`
	Auth    string `yaml:"auth,omitempty"`
	Token   string `yaml:"token,omitempty"`
}

Auth TODO

type Config

type Config struct {
	Auths []Auth `yaml:"auths"`
}

Config TODO

func Read

func Read() (Config, error)

Read config from the specified dir returning a slice of OpenFaaS instances

Jump to

Keyboard shortcuts

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