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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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