utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

CipherSuites list of trusted tls cipher suites

JSON fascade for abstraction of json marshalling and unmarhalling

Functions

func Exists added in v1.0.1

func Exists(absPath string) bool

Exists returns true if absolute path exists

func ListDirectory

func ListDirectory(absPath string, ascending bool) ([]string, error)

ListDirectory returns sorted slice of item names in given absolute path default sorting is ascending

func NotExists added in v1.0.1

func NotExists(absPath string) bool

NotExists returns true if absolute path does not exists

func NotifyServiceReady

func NotifyServiceReady()

NotifyServiceReady notify underlying os that service is ready

func NotifyServiceStopping

func NotifyServiceStopping()

NotifyServiceStopping notify underlying os that service is stopping

func ReadFileFully

func ReadFileFully(absPath string) ([]byte, error)

ReadFileFully reads whole file given absolute path

func TokenPath

func TokenPath(root, tenant, value string) string

TokenPath returns filepath of token for given tenant and token

func TokensPath

func TokensPath(root, tenant string) string

TokensPath returns filepath of tokens for given tenant

Types

type LogFormat

type LogFormat struct {
}

LogFormat is a custom logging formater for logrus

func (*LogFormat) Format

func (f *LogFormat) Format(entry *log.Entry) ([]byte, error)

Format processed each log entry and produces formatted log line

Jump to

Keyboard shortcuts

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