token

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertHash

func CertHash(out io.Writer, certFile string) (string, error)

Types

type Output

type Output struct {
	Tokens []*Token `json:"tokens"`
}

type Token

type Token struct {
	Token    string    `json:"token"`
	TTL      int       `json:"-"`
	Expires  time.Time `json:"expires"`
	Expired  bool      `json:"expired"`
	CertHash string    `json:"hash"`
}

func Get

func Get(out io.Writer, secret, certHash string) (*Token, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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