secrets

package
v0.0.0-...-44f170f Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 8 Imported by: 0

README

caddy secrets

This is a direct copy of the code that was originally hosted at https://github.com/startsmartlabs/caddy-secrets. To the people who wrote this originally, I can not longer build Caddy server from source because of this dependency which is required by freman/caddy-reauth/backends/refresh/auth.go. If you feel that you need more attribution (I cannot see the individual members of smartsmartlabs), or protest to have caddy-secrets be archived in this way, please contact me.

Special thanks for Andrew Lee for archiving this for me originally

I've decided to embed this so I can keep it up to date easily without the rather small external dependancy.

Go Proverb: A little copying is better than a little dependency.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SecretsMap yaml.MapSlice

Functions

func FindKey

func FindKey(mapslice yaml.MapSlice, key string) bool

func GetArray

func GetArray(mapslice yaml.MapSlice, key string) []interface{}

func GetObject

func GetObject(mapslice yaml.MapSlice, key string) yaml.MapSlice

func GetValue

func GetValue(mapslice yaml.MapSlice, key string) interface{}

func Setup

func Setup(c *caddy.Controller) error

Types

type SecretsHandler

type SecretsHandler struct {
	Next httpserver.Handler
}

func (SecretsHandler) ServeHTTP

func (h SecretsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)

Jump to

Keyboard shortcuts

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