auth

package
v0.0.0-...-3958eff Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package auth manages the secrets required to use the API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(file string) (string, string, error)

Load returns the username, password, stored in the config file.

func MustLoad

func MustLoad(file string) (string, string)

MustLoad loads the username and password and exits with an error if it can't.

Types

type Config

type Config struct {
	User string `yaml:"user"`
	Pass string `yaml:"pass"`
}

Config is the go representation of the YAML file containing the secrets.

Jump to

Keyboard shortcuts

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